How to reload a main form from sub form in C#
Posted Date Unknown stephin Francis Antony 1 Comment

I have a project with a main form "Uploaderhome".Then by clicking appropriate button i move to another form "Destination".When closing the second form, i want to reload the form "Uploaderhome". I tried following codes but not working.

Uploaderhome obj=new Uploaderhome();

obj.Refresh();

 

See All Responses Below...
Author
Message Rating
Posted on: 23/07/2013
Set the main form as a member variable and call it form the form which you are intereted..

like this ..
Uploaderhome :: Uploaderhome (ParentForm frm)
{
m_MainFrm=
frm;
}
ete etc..

Hope this OK..
Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Comments
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site. 

TekTipsDownload
GateExam
Academic Projects
TekTipsExperts



 
Site optimized for IE7, 1280 X 768 and above. Copyright © 2010 - 2018 KTS InfoTech
Site Developed Using KTS WebCloud