(sender,e) problem

  • 15 years ago

    hi


    I have such a problem:
    I have two forms: on each I have button. Now, how can I execute code assigned to button on form2 by clicking button on form1???


    I was trying to write such a code:


    dim form2 as frmform2
    form2.button1_click(sender,e)


    but I get this code underline with blue line and it is written that this button is not accessible in this context because it is Private. I think that it should be Pulic. But how to do it


    Please help


    regards,
    sweet_dreams

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The difference between theory and practice is smaller in theory than in practice.”