ifilikeituwill
Technical User
Hello Programmmers! I have the following Visual Basic 5 program half working and would like help finishing! I don't know some basic's needed to complete the VScroll1 function in this program.
To start with, this program is in Visual Basic 5. A Standard.EXE form was used in this project!
The following was put on the form1.
(1) Text1.Textbox, Text2.Textbox, and Text3.textbox.
(2) Command0.CommandButton, Command1.CommandButton, Command2.CommandButton, Command3.CommandButton, and Command4.CommandButton. Exit.CommandButton.
(3)VScroll1.VScrollBar.
The CommandButtons take care of updateing the (3) Textboxes in the program!
(4) What is left is to figure out is the VScroll1.ScrollBar Code to inVoke the (5) CommandButtons from the VScroll1.Value (Each Scroll value invokes a commandbutton).
(5) Change each CommandButton Property (Command0.Visible=True) in the property window to false and see if VScroll1.ScrollBar still works!
(6) Is their a way to add Delay to VScroll when holding the up/down scroll button down to scroll?
Thanks for Helping and reading this project! Source Code Follows! ifilikeituwill
VScroll1.Value = (0)
Text3.Text = "Scroll 0"
End Sub
Private Sub Command1_Click()
Text1.Text = "Cmd 1 Clicked"
Text2.Text = "-1"
VScroll1.Value = (1)
Text3.Text = "Scroll 1"
End Sub
Private Sub Command2_Click()
Text1.Text = "Cmd 2 Clicked"
Text2.Text = " 0"
VScroll1.Value = (2)
Text3.Text = "Scroll 2"
End Sub
Private Sub Command3_Click()
Text1.Text = "Cmd 3 Clicked"
Text2.Text = "+1"
VScroll1.Value = (3)
Text3.Text = "Scroll 3"
End Sub
Private Sub Command4_Click()
Text1.Text = "Cmd 4 Clicked"
Text2.Text = "+2"
VScroll1.Value = (4)
Text3.Text = "Scroll 4"
End Sub
Private Sub Exit_Click()
End
End Sub
Private Sub VScroll1_Change()
End Sub
To start with, this program is in Visual Basic 5. A Standard.EXE form was used in this project!
The following was put on the form1.
(1) Text1.Textbox, Text2.Textbox, and Text3.textbox.
(2) Command0.CommandButton, Command1.CommandButton, Command2.CommandButton, Command3.CommandButton, and Command4.CommandButton. Exit.CommandButton.
(3)VScroll1.VScrollBar.
The CommandButtons take care of updateing the (3) Textboxes in the program!
(4) What is left is to figure out is the VScroll1.ScrollBar Code to inVoke the (5) CommandButtons from the VScroll1.Value (Each Scroll value invokes a commandbutton).
(5) Change each CommandButton Property (Command0.Visible=True) in the property window to false and see if VScroll1.ScrollBar still works!
(6) Is their a way to add Delay to VScroll when holding the up/down scroll button down to scroll?
Thanks for Helping and reading this project! Source Code Follows! ifilikeituwill
VScroll1.Value = (0)
Text3.Text = "Scroll 0"
End Sub
Private Sub Command1_Click()
Text1.Text = "Cmd 1 Clicked"
Text2.Text = "-1"
VScroll1.Value = (1)
Text3.Text = "Scroll 1"
End Sub
Private Sub Command2_Click()
Text1.Text = "Cmd 2 Clicked"
Text2.Text = " 0"
VScroll1.Value = (2)
Text3.Text = "Scroll 2"
End Sub
Private Sub Command3_Click()
Text1.Text = "Cmd 3 Clicked"
Text2.Text = "+1"
VScroll1.Value = (3)
Text3.Text = "Scroll 3"
End Sub
Private Sub Command4_Click()
Text1.Text = "Cmd 4 Clicked"
Text2.Text = "+2"
VScroll1.Value = (4)
Text3.Text = "Scroll 4"
End Sub
Private Sub Exit_Click()
End
End Sub
Private Sub VScroll1_Change()
End Sub