|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Tip of DayMy application has Splash Screen, and it is defined as Splash Screen using VB 2005 way... Application.myapp SplashScreen>frmSplashScreen</SplashScreen> Now I have problem how to show "Tip of Day"-form, because it will stay below Splash Screen when application is starting. I'm opening and showing "Tip of Day"-form like... Private Sub frmMain_Load(...) Handles MyBase.Load '... '// Open (if selected) the 'Tip of Day'-form in Dialog Mode Dim blnShowTip As Boolean = "here is retrieved should tip of day-form show or not according users check-selection" If (blnShowTip) Then Dim f As frmTip = New frmTip() f.ShowDialog() f.Dispose() End If '... End Sub frmMain is Startup form, and it's now visible before "Tip of Day"-form is closed. Obviously this it not the correct place to show "Tip of Day"-form, so how to show it avoiding it to stay behind the Splash Screen? -- Mika Mika,
Just a stab in the dark here, but could you create a Public Tip of the day Sub and call it from the OnClose of frmSplashScreen. That way the Tip of the day dialog would be dependent upon the splash screen closing, and couldn't be behind it. If I've misunderstood, please clarify. Thanks, Danny > ...could you create a Public Tip of the Thanks Danny, but looks like code execution is never entering those > day Sub and call it from the OnClose of frmSplashScreen. That way the > Tip of the day dialog would be dependent upon the splash screen > closing, and couldn't be behind it. closing events like... Private Sub frmSplash_Closing(...) Handles MyBase.Closing or such events. :( I solved it this way... Private TipShowed As Boolean Private Sub frmMain_Activated(...) Handles Me.Activated If (TipShowed) Then Return If (My.Settings.ShowTipOfDay) Then Dim f As frmTip = New frmTip() f.ShowDialog() f.Dispose() End If TipShowed = True End Sub May not be the most sophisticated way, but it's working. :) Better solution is always welcome. -- Mika
Debugging in VS2005 - why is some code shaded grey?
alter built-in ContextMenu Microsoft doesn't want you to use VB .Net SqlConnection component in VB.2005 For each ..... next Question Setup and Deployment and Microsoft Jet OLE DB Provider Sending Emails from Code Solution rebuilding issues VS2005 Address Matching System Oggetto Application di excel in vb net 2003 |
|||||||||||||||||||||||