Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Refereshing MDI Child forms in Windows MDI Application.

$
0
0

I have one requirement in my MDI Windows application:

In my MDI application, I have one MDIParent Form, under which all the child forms open in tabs.

I have referesh button in MDIParent form on clicking which current active mdichild form should referesh(i.e.. reload).

I know I can find active mdichild form in mdiparent as:

Dim mdichildfrm as form = Me.ActiveMDIChild          'in referesh button click event

Basically the child forms have grids, combo boxes that gets populated during form_load and one function I call in constructors. 

But I want to put the refersh/reload code for all the forms at one place in a method.

Whenvever user clicks referesh button, it will referesh the current active mdichild form using this method.

Currently the users are closing/ reopening forms to refresh te data, I want to avoid this with above functionality.

Any quick response would be greatly appreciated...


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>