visual studio - Form1.button2.text.. is not accessible in this context because its private -
what after clicking button14 login change button in forms text "sample" change class button2 private public still error
public sub button14_click(sender object, e eventargs) handles button14.click if textbox2.text = "sample" , textbox3.text = "****" form1.show() me.hide() button2.text = ("sample") form1.button2.text = ("sample") else msgbox("sorry, username or password not found", msgboxstyle.okonly, "invalid") textbox2.text = " " textbox3.text = " " end if end sub
this form 1
public sub button2_click(sender object, e eventargs) handles button2.click login.show() me.hide() end sub
my guess winform project.
you can change access modifier of button in form designer. select button press f4 property grid, find modifiers , change whatever.
Comments
Post a Comment