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 397,845 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 2,452 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:
Views: 3172 | Replies: 36
Reply
Join Date: Jun 2007
Posts: 166
Reputation: AV Manoharan is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 7
AV Manoharan AV Manoharan is offline Offline
Junior Poster

Re: command button

  #11  
Jun 18th, 2007
Anu, You again!

See a dll works as a subprogram right?

in that you have a form with a command button and you want to know in your main program whether the user had clicked the command button in it. Ist it not.?

First tell me whether that form is visible with the command button and get back to me.
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

  #12  
Jun 18th, 2007
yes sir the form along with the command button is visible...
Reply With Quote  
Join Date: Nov 2006
Posts: 709
Reputation: QVeen72 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 95
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Master Poster

Re: command button

  #13  
Jun 18th, 2007
Hello Anud,

UR .dll Form Has Got COMMAND Button....?

Look, after compilation, u can only access .dll's Libraries/Procedures/Functions.
Visual Interface of Dll has got no meaning in the Calling Program.
Clearify...

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

  #14  
Jun 18th, 2007
ya i created the showform function in the dll's class.....after calling the showform function i want the execution to proceed only after the command button has been clicked....
Reply With Quote  
Join Date: Nov 2006
Posts: 709
Reputation: QVeen72 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 95
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Master Poster

Re: command button

  #15  
Jun 18th, 2007
Hi,

Then in .dll call the form in Modal:

Form1.Show 1

And in Command Click, Unload the Form


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

  #16  
Jun 18th, 2007
its still not working.....i think its a case of making a thread wait.....can you please give an example wherein i can make a particular thread untill a particular event is fired....
Reply With Quote  
Join Date: Apr 2007
Posts: 41
Reputation: vbCNEW is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 3
vbCNEW vbCNEW is offline Offline
Light Poster

Re: command button

  #17  
Jun 18th, 2007
hello anud18.. i think veena is right. if ur just doing a login forn... try call it then proceed to the process u want after the clicked event..
sometimes we need to change everything to fixed our problems!!!

but if u really want to put a code as it is...
and u want a wait until button is pressed??? try put a loop before the process need to be executed after the clicked and put a DOEVENTS .. use the variable to end the loop.. i hope it helps
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

  #18  
Jun 18th, 2007
havnt been able to sort out the problem still...
Reply With Quote  
Join Date: Jun 2007
Posts: 166
Reputation: AV Manoharan is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 7
AV Manoharan AV Manoharan is offline Offline
Junior Poster

Re: command button

  #19  
Jun 18th, 2007
Originally Posted by anud18 View Post
yes sir the form along with the command button is visible...

OK in that in sub command1_Click() you add

Unload Form2

and back in the main form immediately after

Form2.Show vbModal

Give this command

Form_load
command1.SetFocus (or any control in the main form)

remember a second form_load will duplicate all those AddItems
beware of that one.
For that for each control you have to removeitems in a loop that has been added on the initial state.
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

  #20  
Jun 18th, 2007
not working sir
Reply With Quote  
Reply

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

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
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 7:54 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC