hi,
i have a little problem with my program.
i have inherited a form1 to form2. i now write a command in form1 that needs to appear in a label in form 2, it has since been impossible for me.
secondly, i have a button in form2 that needs to display a result. but the button needs to be able to read from form1 in other to do so.
please this is urgent.
any help will do

Inheritance
Reaction
SarasMax
You could definately use public methods, but I would suggest you create public properties to get and set the respective field.
Regards.
jasmine pham
hazz
HAi
You can use public in both the classes of the form.Then it will correctly. Have a look at this
Class classname1: public classname2
{
}
class classname2:public classname1
{
}
OUPRO
You will have to, at the least, write some public properties to let form2 read the values. The easiest way for your button on form2 to pull info from form1 is to use:
CType(My.Application.OpenForms.Item("Form1"), Form1)
That gives you access to the open form1 instance. From there just pull the public property you wrote and everything should be good.
PS This is definitly the wrong forum for your post.
pak1234
Juliano.net
HI,
Actually you have posted your question in a proper format and what application it is based on.But to say generally what yazad_gandhi will suit you .