|
-
Jun 10th, 2006, 10:03 AM
#1
Re: SplashScreen with ProgressBar
You need to replace:
with:
Because the lines underneath will not be executed unless entreda is closed, when you use showdialog.
When using ShowDialog, the form behaves as a dialog, i.e it "pauses" your application until it has been closed.
Last edited by Atheist; Jun 10th, 2006 at 10:07 AM.
-
Jun 10th, 2006, 10:40 AM
#2
Thread Starter
Fanatic Member
Re: SplashScreen with ProgressBar
Ok i get a way of the code:
Entrada.ApplicationTitle.Text = My.Application.Info.Title
Entrada.Version.Text = System.String.Format(Entrada.Version.Text, My.Application.Info.Version.Major, My.Application.Info.Version.Minor)
Entrada.Copyright.Text = My.Application.Info.Copyright
desapear but now when i put Entrada.show() the progressbar freezes and dont move. And if i put Entrada.Showdialog() the progressbar moves but the labels stay like transparents
How can i have the progressbar and the labels working good?
-
Jun 10th, 2006, 10:52 AM
#3
Re: SplashScreen with ProgressBar
wrap your code in a try statement
Like this:
VB Code:
Try
'Put your code here
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
And let's see what it says.
-
Jun 10th, 2006, 11:13 AM
#4
Thread Starter
Fanatic Member
Re: SplashScreen with ProgressBar
Hi!!!
Lool it doesn't say nothing.
I put the code in MainForm Load event like this:
Entrada.ShowDialog()
Try
ByItem_()
Search_()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Entrada.Close()
Me.Show()
and no results so i tried this
Try
Entrada.ShowDialog()
ByItem_()
Search_()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Entrada.Close()
Me.Show()
Again no results. No MessageBox the progressbar dont move but the labels good.
Any more ideias?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|