Popup Control |
Post Reply |
Author | |
Maui
Groupie Joined: 10 June 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
Posted: 16 December 2004 at 4:38pm |
I have written an exe that does batch processing. It doesnt have a form, it just does the job and then reports the results in a msgbox. I had a look at the Popup Control and thought it would make a nice replacement for the standard msgbox I was using. My first request to the development team is Can you make this control creatable so that I can late bind it. eg dim PC as new PopupControl Since you cant create it like this at the moment I had to add a form so that I could use this object. This is what I did. Private Sub ShowReport() That worked fine except obviously formAbout is still loaded. I cant unload the form in that Sub because unloading it also closes the PopupControl. So I put this code in formAbout thinking it would unload the form when the popup control closed. Private Sub PopupControl_StateChanged() What actually happens is that my application crashes. Any thoughts on how I could best achieve my goal? or why the IDE crashes when I unload the form?
|
|
Maui
Groupie Joined: 10 June 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
|
For reference what I ended up doing to avoid the crashing was to create a form with nothing on it but a popup control and a timer and used the timer to unload the form when the state state changes. You should investigate why it is that a timer can unload the form ok after checking the .state value but an Unload Me inside the state change event will crashe your application. I had tried a loop (commented out in code below) but in the end went for the timer option. Public Sub ShowReport() |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |