944,099 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Jun 15th, 2007
0

command button

Expand Post »
is there anyway by which i can check whether a command button has been clicked or not...
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
anud18 is offline Offline
52 posts
since Jun 2007
Jun 15th, 2007
0

Re: command button

actually to check in my project whether a command button present in my dll has been clicked and based on that i have to do further processing......
is there any way out...
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
anud18 is offline Offline
52 posts
since Jun 2007
Jun 15th, 2007
0

Re: command button

Hi Anud,

Just Keep a Public Form Level Boolean Variable, and Make that true When Comman button is Clicked. and check based on that

Regards
Veena
Reputation Points: 84
Solved Threads: 140
Posting Shark
QVeen72 is offline Offline
923 posts
since Nov 2006
Jun 18th, 2007
0

Re: command button

actually....how do i make the code written in my project wait until the command button in the module has been clicked......


i tried setting the boolean variable true when the command button is clicked.....but the statements in the main project are executed before the command button is clicked......how do i rectify this problem???
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
anud18 is offline Offline
52 posts
since Jun 2007
Jun 18th, 2007
0

Re: command button

Hi,

In that case, u need to have a Global Boolean Varaiable, defined in .Bas with scope = Public

In ur module Give:

Public MyFlag As Boolean

In Command Click :
MyFlag =True

In the Procedure where u want to check give this in the Beginning:

If Not MyFlag Then Exit Sub.


REgards
Veena
Reputation Points: 84
Solved Threads: 140
Posting Shark
QVeen72 is offline Offline
923 posts
since Nov 2006
Jun 18th, 2007
0

Re: command button

thanks veena,

But the problem is still not sorted out.....can u please tell me how to make the programme wait until the commandbutton_click event has been fired.....
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
anud18 is offline Offline
52 posts
since Jun 2007
Jun 18th, 2007
0

Re: command button

Hi Anud,

Can u please tell me what kind of program u r doing, (it makes easy for me to suggest).

u want to check in a single procedure or module..?

Regards
Veena
Reputation Points: 84
Solved Threads: 140
Posting Shark
QVeen72 is offline Offline
923 posts
since Nov 2006
Jun 18th, 2007
0

Re: command button

actually i have created a login authentication form a dll where there is this command botton....
and i am i am including this dll in my project....i want only if the user
presses the command button ...then only the further procesing should be done.....

is there any way to make the project wait untill this commandbutton_click event is fired???
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
anud18 is offline Offline
52 posts
since Jun 2007
Jun 18th, 2007
0

Re: command button

Hi Anud,

Usually in such caeses, we Call First the Login Form, We dont write any code in "Sub Main", (which is the Default starting point). In Login Form Validate/Call Dll's/ Check number of Try's. If every thing is OK, the Call another procedure which will start the Connection To Main Program/Module/Populate Global Variables.

REgards
Veena
Reputation Points: 84
Solved Threads: 140
Posting Shark
QVeen72 is offline Offline
923 posts
since Nov 2006
Jun 18th, 2007
0

Re: command button

sorry veena but i am not been able to understand you....
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
anud18 is offline Offline
52 posts
since Jun 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: About Array
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Needle which show's car speed can we use in vb





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC