Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27513

VS 2010 run program 5 times

$
0
0
Hello,

I''m trying to get my program to run 5 times then show a form called frmSurvey this is the code i used but
it dosent seem to work and dosent show any errors.

Public CountRun As Integer = 5

Private Sub survey_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
CountRun += 1

If CountRun = 5 Then
MsgBox("Oops your run the application 4 times")
End If

End Sub


then i need it to save the form to mysettings after a button has been clicked on frmsurvey and then on my main form it checks to make
sure it has been done and then dosent show the form again but if the close without pressing the button it re-runs the 5 times again can anyone help me
with this part please?

Viewing all articles
Browse latest Browse all 27513

Trending Articles