Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: Debugger issues Pin
Richard Andrew x6428-Dec-08 2:58
professionalRichard Andrew x6428-Dec-08 2:58 
GeneralRe: Debugger issues Pin
Mustafa Ismail Mustafa28-Dec-08 3:32
Mustafa Ismail Mustafa28-Dec-08 3:32 
AnswerRe: Debugger issues Pin
Guffa28-Dec-08 7:20
Guffa28-Dec-08 7:20 
GeneralRe: Debugger issues Pin
Mustafa Ismail Mustafa28-Dec-08 9:17
Mustafa Ismail Mustafa28-Dec-08 9:17 
GeneralRe: Debugger issues Pin
Guffa28-Dec-08 14:21
Guffa28-Dec-08 14:21 
GeneralRe: Debugger issues Pin
Luc Pattyn28-Dec-08 14:29
sitebuilderLuc Pattyn28-Dec-08 14:29 
Questionuser control interaction Pin
dustybike28-Dec-08 1:54
dustybike28-Dec-08 1:54 
AnswerRe: user control interaction Pin
Colin Angus Mackay28-Dec-08 3:53
Colin Angus Mackay28-Dec-08 3:53 
dustybike wrote:
have a user control edit a string on the main control


Child controls should not know about their parent controls. If they do then you can't reuse the control and there would be no point in having it.

A number of possible solutions.

1. Use the observer pattern and have your user control expose an event that the main form handles. Your event is triggered by the button click.

2. Create an interface and have the main form implement it. Pass a reference to the interface (i.e. the form object) to the user control when the form is created. When the button is clicked it can invoke the method on the interface. If you have multiple forms that use the control they will each need to implement the interface.


AnswerRe: user control interaction Pin
Code Soldier28-Dec-08 4:21
Code Soldier28-Dec-08 4:21 
GeneralRe: user control interaction Pin
Colin Angus Mackay28-Dec-08 6:58
Colin Angus Mackay28-Dec-08 6:58 
QuestionProblem with a byte array buffer Pin
ajorge200828-Dec-08 1:43
ajorge200828-Dec-08 1:43 
AnswerRe: Problem with a byte array buffer Pin
Richard Andrew x6428-Dec-08 3:00
professionalRichard Andrew x6428-Dec-08 3:00 
GeneralRe: Problem with a byte array buffer Pin
ajorge200828-Dec-08 3:23
ajorge200828-Dec-08 3:23 
GeneralRe: Problem with a byte array buffer Pin
Luc Pattyn28-Dec-08 14:35
sitebuilderLuc Pattyn28-Dec-08 14:35 
AnswerRe: Problem with a byte array buffer Pin
Wendelius28-Dec-08 12:02
mentorWendelius28-Dec-08 12:02 
GeneralRe: Problem with a byte array buffer Pin
ajorge200828-Dec-08 22:33
ajorge200828-Dec-08 22:33 
GeneralRe: Problem with a byte array buffer Pin
ajorge200829-Dec-08 0:32
ajorge200829-Dec-08 0:32 
GeneralRe: Problem with a byte array buffer Pin
ajorge200829-Dec-08 6:13
ajorge200829-Dec-08 6:13 
QuestionShowing multiple forms inside a single form Pin
shaf21127-Dec-08 23:19
shaf21127-Dec-08 23:19 
AnswerRe: Showing multiple forms inside a single form Pin
#realJSOP27-Dec-08 23:50
mve#realJSOP27-Dec-08 23:50 
GeneralRe: Showing multiple forms inside a single form Pin
shaf21129-Dec-08 22:18
shaf21129-Dec-08 22:18 
AnswerRe: Showing multiple forms inside a single form Pin
Code Soldier28-Dec-08 4:47
Code Soldier28-Dec-08 4:47 
GeneralRe: Showing multiple forms inside a single form Pin
shaf21129-Dec-08 22:22
shaf21129-Dec-08 22:22 
QuestionActiveX PDF problem Pin
frappydan27-Dec-08 23:10
frappydan27-Dec-08 23:10 
QuestionVPN programmin Pin
sepel27-Dec-08 23:01
sepel27-Dec-08 23:01 

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.