|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
Custom MSGBOX
I need a custom msgbox that displays three specific options. Does anyone know the best way to do this? |
|
#2
|
|||
|
|||
|
Quote:
What options are they? Be more specific.
|
|
#3
|
||||
|
||||
|
You can create your own custom messagebox out of a regular form.
|
|
#4
|
|||
|
|||
|
Well I need to give the user three options. So they would be able to choose Option 1, Option 2, or Option 3... and then the script would do its thing. I could do an input box and have them type in 1, 2, or 3, but thats a last resort. So If anyone knows how I could make three buttons or make tree radio buttons, just to give the user three options when they run the script.
Thanks |
|
#5
|
|||
|
|||
|
Create a form with your options like Memnoch said.
Then access it from you main form as a custom msgbox. |
|
#6
|
|||
|
|||
|
Hi,
First time I try to attach a file, but this zip holds a basic setup to what you want. It shows a custom form with three option buttons. I have not included any error handling, you need to do that yourself. To use it, do the following: Code:
Private Sub cmdGetUserOptions_Click() Dim oForm As frmOptions Dim lReturn As Long Set oForm = New frmOptions Load oForm lReturn = oForm.Execute Select Case lReturn Case vbOK MsgBox "You selected option: " & oForm.UserOption End Select PROC_EXIT: Unload oForm Set oForm = Nothing End Sub Pretty straight forward. Any questions, feel free to ask. Grtz.© M. |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Custom MSGBOX |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|