|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
UserControl replacement for Load() ?Hello All,
I have this UserControl initialization code that should only *ever* run during run-time. The problem is the UserControl_Initialize() event doesn't give me access to Ambient.UserMode. Also, my control is designed to be invisible just like a timer or common dialog is, so I don't want to rely on Paint() or Resize() as startup events. To make the problem worse, I also need to free the resources that my initialization code alloates - but only as the program ends. So is there any way for me to trap the initialize and terminate events at runtime only? Thanks, -Joel "Joel Whitehouse" <joelwhiteho***@gmail.com> wrote in message news:oXpke.292$PS3.110@attbi_s22> Hello All, Can't you use the ReadProperties event?> > I have this UserControl initialization code that should only *ever* > run during run-time. The problem is the UserControl_Initialize() > event doesn't give me access to Ambient.UserMode. > To make the problem worse, I also need to free the resources that my Your code in the Terminate event should be able to see that the resources> initialization code alloates - but only as the program ends. So is > there any way for me to trap the initialize and terminate events at > runtime only? weren't allocated when running at design time. Even if you have to set a flag to that effect when you allocate the resources. -- Reply to the group so all can participate VB.Net: "Fool me once..."
Need some help in compressing bmp file to jpeg file
Get rid of flicker inside a frame. VB6 don't see events of the implemented interface checkbox always is disabled!!!! Simulating relational database with text files X-axis value of Excel chart load extern exe file into mdi framework? Installing Fonts using user defined types Optimizing Binary File Input |
|||||||||||||||||||||||