|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (8 bit)
Join Date: Apr 2002
Location: Ipswich, UK
Posts: 197
|
Basic form with VB
Hi there,
I am looking to make a simple program to put on a CD that will act as a form type thing. It will include a logo, title, description, a drop down box so people can choose which programs they would like to install (for example) and a close button. I am using VB6 and have done the basic layout but am having trouble with the close button and the menu. I am working in the form layout. I wondered if you can help make the close button work and suggest a way of placing a menu drop-down list on the form. Hope you can help. Thanks in advance. Michael
|
|
|
|
|
|
#2 |
|
Member (7 bit)
Join Date: Jun 2001
Location: united kingdom
Posts: 87
|
You try addind this to the clivk event o f a command buttun:
Unload Me End |
|
|
|
|
|
#3 |
|
Member (7 bit)
Join Date: Jun 2001
Location: united kingdom
Posts: 87
|
Sorry Im a bit drunk and forgot to do a spell check.
Ok, try adding this to the click event of a command button. for example; Command1 click_event() Ubload Me End End Sub |
|
|
|
|
|
#4 |
|
Member (8 bit)
Join Date: Apr 2002
Location: Ipswich, UK
Posts: 197
|
I did this and get:
Compile error: Invalid outside procedure. Is this the best language to use to make this sort of prog? |
|
|
|
|
|
#5 |
|
Member (7 bit)
Join Date: Jun 2001
Location: united kingdom
Posts: 87
|
Only type the second and third lines:
Unload Me End Do this within the click event of your close button As for vb being the best program to use, Idont know. Check out Planet Source Code its a pretty good site for coding and covers most if not all programming languages. |
|
|
|
|
|
#6 |
|
Member (8 bit)
Join Date: Apr 2002
Location: Ipswich, UK
Posts: 197
|
Thanks will give it a try.
I'm new to this as you can probably tell and have eventually got round to trying it out. |
|
|
|
|
|
#7 |
|
Member (8 bit)
Join Date: Apr 2002
Location: Ipswich, UK
Posts: 197
|
I did this, thanks for your help.
All I have to do now is find out how to sort out the drop-down menu thing (like File, Edit etc). I will then have a list of software each being installed when clicked on. cheers
|
|
|
|
|
|
#8 |
|
Member (7 bit)
Join Date: Jun 2001
Location: united kingdom
Posts: 87
|
To make a menu bar in vb you use the menu editor which only available when the form is the active window
|
|
|
|
|
|
#9 |
|
Member (8 bit)
Join Date: Apr 2002
Location: Ipswich, UK
Posts: 197
|
Thanks for your help.
I've made it now and can move on to better things ![]() I'll be looking to make a program next which contains several windows all linked to each other. Will most likely be back for help sometime ![]() Thanks again. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|