borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (print text on desktop)Next Topic (Form Title Bar Color) New Topic New Poll Post Reply
AndreaVB Forum : API : Raising Events - attaching
Poster Message
IdRatherBeProgramming
Level: Guest


icon Raising Events - attaching

I have a parent form that contains a custom child control.

When the parent form Form_Show() event kicks off, I want to have it execute a process in my custom control.  I don't want to put any code in the parent form though...  

I'd like to just drop the control on the form, and when the form is shown, it will execute the function of the control (which adjusts background color, font colors, etc. of controls on parent to settings from a file).

I have the child control working, but would like to have it automatically attach it's GO() function to the parent Form_Show() event.

Anyone know how to do this?

17-09-2004 at 03:05 PM
| Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Raising Events - attaching

Is there some particular reason why you need that info, why cant you use, for instance, UserControl Show event? It is fired whenever usercontrol is created, just check if Ambient.UserMode=True, if so, it means that we are in rum time, and Form is loaded.

____________________________
If you find the answer helpful, please mark this topic as solved.

18-09-2004 at 03:25 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : API : Raising Events - attaching
Previous Topic (print text on desktop)Next Topic (Form Title Bar Color) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder