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!

OMG Visual Basic

Offline application programming with languages such as C, C++, Java, MatLab, Fortran etc...

OMG Visual Basic

Postby Unknown98 » Sat Aug 22, 2009 2:15 pm

I love VB lol. Trying to make a calculator program now, and research varibles etc. so I can work my way up to a web browser :p.
http://www.salesmangame.com
We have an IRC channel! #Salesman on coldfront
User avatar
Unknown98
 
Posts: 97
Joined: Sun Jul 12, 2009 11:30 am
Location: Houston

 

Re: OMFG Visual Basic

Postby Dink » Sat Aug 22, 2009 3:06 pm

How 'hard' is it though? Can you spot some code examples? :ugeek:
User avatar
Dink
 
Posts: 531
Joined: Sat Jul 11, 2009 9:59 am
Location: Australia

Re: OMFG Visual Basic

Postby Holiverh » Sat Aug 22, 2009 4:58 pm

Personally i look down on people that claim to be able to write a computer program in VB. I don't really know why, i've never seen VB but so many people seem to have a knowledge of it, kinda stops being a skill. I wish you luck with VB anyway! If you could show us some example code i'd very much appreciate it! I'd love to see it's syntax, i presume it's origins are in BASIC but probaly smothered in tons of Microsoft goo and then .NET slamed on to of it! :lol:

Edit: Don't stick to just VB, you may have seamless intergration with .NET but you'll probaly want to have a diverse range of languages, try Ruby( with rails). :)
User avatar
Holiverh
 
Posts: 243
Joined: Sun Jul 12, 2009 10:37 am
Location: East Anglia, UK

Re: OMFG Visual Basic

Postby Dink » Sat Aug 22, 2009 5:03 pm

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. :ugeek:
User avatar
Dink
 
Posts: 531
Joined: Sat Jul 11, 2009 9:59 am
Location: Australia

Re: OMFG Visual Basic

Postby Holiverh » Sat Aug 22, 2009 5:13 pm

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. :ugeek:
I never said it was simple...did i? I said it's 'over populated', seems to common... :lol:
User avatar
Holiverh
 
Posts: 243
Joined: Sun Jul 12, 2009 10:37 am
Location: East Anglia, UK

Re: OMFG Visual Basic

Postby Unknown98 » Sun Aug 23, 2009 1:23 am

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 :lol:, 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.
http://www.salesmangame.com
We have an IRC channel! #Salesman on coldfront
User avatar
Unknown98
 
Posts: 97
Joined: Sun Jul 12, 2009 11:30 am
Location: Houston

Re: OMFG Visual Basic

Postby Holiverh » Sun Aug 23, 2009 5:17 am

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 :lol:, 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.

Code: Select all
Button(frame,text="VB for babies! XD",background="light blue",justify=CENTER,padx=5,pady=5,command=self.doSomething()).grid(row=0,column=0)

Is that really so hard you need a program to do it for you? :P Python(Tk) btw, wouldn't want any confusion. :lol:

"PictureBoxX_click" seems like the name of the widget, and i think you change that in the 'properties' panel.
User avatar
Holiverh
 
Posts: 243
Joined: Sun Jul 12, 2009 10:37 am
Location: East Anglia, UK

Re: OMFG Visual Basic

Postby Unknown98 » Sun Aug 23, 2009 11:56 am

No, but it saves time and allows software to be deveoloped faster. :roll: Doh

I'll look into that later. :p.
http://www.salesmangame.com
We have an IRC channel! #Salesman on coldfront
User avatar
Unknown98
 
Posts: 97
Joined: Sun Jul 12, 2009 11:30 am
Location: Houston

Re: OMFG Visual Basic

Postby Unknown98 » Thu Aug 27, 2009 8:16 am

Calculator coming along unexpectadly well lol. Especially with me only dedicating 1 hr a day to it. Only one bug found so far (Decimals not working unless they are less than 1).
http://www.salesmangame.com
We have an IRC channel! #Salesman on coldfront
User avatar
Unknown98
 
Posts: 97
Joined: Sun Jul 12, 2009 11:30 am
Location: Houston

Re: OMG Visual Basic

Postby Carried » Mon Aug 16, 2010 3:15 pm

haha, i love Vb
Carried
Newbie
 
Posts: 3
Joined: Mon Aug 16, 2010 11:44 am

Next

Return to Offline application programming

Who is online

Users browsing this forum: No registered users and 0 guests

cron
suspicion-preferred