Userform Name in variable

Thread Solved

Join Date: Jun 2009
Posts: 5
Reputation: pmyk is an unknown quantity at this point 
Solved Threads: 0
pmyk pmyk is offline Offline
Newbie Poster

Userform Name in variable

 
0
  #1
Jun 30th, 2009
How to use the name of one Userform which is received in another Userform as a variable?
P. Michael
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 826
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 150
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark

Re: Userform Name in variable

 
0
  #2
Jun 30th, 2009
very vague question, perhaps some code or a further explanation of what you mean.


Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 5
Reputation: pmyk is an unknown quantity at this point 
Solved Threads: 0
pmyk pmyk is offline Offline
Newbie Poster

Re: Userform Name in variable

 
0
  #3
Jul 1st, 2009
frmPBar has one label lblScroller. While I am searching through Excel REcords in frmFriends, I want the lblScroller to increment like a progress bar and tell the user that proceesing is being done. To do this in frmFriends I want to measure the width of lblScroller, which is in frmPBar. How to call in frmFriends, the control which is on frmPBar. Later on, I will call that label from frmKithAndKin and also from frmVIPs. Any suggestion, appreciated. I am new to VB.
-PMYK
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 826
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 150
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark

Re: Userform Name in variable

 
0
  #4
Jul 1st, 2009
Okay, to get or set controls in other forms it is as simple as...
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. 'we are in form1 and we want the width of label1 in form2
  2. MyVariable = Form2.Label1.Width
or to set...
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. 'we are in form1 and we want to set the width of label1 in form2
  2. Form2.Label1.Width = MyVariable


Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 5
Reputation: pmyk is an unknown quantity at this point 
Solved Threads: 0
pmyk pmyk is offline Offline
Newbie Poster

Re: Userform Name in variable

 
0
  #5
Jul 1st, 2009
Mr. vb5prgrmr !
Thank you very much. It works fine. You have solved my problem. Probably some others also may be benefitted. Thanks for the good service.
-PM
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 826
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 150
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark

Re: Userform Name in variable

 
0
  #6
Jul 1st, 2009
Your welcome.
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
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