Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
AnswerRe: Two Dimensional Control Array? Pin
Mohamad Al Husseiny4-Sep-05 15:30
Mohamad Al Husseiny4-Sep-05 15:30 
Questionhow to access main form controls from usercontrol on the form Pin
monica2k4-Sep-05 14:45
monica2k4-Sep-05 14:45 
AnswerRe: how to access main form controls from usercontrol on the form Pin
Christian Graus4-Sep-05 14:53
protectorChristian Graus4-Sep-05 14:53 
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 
sorry to bother you again.

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

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

i could not get the concept of this line.
where this line is to be written in the main form or in the control.

if i write this line inthe main form after the call to initialisecomponents.
PatientDetails.RefreshTree = new PatientDetails.ClickEvent(this.RefreshEvent);

where PatientDetails is my usercontrol and frmMain is my Main form.
it gives me this error
e:\PRJVITREORETINAL\frmMain.cs(54): An object reference is required for the nonstatic field, method, or property 'PRJVITREORETINAL.PatientDetails.RefreshTree'

thanks
monica

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 
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 

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.