User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 426,133 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,772 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 3355 | Replies: 36
Reply
Join Date: Jun 2007
Posts: 52
Reputation: anud18 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
anud18 anud18 is offline Offline
Junior Poster in Training

command button

  #1  
Jun 15th, 2007
is there anyway by which i can check whether a command button has been clicked or not...
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2007
Posts: 52
Reputation: anud18 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
anud18 anud18 is offline Offline
Junior Poster in Training

Re: command button

  #2  
Jun 15th, 2007
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...
Reply With Quote  
Join Date: Nov 2006
Posts: 712
Reputation: QVeen72 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 97
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Master Poster

Re: command button

  #3  
Jun 15th, 2007
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
Reply With Quote  
Join Date: Jun 2007
Posts: 52
Reputation: anud18 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
anud18 anud18 is offline Offline
Junior Poster in Training

Re: command button

  #4  
Jun 18th, 2007
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???
Reply With Quote  
Join Date: Nov 2006
Posts: 712
Reputation: QVeen72 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 97
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Master Poster

Re: command button

  #5  
Jun 18th, 2007
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
Reply With Quote  
Join Date: Jun 2007
Posts: 52
Reputation: anud18 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
anud18 anud18 is offline Offline
Junior Poster in Training

Re: command button

  #6  
Jun 18th, 2007
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.....
Reply With Quote  
Join Date: Nov 2006
Posts: 712
Reputation: QVeen72 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 97
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Master Poster

Re: command button

  #7  
Jun 18th, 2007
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
Reply With Quote  
Join Date: Jun 2007
Posts: 52
Reputation: anud18 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
anud18 anud18 is offline Offline
Junior Poster in Training

Re: command button

  #8  
Jun 18th, 2007
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???
Reply With Quote  
Join Date: Nov 2006
Posts: 712
Reputation: QVeen72 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 97
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Master Poster

Re: command button

  #9  
Jun 18th, 2007
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
Reply With Quote  
Join Date: Jun 2007
Posts: 52
Reputation: anud18 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
anud18 anud18 is offline Offline
Junior Poster in Training

Re: command button

  #10  
Jun 18th, 2007
sorry veena but i am not been able to understand you....
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 4:36 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC