Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Command1_Click()
If MyMens(1).Enabled = False Then
MyMens(1).Caption = Text1.Text
MyMens(1).Enabled = True
Else
Load MyMens(MyMens.Count + 1)
MyMens(MyMens.Count).Caption = Text1.Text
End If
End Sub
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
PopupMenu MyMen
End Sub
Option Explicit
Const MENU_LOAD_OPTION_A = 1
Const MENU_LOAD_OPTION_B = 2
Const MENU_LOAD_OPTION_C = 3
Const MENU_LOAD_OPTION_D = 4
Private Sub Command1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbKeyRButton Then
On Error Resume Next
Unload idMnu(MENU_LOAD_OPTION_B)
Unload idMnu(MENU_LOAD_OPTION_C)
Load idMnu(MENU_LOAD_OPTION_A)
Load idMnu(MENU_LOAD_OPTION_D)
idMnu(MENU_LOAD_OPTION_A).Caption = "Option A"
idMnu(MENU_LOAD_OPTION_D).Caption = "Option D"
idMnu(MENU_LOAD_OPTION_A).Enabled = True
idMnu(MENU_LOAD_OPTION_D).Enabled = True
idMnu(0).Enabled = False
PopupMenu idMain
End If
End Sub
Private Sub Command2_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbKeyRButton Then
On Error Resume Next
Unload idMnu(MENU_LOAD_OPTION_A)
Unload idMnu(MENU_LOAD_OPTION_D)
Load idMnu(MENU_LOAD_OPTION_B)
Load idMnu(MENU_LOAD_OPTION_C)
idMnu(MENU_LOAD_OPTION_B).Caption = "Option B"
idMnu(MENU_LOAD_OPTION_C).Caption = "Option C"
idMnu(MENU_LOAD_OPTION_B).Enabled = True
idMnu(MENU_LOAD_OPTION_C).Enabled = True
idMnu(0).Enabled = True
PopupMenu idMain
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set Form1 = Nothing
End Sub