Click here to Skip to main content
15,910,886 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
Valkiri wrote:
Look what I've Found:
http://www.codeproject.com/KB/cs/agusercontrol.aspx[^]


Just because there's an article on the subject, doesn't make it a good idea.


Valkiri wrote:
Are you stating that controls should never (hardly ever anyway) call the form.


It goes against OOP practices, specifically, "encapsulation", yes.

Valkiri wrote:
Am I correct in understanding that you advise that the form should listen for and catch the, say, click event and act upon it.


That's one possible solution, yes.

Valkiri wrote:
If the form is waiting to catch the event does this mean that the controls say click event has no code in it.


It should have the code necessary to clean up the data the control, and that button, is responsible for and raise it's event or some other notification mechanism.


Valkiri wrote:
Do you know of URLs / articles that address this question of using control libraries.


I haven't found much in the way of control development on the web. Mostly in books and from what I gleaned out of the .NET Framework itself, using Reflector.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




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 
GeneralRe: Setting the DataTable object to Nothing Pin
Dave Kreskowiak11-Dec-08 12:38
mveDave Kreskowiak11-Dec-08 12:38 
AnswerRe: Setting the DataTable object to Nothing Pin
Coding12345611-Dec-08 13:49
Coding12345611-Dec-08 13:49 
AnswerRe: Setting the DataTable object to Nothing Pin
Colin Angus Mackay11-Dec-08 4:38
Colin Angus Mackay11-Dec-08 4:38 
GeneralRe: Setting the DataTable object to Nothing Pin
Coding12345611-Dec-08 11:28
Coding12345611-Dec-08 11:28 
GeneralRe: Setting the DataTable object to Nothing Pin
Colin Angus Mackay11-Dec-08 12:32
Colin Angus Mackay11-Dec-08 12:32 

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.