| | |
vb newbie are dialogue boxes /buttons etc part of vb6 or are they drawn from windows
![]() |
•
•
Join Date: Jul 2005
Posts: 19
Reputation:
Solved Threads: 0
vb newbie are dialogue boxes /buttons etc part of vb6 or are they drawn from windows
0
#1 Jul 3rd, 2005
hi all computer programming is one of those areas that i know absolutly zero about, how dialogue boxes/buttons and toolbars are created.
so went to local library and got claton walnums vb6 for dummies, this comes with a learning edition of vb6.
installed vb6 in vb6 there are toolbars/blank buttons /text boxes etc.
what i am not to sure of are all these dialogue boxes part of visual basic or any other programming language. or does vb6 take a "blank dialogue box or toolbar from say windows 98se in the same way as opening wordpad enables you to write a letter,
is it possible to create a dialogue box/toolbar with just windows on its own,even if you could not (programe that box)
thank you
so went to local library and got claton walnums vb6 for dummies, this comes with a learning edition of vb6.
installed vb6 in vb6 there are toolbars/blank buttons /text boxes etc.
what i am not to sure of are all these dialogue boxes part of visual basic or any other programming language. or does vb6 take a "blank dialogue box or toolbar from say windows 98se in the same way as opening wordpad enables you to write a letter,
is it possible to create a dialogue box/toolbar with just windows on its own,even if you could not (programe that box)
thank you
Re: vb newbie are dialogue boxes /buttons etc part of vb6 or are they drawn from wind
0
#2 Jul 4th, 2005
I guess you can "create" a message box just in windows, without any control over it. Just open the "Run" prompt, and there's your first window. You did not program it, but did call it. Secondly, type any letter and press enter. Windows will pop up an error dialog box. there's your second box. So technically, you cannot create message boxes in windows. Although the dialog boxes you create in VB6 inherit the GUI from windows, you need some sort of developing language to create customized dialog boxes. What's more, you can create dialog boxes in windows using a web browser, by typing the following address:
javascript:alert("My Message");
But then again, you're using another language. Namely, javascript.
javascript:alert("My Message");
But then again, you're using another language. Namely, javascript.
•
•
Join Date: Jul 2005
Posts: 19
Reputation:
Solved Threads: 0
Re: vb newbie are dialogue boxes /buttons etc part of vb6 or are they drawn from windows
0
#3 Jul 4th, 2005
Re: vb newbie are dialogue boxes /buttons etc part of vb6 or are they drawn from windows
0
#4 Jul 7th, 2005
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.
Re: vb newbie are dialogue boxes /buttons etc part of vb6 or are they drawn from windows
0
#5 Jul 7th, 2005
While Comotose is absolutely correct, there is also vbscript for those without VB.
Put this code into a text file and rename to message.vbs.
make sure it is all on one line. double click it. You should get a message box.
Put this code into a text file and rename to message.vbs.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
msgbox "Your mouse has moved. Please restart your computer for the changes to take effect.",vbExclamation,"Micro$oft Window$ "
.: We may acquire liberty, but it is never recovered if it is lost :.
irc://irc.rizon.net/#itf
irc://irc.rizon.net/#itf
•
•
Join Date: Jul 2005
Posts: 19
Reputation:
Solved Threads: 0
Re: vb newbie are dialogue boxes /buttons etc part of vb6 or are they drawn from windows
0
#6 Jul 7th, 2005
Re: vb newbie are dialogue boxes /buttons etc part of vb6 or are they drawn from windows
0
#7 Jul 7th, 2005
vb in 24 hours is a good start.vb database is good.
There are so many that it gets hard to list wich ones are better.
When I am first starting a project / program. The first place I look is www.planet-source-code.com and see if there is framework I can start with or working examples if I need an re-intro to something i may have forgotton long ago.
most of the commands in vb have help with them .
create a new project. drag a button on the form. Double click the button it will create the subroutine for you, you just tell it what to do. Type 'end ' without quotes. run it .
it does abosolutely nothing until the btton is pressed which ends the program. Have fun . Post again if you still need help.
There are so many that it gets hard to list wich ones are better.
When I am first starting a project / program. The first place I look is www.planet-source-code.com and see if there is framework I can start with or working examples if I need an re-intro to something i may have forgotton long ago.
most of the commands in vb have help with them .
create a new project. drag a button on the form. Double click the button it will create the subroutine for you, you just tell it what to do. Type 'end ' without quotes. run it .
it does abosolutely nothing until the btton is pressed which ends the program. Have fun . Post again if you still need help.
.: We may acquire liberty, but it is never recovered if it is lost :.
irc://irc.rizon.net/#itf
irc://irc.rizon.net/#itf
Re: vb newbie are dialogue boxes /buttons etc part of vb6 or are they drawn from windows
0
#8 Jul 7th, 2005
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:
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.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
' /* 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.
Re: vb newbie are dialogue boxes /buttons etc part of vb6 or are they drawn from wind
0
#9 Jul 7th, 2005
Agreed comatose, I use something similar. Just trying to get him started with the IDE.
.: We may acquire liberty, but it is never recovered if it is lost :.
irc://irc.rizon.net/#itf
irc://irc.rizon.net/#itf
Re: vb newbie are dialogue boxes /buttons etc part of vb6 or are they drawn from windows
0
#10 Jul 7th, 2005
![]() |
Similar Threads
- IE6 - dialogue boxes , check boxes and radio buttons work very slowly after hijacking (Viruses, Spyware and other Nasties)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Setting an object defaults.
- Next Thread: Access 2002
Views: 4653 | Replies: 15
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
6 7 2007 access activex add append application array banned basic beep bmp c++ cd click client code coffeehouse college column connectionproblemusingvb6usingoledb convert copy data database date designer dissertations dissertationthesis edit error excel filename form game grid group header image implements inboxinvb installation installer keypress list listbox listview machine macro mail match metadata movingranges nice number open oracle os outlook password pause pdf prime print printer problem program query random range-objects readfile record refresh registration report reports retrieve save search sites sound spectateswamp sql string subroutine table textbox time variable vb vb6 vb6.0 vba vista visual visualbasic web window windows






