Click here to Skip to main content
15,909,325 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Redo undo functionality in Grid [modified] Pin
EliottA12-Dec-08 7:02
EliottA12-Dec-08 7:02 
QuestionCalling parent form/container from user control Pin
Valkiri11-Dec-08 3:04
Valkiri11-Dec-08 3:04 
AnswerRe: Calling parent form/container from user control Pin
Ashfield11-Dec-08 3:18
Ashfield11-Dec-08 3:18 
GeneralRe: Calling parent form/container from user control Pin
Valkiri11-Dec-08 11:29
Valkiri11-Dec-08 11:29 
AnswerRe: Calling parent form/container from user control Pin
Tom Deketelaere11-Dec-08 4:15
professionalTom Deketelaere11-Dec-08 4:15 
GeneralRe: Calling parent form/container from user control Pin
Valkiri11-Dec-08 11:41
Valkiri11-Dec-08 11:41 
GeneralRe: Calling parent form/container from user control Pin
Tom Deketelaere11-Dec-08 21:12
professionalTom Deketelaere11-Dec-08 21:12 
GeneralRe: Calling parent form/container from user control Pin
Valkiri11-Dec-08 23:17
Valkiri11-Dec-08 23:17 
Thanks Tom.
I'll put this code into a test and modify it if required.

Tom Deketelaere wrote:
Its the form that handles your control's mybuttonclick event


This is understood.
I am attempting to avoid having to write the button click handling code into each form. In my scenario the form would be subclassed and reside in a library that would be added to the solution. This subclassed form in the library would be pre-sized and formatted to maintain a consistent UI. It would have code that handles the control(s) say the click event. That code would only be called if the production form had an instance of that/those particular control(s) and a triggering event occurred in the control. Hence my thinking that the control would call up to its container. The control would not know or care about its parent, it would only know that it needs to call its parent when its trigger event occurs. The parent, admittedly more often than not a form, would assume control of any subsequent actions, including chaining up to its parent if necessary.

I think that we have now exhausted this thread.

Thanks for the response.
AnswerRe: Calling parent form/container from user control Pin
Dave Kreskowiak11-Dec-08 4:40
mveDave Kreskowiak11-Dec-08 4:40 
GeneralRe: Calling parent form/container from user control Pin
Valkiri11-Dec-08 12:11
Valkiri11-Dec-08 12:11 
GeneralRe: Calling parent form/container from user control Pin
Dave Kreskowiak11-Dec-08 12:44
mveDave Kreskowiak11-Dec-08 12:44 
GeneralRe: Calling parent form/container from user control Pin
Valkiri11-Dec-08 16:11
Valkiri11-Dec-08 16:11 
GeneralRe: Calling parent form/container from user control Pin
Dave Kreskowiak11-Dec-08 21:23
mveDave Kreskowiak11-Dec-08 21:23 
GeneralRe: Calling parent form/container from user control Pin
Valkiri11-Dec-08 22:21
Valkiri11-Dec-08 22:21 
QuestionUser defined type not defined - Error Pin
samsonx11-Dec-08 0:26
samsonx11-Dec-08 0:26 
AnswerRe: User defined type not defined - Error Pin
Ashfield11-Dec-08 1:20
Ashfield11-Dec-08 1:20 
AnswerRe: User defined type not defined - Error Pin
Nanda_MR11-Dec-08 21:49
Nanda_MR11-Dec-08 21:49 
QuestionSetting the DataTable object to Nothing Pin
Coding12345610-Dec-08 19:17
Coding12345610-Dec-08 19:17 
AnswerRe: Setting the DataTable object to Nothing Pin
Christian Graus10-Dec-08 21:15
protectorChristian Graus10-Dec-08 21:15 
GeneralRe: Setting the DataTable object to Nothing Pin
Coding12345611-Dec-08 10:54
Coding12345611-Dec-08 10:54 
GeneralRe: Setting the DataTable object to Nothing Pin
Luc Pattyn11-Dec-08 1:32
sitebuilderLuc Pattyn11-Dec-08 1:32 
AnswerRe: Setting the DataTable object to Nothing [modified] Pin
Dave Kreskowiak11-Dec-08 4:36
mveDave Kreskowiak11-Dec-08 4:36 
GeneralRe: Setting the DataTable object to Nothing Pin
Luc Pattyn11-Dec-08 4:48
sitebuilderLuc Pattyn11-Dec-08 4:48 
GeneralRe: Setting the DataTable object to Nothing Pin
Dave Kreskowiak11-Dec-08 4:55
mveDave Kreskowiak11-Dec-08 4:55 
GeneralRe: Setting the DataTable object to Nothing Pin
Coding12345611-Dec-08 11:04
Coding12345611-Dec-08 11:04 

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.