Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to access main form controls from usercontrol on the form Pin
monica2k4-Sep-05 15:48
monica2k4-Sep-05 15:48 
GeneralRe: how to access main form controls from usercontrol on the form Pin
Christian Graus4-Sep-05 15:51
protectorChristian Graus4-Sep-05 15:51 
GeneralRe: how to access main form controls from usercontrol on the form Pin
monica2k4-Sep-05 16:54
monica2k4-Sep-05 16:54 
GeneralRe: how to access main form controls from usercontrol on the form Pin
Christian Graus4-Sep-05 16:56
protectorChristian Graus4-Sep-05 16:56 
GeneralRe: how to access main form controls from usercontrol on the form Pin
monica2k4-Sep-05 17:10
monica2k4-Sep-05 17:10 
GeneralRe: how to access main form controls from usercontrol on the form Pin
Christian Graus4-Sep-05 17:22
protectorChristian Graus4-Sep-05 17:22 
GeneralRe: how to access main form controls from usercontrol on the form Pin
monica2k4-Sep-05 17:31
monica2k4-Sep-05 17:31 
GeneralRe: how to access main form controls from usercontrol on the form Pin
Christian Graus4-Sep-05 17:33
protectorChristian Graus4-Sep-05 17:33 
monica2k wrote:
PatientDetails PatDetails = new PatientDetails();
PatDetails.Visible = true;
PatDetails.Dock = DockStyle.Top;
MainPanel.Controls.Clear();
MainPanel.Controls.Add(PatDetails);
this is refresh function in the mainform


Ah... If your PatientDetails object is created on the fly, this is also where you need to set up the event. Something like

PatDetails.RefreshEvent = new PatientDetails.ClickEvent(this.RefreshEvent);

What you did is create a NEW PatientDetails object, and assign it ( and only it ) to have this event.

Christian Graus - Microsoft MVP - C++
GeneralRe: how to access main form controls from usercontrol on the form Pin
monica2k4-Sep-05 17:49
monica2k4-Sep-05 17:49 
GeneralRe: how to access main form controls from usercontrol on the form Pin
Christian Graus4-Sep-05 17:50
protectorChristian Graus4-Sep-05 17:50 
QuestionFinding variables of a special type Pin
User 66584-Sep-05 14:27
User 66584-Sep-05 14:27 
AnswerRe: Finding variables of a special type Pin
Christian Graus4-Sep-05 14:54
protectorChristian Graus4-Sep-05 14:54 
GeneralRe: Finding variables of a special type Pin
User 66584-Sep-05 15:01
User 66584-Sep-05 15:01 
Questionusing c# for console .exe Pin
Sasuko4-Sep-05 12:25
Sasuko4-Sep-05 12:25 
QuestionStarting Process "CMD.exe" Pin
sylvester20004-Sep-05 10:07
susssylvester20004-Sep-05 10:07 
AnswerRe: Starting Process "CMD.exe" Pin
Mohamad Al Husseiny4-Sep-05 15:01
Mohamad Al Husseiny4-Sep-05 15:01 
GeneralRe: Starting Process "CMD.exe" Pin
Bonsai20044-Sep-05 23:23
Bonsai20044-Sep-05 23:23 
Questionwriting log files on server Pin
Anonymous4-Sep-05 9:14
Anonymous4-Sep-05 9:14 
AnswerRe: writing log files on server Pin
Christian Graus4-Sep-05 10:53
protectorChristian Graus4-Sep-05 10:53 
Questionmanaged resources Pin
CWinThread4-Sep-05 6:40
CWinThread4-Sep-05 6:40 
AnswerRe: managed resources Pin
Guffa4-Sep-05 6:45
Guffa4-Sep-05 6:45 
GeneralRe: managed resources Pin
CWinThread4-Sep-05 10:52
CWinThread4-Sep-05 10:52 
QuestionMulti users and Multi connectios in client/server application Pin
rmedo4-Sep-05 4:09
rmedo4-Sep-05 4:09 
AnswerRe: Multi users and Multi connectios in client/server application Pin
Christian Graus4-Sep-05 10:54
protectorChristian Graus4-Sep-05 10:54 
GeneralRe: Multi users and Multi connectios in client/server application Pin
rmedo4-Sep-05 20:22
rmedo4-Sep-05 20:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.