event handling
how do i make the programme wait untill a particular event happens......
i read it on the msdn....that by inserting "App.WaitForEvents" where i wanted to make my programme wait for the event i could do it.....
but when i tried putting this line in the programme the compiler didnt recognize the WaitForEvents method.....
can anybody help me out with any other alternative???
anud18
Junior Poster in Training
52 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
when what becomes activated???....the form or the control event....i couldnt understand
anud18
Junior Poster in Training
52 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
i tried out the command thing also sir....but it is not working out that ways also ....
its not waiting gor events to happen...
anud18
Junior Poster in Training
52 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
actually sir .....after calling th showform function present in the dll....i want the programme to wait for the user to click on the command button(event)......
in the command_click event i have put the follwing code
Public Sub Login_Click()
Dim Ctr As Integer
Ctr = 0
For Ctr = 0 To (Form1.CboUserName.ListCount - 1) Step 1
If Form1.Text1.Text = Form1.CboUserName.List(Ctr) And Form1.Text2.Text = Form1.CboPassword.List(Ctr) Then
Validate = True
Else
Validate = False
End If
Next
End Sub
Now based on the value fo this integer variable Ctr1 , i want to proceed further as
If Ctr1=1
KRN_StartForm 'another function
Else MsgBox "Access Denied
these above four lines are present in the module of the project....
but what is happening is the programme is not waiting for the user to click the command button....rather it takes the value of Ctr1=0 and shows "access denied"......
anud18
Junior Poster in Training
52 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
its the name as well as the caption
anud18
Junior Poster in Training
52 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
ya the form is visible.....and the form is not exited....it is there the whole time
anud18
Junior Poster in Training
52 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0