control button at main frm

Jeackal

Member
Joined
Jun 15, 2004
Messages
8
Programming Experience
1-3
hello i faced a problem here, i want to control a button in the main frm with a module to change the text of the button, visible the button or click the button...can any1 help??
 

mzim

Well-known member
Joined
Jun 3, 2004
Messages
187
Location
Other side of the rock
Programming Experience
1-3
Jeackal said:
hello i faced a problem here, i want to control a button in the main frm with a module to change the text of the button, visible the button or click the button...can any1 help??
VB.NET:
 'to change the text
 button1.text="I dont know"
VB.NET:
 'to visible the button
 button1.visible = True
VB.NET:
 'to click the button
 button1.performclick()
hope this helps..:cool:
 

Jeackal

Member
Joined
Jun 15, 2004
Messages
8
Programming Experience
1-3
thanks for replying me....but izzit this code must be write in the main frm??
coz i want to write a code in a module to control the main frm button....thanks
 

mzim

Well-known member
Joined
Jun 3, 2004
Messages
187
Location
Other side of the rock
Programming Experience
1-3
just write the code in the main form..
 

Jeackal

Member
Joined
Jun 15, 2004
Messages
8
Programming Experience
1-3
i have try the code already and it work thanks..but there still hav some problem....
coz when i'm click a button in the frm2, i need to call a module or directly control the button in the main frm....how i 'm going to solve this??
 

mzim

Well-known member
Joined
Jun 3, 2004
Messages
187
Location
Other side of the rock
Programming Experience
1-3
actually im very confuse about problem.
what is the reason why you have to put the control of the button in a module?
 

Jeackal

Member
Joined
Jun 15, 2004
Messages
8
Programming Experience
1-3
haha....may b my english is not that good :p....sori to confusing u
 
Top Bottom