Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have the following code which checks for one statement to be true before displaying form1:

VB
If InStr(SourceC.Text, "<java>") Then
            form1.Show()
            Me.Hide()
        End If</java>


I also have a progress bar on my form and I want the progress bar to get to maximum before it shows form1, how do I do that?

I have tried the following code but that just performs 'me.hide' and nothing else:

VB
If InStr(SourceC.Text, "<java>") And Checking_Site.Value = Checking_Site.Maximum Then
            form1.Show()
            Me.Hide()
        End If</java>
Posted
Updated 20-Aug-10 8:10am
v4

1 solution

IF InStr(SourceC.Text, "<java>") AND Checking_Site.Value = Checking_Site.Maximum THEN
...
</java>
 
Share this answer
 
Comments
hamza_786 20-Aug-10 13:28pm    
i have tried the above code and that just does wait for the progress bar to finish loading but it does not show the other form.
Nyarost 20-Aug-10 15:43pm    
Then IF statement is correct because Me.hide() is being performed. Check the problem with form1.show()

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900