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.
'*****
'Module Declarations
Private Const idxGoback = 1
Private Const idxRefresh = 2
Private Const idxEport = 3
Private Const idxLookup = 4
Private Const idxStop = 5
Private Const idxExit = 6
'.............. later
lngLeft = 60 ' Left of first new command
With mform
.Command1(0).Visible = False
' Create 5 New command buttons based on Command1(0)
For I = 1 To 6
Load .Command1(.Command1.Ubound + 1)
With Command1((.Command1.Ubound )
.Left = lngLeft
lngLeft = .Left + .Width + 30
.Visible = True
End With
Next
.Command1(idxGoback).Caption = "Go Back"
.Command1(idxRefresh).Caption = "Refresh"
.Command1(idxEport).Caption = "EPort"
.Command1(idxLookup).Caption = "Lookup"
.Command1(idxStop).Caption = "Stop"
.Command1(idxExit).Caption = "Exit"
End With
'*** Delete Them backwards
For I = Ubound(mform.command1 to 1 Step -1 ' Not 0
On error Resume next ' Index may not Exist
Unload mform.Command1(I)
On Error GOTO 0
Next
Dim ctlTextBox As VB.TextBox
Set ctlTextBox = Form1.Controls.Add("vb.TextBox", "txtSomeTextBox")
With ctlTextBox
.Top = 500
.Left = 500
.Height = 300
.Width = 2000
.Visible = True
End With