Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting a form control property from within a module??

Status
Not open for further replies.

mcbigj

Programmer
Dec 14, 2001
83
US
How do I gain control of a form from within a module or user created class? I can't seem to get access to any of the my form controls. Thanks in advance
McDoogle
 
Hi.

Pass a parameter set as form to the module/class

For example:

***** Module *****

Public Sub FormTest (frmTest as Form)
frmTest.Caption = "Test"
End Sub

***** Calling Code *****

'Call Sub
FormTest me


Hope it helps To get what you want, you have to go through the crap, but to get through the crap you have to know what you want... [rockband]
 
Sorry...That may not work. I forgot I was in the .Net forum. Thought I was still in the VB 5/6 forum To get what you want, you have to go through the crap, but to get through the crap you have to know what you want... [rockband]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top