brian_leighty
asked on
I'm trying to create a splash popup screen that connects to a SQL database....the code I have populates a combobox from a SQL field by it index and primary key.....pretty staight forward but.......
The big question is.....
I have a MDI parent form...using the mainmenu I load a child form (called childadd_form) that lets people enter information into the database....the form itself has many combobox that are populated from the database....
I want a splash form to popup before the childadd_form that connects to a database and loads the combobox's before the childadd_form form is visible...
Basically a UI for the loading of a forms data from a database but with a splash screen for the user to vview the progrss of the load...
Sounds complicated may not be possible but I'm open for ideas....
Worth lots of points.....please only serious inquires..
I have a MDI parent form...using the mainmenu I load a child form (called childadd_form) that lets people enter information into the database....the form itself has many combobox that are populated from the database....
I want a splash form to popup before the childadd_form that connects to a database and loads the combobox's before the childadd_form form is visible...
Basically a UI for the loading of a forms data from a database but with a splash screen for the user to vview the progrss of the load...
Sounds complicated may not be possible but I'm open for ideas....
Worth lots of points.....please only serious inquires..
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
what do you mean by referenced
ASKER
can you explain the class and what it does to the form
> what do you mean by referenced
In my code, there is this line:
Private Shared mfrmWait As WaitForm
That assumes that the (splash-) form (resp. class) is named "WaitForm"
> can you explain the class and what it does to the form
It's a simple wrapper that allows you to load the WaitForm with issuing a call to the shared method "WaitMessage" of the CWaitForm. This way you don't have to deal with anything *but* issuing the call - the CWaitForm-class will handle opening the splash-form if it's not loaded and passing the text over to it. Well, you'll have to also call CWaitForm.DisposeWaitForm in order to close the form after you're done with whatever you do, i.e. just before your MDI-child actually gets visible.
It's quite simple really - why don't you create a new Windows.Forms project and add the code to it.
Cheers,
Olaf
In my code, there is this line:
Private Shared mfrmWait As WaitForm
That assumes that the (splash-) form (resp. class) is named "WaitForm"
> can you explain the class and what it does to the form
It's a simple wrapper that allows you to load the WaitForm with issuing a call to the shared method "WaitMessage" of the CWaitForm. This way you don't have to deal with anything *but* issuing the call - the CWaitForm-class will handle opening the splash-form if it's not loaded and passing the text over to it. Well, you'll have to also call CWaitForm.DisposeWaitForm in order to close the form after you're done with whatever you do, i.e. just before your MDI-child actually gets visible.
It's quite simple really - why don't you create a new Windows.Forms project and add the code to it.
Cheers,
Olaf
ASKER
I tried it......but how would I go about adding database strings to the wait form...
ASKER
how could I pass through to more then one label or a progressbar or an statusbar, I use a label my splash form but how could I use other controls.....
could you elaborate on your code a little.....I think this will work but I need more ability with it....
Thanks A bunch!!!
could you elaborate on your code a little.....I think this will work but I need more ability with it....
Thanks A bunch!!!
Essentially you would handle additional controls either the same way (i.e. one property per control) or you might setup one sub that would take all parameters and pass them along the way - the idea behind this doesn't change at all.
I don't really know what else I could tell you. Have you tried the sample?
Cheers,
Olaf
I don't really know what else I could tell you. Have you tried the sample?
Cheers,
Olaf
ASKER
could you do a example please
Brian,
I could, but what exactly would you want in it? It'll take until late Thursday, I've got to see a client tomorrow, so I'll have no access to the web until Thursday.
Cheers,
Olaf
I could, but what exactly would you want in it? It'll take until late Thursday, I've got to see a client tomorrow, so I'll have no access to the web until Thursday.
Cheers,
Olaf
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
well planocz...I appreciate your code and learned much from it but I have not been able to get it to do what I need to do....
the module that I used and the dataset that was in your code didn't not work and I'm not good enought to figure it out...
I like the way I populate the data in my form I just want a progrss bar that is accurate in the connection of a database....
the module that I used and the dataset that was in your code didn't not work and I'm not good enought to figure it out...
I like the way I populate the data in my form I just want a progrss bar that is accurate in the connection of a database....
ASKER
planocz I really want to just send you my program so you can run it and see for yourself what I'm trying to accomplish......with your code that I have added and the way that the program works you may ba able to help me better.....
Look in my profile for Emergency help
Brian,
I don't really know what you're expecting. I have already given you a sample that should really include what you are looking for. Unless you more exactly exactly what it is you want, I won't be able to offer any further help.
Cheers,
Olaf
I don't really know what you're expecting. I have already given you a sample that should really include what you are looking for. Unless you more exactly exactly what it is you want, I won't be able to offer any further help.
Cheers,
Olaf
Cheers,
Olaf