run event on other form

  • Thread starter Thread starter Saladin
  • Start date Start date
S

Saladin

Hi

VB.Net Desktop

What's a good way to run an event on a different form? I've got a form 'on
top' and when I click a button I's like the underlying form to reload.

Thanks
Graeme
 
explicitly calling the method is the easiest way (you, generally,
cannot raise the event directly, but a method call should work -- check
the access modifier though)
 
Saladin,

When you place globaly
\\\
private withevents mynewform as new form2
///
Than you can catch the events from that form (the top not its controls).
Therefore you can create on that in form2 an own event
\\\
public event myevent
///
And when it is needed
\\\
raiseevent myevent
///
However in the way you describe it, it looks for me a confusing way of using
it in that way.

I hope this helps,

Cor
 
Thanks Cor. Most of the stuff I do is confusing, especially to me. But I
plod on and hopefully eventually get there! When I said 'reload' the
underlying form, I really just need to click a button to reload a datagrid.
So I'll see how I get on with your help. Cheers, Graeme
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top