VB events and Command Buttons
-
Hi, I am trying to implement an VB GUI application where in when I click a command button "Send" it enables a frame and this frame has some text boxes. The user enters some string in the text box and clicks another command button "ok", which is in the frame. When "ok" is clicked the remaining code in the Send_Click()should continue. I realize I need to use some kind of wait or events, but I am not sure how. If anyone can help me out it'll be great! thanks, Shyam
-
Hi, I am trying to implement an VB GUI application where in when I click a command button "Send" it enables a frame and this frame has some text boxes. The user enters some string in the text box and clicks another command button "ok", which is in the frame. When "ok" is clicked the remaining code in the Send_Click()should continue. I realize I need to use some kind of wait or events, but I am not sure how. If anyone can help me out it'll be great! thanks, Shyam
-
Why not separate it into 2 methods? The first button will call
method 1
, and the second button will callmethod 2
Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
-
But then it'll be two unrelated events. When I click the first button it has do some stuff and upon completion the ok button is clicked and control is transfered back. Shyam
-
I'm not sure why you want to do. Can you show some code of the click event? Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
Can't you show the second form modally? "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox
-
I'm not sure why you want to do. Can you show some code of the click event? Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
-
Sorry for the late reply, but thanks to everybody who replied. I got it to work according to what Nick said. Thanks Blaze