Quote:
Originally posted by xyz777
iv'e got two forms, the first is Mainform and second_form
wha i am trying to do, is to access a button on the mainform from the second form,,,,,,,
while running the second form, i managed to do
Dim mf as new mainform
mf.button1.text = " new text updated"
but i found out that i have now two mainform opened,,,,,
and i couldnt' manage to change the data from mainform1
so what u advise me to do in this situation,
thank for helping
you have to understand how classes work. A form is a class. You need to have a reference to the form to be able to access it.