Billyy
Guru of Ganja

- Joined
- Nov 3, 2007
- Sythe Gold
- 0
- Messages
- 2,842
Alright so Nullware helped me to create my first ever VB program. It is a very simple program, as it was my first.
Scenario:
You get a slayer task, you need to kill 37 hill giants. Pull out this program, and after each hill giant you kill you hit the plus sign. This will show you quickly your progress on your task. And once you hit 37, you know you've completed your task and you can return to your Slayer Master.
This also has the function of clicking the 'RuneScape' button, and it pulls up an Internet browser, and loads RuneScape's homepage.
There is also a 'Clear' button to clear your current number, and a '-' button, in case you need to subtract one.
Screenshot:
And here's the code:
Thanks again Nullware, you really helped me. Hopefully I'll get better at VB and learn to make all different kinds of programs.
Oh, and if you want the download, tell me, I'll upload it and post the link.
Scenario:
You get a slayer task, you need to kill 37 hill giants. Pull out this program, and after each hill giant you kill you hit the plus sign. This will show you quickly your progress on your task. And once you hit 37, you know you've completed your task and you can return to your Slayer Master.
This also has the function of clicking the 'RuneScape' button, and it pulls up an Internet browser, and loads RuneScape's homepage.
There is also a 'Clear' button to clear your current number, and a '-' button, in case you need to subtract one.
Screenshot:
And here's the code:
Code:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _
ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Const SW_SHOWNORMAL = 1
Private Sub ClearButton_Click()
TextNumber.Text = 0
End Sub
Private Sub MinusBox_Click()
If TextNumber.Text > 0 Then
TextNumber.Text = TextNumber.Text - 1
End If
End Sub
Private Sub PlusBox_Click()
TextNumber.Text = TextNumber.Text + 1
End Sub
Private Sub RuneScapeButton_Click()
Dim iret As Long
iret = ShellExecute(Me.hwnd, _
vbNullString, _
"http://www.runescape.com", _
vbNullString, _
"c:\", _
SW_SHOWNORMAL)
End Sub
Thanks again Nullware, you really helped me. Hopefully I'll get better at VB and learn to make all different kinds of programs.
Oh, and if you want the download, tell me, I'll upload it and post the link.

