You can not create a dialog box or toolbar in the same way. Let there be no mistake about it, the forms, messagebox's, dialogue boxes and all buttons are created by windows, even when you use VB. You have to have a program to actually make windows create one, and you can not do so just as a "user" of the system. Certainly, they will pop up when windows demands the need for one, but it's not going to be designable, like in VB.
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
I personally find end to be ungraceful and tacky. If you do anything with hooks (especially system-wide hooks), or subclassing, and even with the use of many objects (using createobject), using "end" is an awful idea. While it's purpose was meant for good, in programming practice, is just awful. I have a made a sub I call die, which is part of my standard module (one I add to every project) and it works like this:
' /* For all The forms in the project */
for each XFrm in Forms
' /* Unload The Form */
unload XFrm
next XFrm
' /* Code should never reach here, but just in case */
end
The "end" keyword will never be reached, but it's a catch in case something doesn't unload properly... however, unloading all the forms in the project (instead of using the violent and ungraceful "end") is the best way to go.
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
*Nods and mumbles something about 10 character minimum post*
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
Try posting just a wink ;)
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
because there is a space between: dbl and Number1.... you can't do that. Someone screwed up, because a variable can NOT have spaces in it.... I bet they meant:
Dim dblNumber1 As Double
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215