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??
 
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:
 
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
 
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??
 
actually im very confuse about problem.
what is the reason why you have to put the control of the button in a module?
 
Back
Top