English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to reference another form's field from the global module

2007-05-28 12:04:52 · 1 answers · asked by Sugar 1 in Computers & Internet Programming & Design

1 answers

Try making a public property or function on the form which will encapsulate the control function you wish to modify.

for example on Form1 create:

Public Sub myFrmButtonEnable( myBln as Boolean)
me.Button.Enable = myBln
End sub

from your module call this sub by

Form1.myFrmButtonEnable = False

2007-05-28 12:21:00 · answer #1 · answered by MarkG 7 · 1 0

fedest.com, questions and answers