Reply

Join Date: Jun 2007
Posts: 52
Reputation: anud18 is an unknown quantity at this point 
Solved Threads: 0
anud18 anud18 is offline Offline
Junior Poster in Training

command button

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

Re: command button

 
0
  #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 Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: command button

 
0
  #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 Quick reply to this message  
Join Date: Jun 2007
Posts: 52
Reputation: anud18 is an unknown quantity at this point 
Solved Threads: 0
anud18 anud18 is offline Offline
Junior Poster in Training

Re: command button

 
0
  #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 Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: command button

 
0
  #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 Quick reply to this message  
Join Date: Jun 2007
Posts: 52
Reputation: anud18 is an unknown quantity at this point 
Solved Threads: 0
anud18 anud18 is offline Offline
Junior Poster in Training

Re: command button

 
0
  #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 Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: command button

 
0
  #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 Quick reply to this message  
Join Date: Jun 2007
Posts: 52
Reputation: anud18 is an unknown quantity at this point 
Solved Threads: 0
anud18 anud18 is offline Offline
Junior Poster in Training

Re: command button

 
0
  #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 Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: command button

 
0
  #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 Quick reply to this message  
Join Date: Jun 2007
Posts: 52
Reputation: anud18 is an unknown quantity at this point 
Solved Threads: 0
anud18 anud18 is offline Offline
Junior Poster in Training

Re: command button

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

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC