vb newbie are dialogue boxes /buttons etc part of vb6 or are they drawn from windows

Reply

Join Date: Jul 2005
Posts: 19
Reputation: mickyboy is an unknown quantity at this point 
Solved Threads: 0
mickyboy mickyboy is offline Offline
Newbie Poster

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
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 18
Reputation: Lalo1985 is an unknown quantity at this point 
Solved Threads: 0
Lalo1985's Avatar
Lalo1985 Lalo1985 is offline Offline
Newbie Poster

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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 19
Reputation: mickyboy is an unknown quantity at this point 
Solved Threads: 0
mickyboy mickyboy is offline Offline
Newbie Poster

Re: vb newbie are dialogue boxes /buttons etc part of vb6 or are they drawn from windows

 
0
  #3
Jul 4th, 2005
thanks lalo thats a bit of the mystery clearedup
thank you
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 212
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 121
Reputation: jwshepherd is an unknown quantity at this point 
Solved Threads: 5
jwshepherd's Avatar
jwshepherd jwshepherd is offline Offline
Junior Poster

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.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. msgbox "Your mouse has moved. Please restart your computer for the changes to take effect.",vbExclamation,"Micro$oft Window$ "
make sure it is all on one line. double click it. You should get a message box.
.: We may acquire liberty, but it is never recovered if it is lost :.
irc://irc.rizon.net/#itf
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 19
Reputation: mickyboy is an unknown quantity at this point 
Solved Threads: 0
mickyboy mickyboy is offline Offline
Newbie Poster

Re: vb newbie are dialogue boxes /buttons etc part of vb6 or are they drawn from windows

 
0
  #6
Jul 7th, 2005
thanks all can someone point me in the direction of a tutoril for novices for download, and ifpossible a referance for the common commands dim etc,

the working vertion i have has no helpfile trying to find info on msdn is a nightmare .

or recommend a good book for novices please

thank you
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 121
Reputation: jwshepherd is an unknown quantity at this point 
Solved Threads: 5
jwshepherd's Avatar
jwshepherd jwshepherd is offline Offline
Junior Poster

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.
.: We may acquire liberty, but it is never recovered if it is lost :.
irc://irc.rizon.net/#itf
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 212
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

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:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. ' /* For all The forms in the project */
  2. for each XFrm in Forms
  3. ' /* Unload The Form */
  4. unload XFrm
  5. next XFrm
  6.  
  7. ' /* Code should never reach here, but just in case */
  8. 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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 121
Reputation: jwshepherd is an unknown quantity at this point 
Solved Threads: 5
jwshepherd's Avatar
jwshepherd jwshepherd is offline Offline
Junior Poster

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
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 212
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: vb newbie are dialogue boxes /buttons etc part of vb6 or are they drawn from windows

 
0
  #10
Jul 7th, 2005
*Nods and mumbles something about 10 character minimum post*
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 4653 | Replies: 15
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC