9 Years
Discussion Span
Last Post by vb5prgrmr

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.


Okay, to get or set controls in other forms it is as simple as...

'we are in form1 and we want the width of label1 in form2
MyVariable = Form2.Label1.Width

or to set...

'we are in form1 and we want to set the width of label1 in form2
Form2.Label1.Width = MyVariable

Good Luck


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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.