| Welcome | ||
|---|---|---|
| Welcome to dinksoftware You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today! |
||
I never said it was simple...did i? I said it's 'over populated', seems to common...Dink wrote:This site: http://www.freevbcode.com/ has heaps of VB code examples/programs with source code which looks cool (including calculators). I wouldn't exactly say it is simple.
Public Class WebBrowser
Private Sub PictureBox3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GoButton.Click
DisplayScreen.Navigate(URL.Text)
End Sub
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BackButton.Click
DisplayScreen.GoBack()
End Sub
Private Sub PictureBox2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
DisplayScreen.GoForward()
End Sub
End Class
Unknown98 wrote:You do a lot of it visually, which is easy, which is why Holiverh is now going to say it doesn't count as a "real" programming language, but, you obvisouly need to code the back-end parts such as where a button goes when it's clicked, etc. Here's the code for my back, forward, and go buttons on the browser:
- Code: Select all
Public Class WebBrowser
Private Sub PictureBox3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GoButton.Click
DisplayScreen.Navigate(URL.Text)
End Sub
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BackButton.Click
DisplayScreen.GoBack()
End Sub
Private Sub PictureBox2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
DisplayScreen.GoForward()
End Sub
End Class
But it did most of that for me. I don't know how to change the PictureBox2, PictureBox 1 etc, I'll have to find that out later.
Button(frame,text="VB for babies! XD",background="light blue",justify=CENTER,padx=5,pady=5,command=self.doSomething()).grid(row=0,column=0)Return to Offline application programming
Users browsing this forum: No registered users and 0 guests