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

C#

 
GeneralRe: how to access main form controls from usercontrol on the form Pin
monica2k4-Sep-05 15:00
monica2k4-Sep-05 15:00 
GeneralRe: how to access main form controls from usercontrol on the form Pin
Christian Graus4-Sep-05 15:04
protectorChristian Graus4-Sep-05 15:04 
GeneralRe: how to access main form controls from usercontrol on the form Pin
monica2k4-Sep-05 15:18
monica2k4-Sep-05 15:18 
GeneralRe: how to access main form controls from usercontrol on the form Pin
Christian Graus4-Sep-05 15:33
protectorChristian Graus4-Sep-05 15:33 
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 
Yeah, like I said:

in the mainform:

void RefreshEvent()
{
theTree.Invalidate();
}

inside the create method, just after the call to initialisecomponents:

theControl.RefreshTree = new ControlType.ClickEvent(this.RefreshEvent);

RefreshTree is just a name. You set the ClickEvent to be null, and when you check, it's still null. It needs to be give a value of a method in the main form.


Christian Graus - Microsoft MVP - C++
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 
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 

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.