I am looking to make a .exe file which opens in a GUI. But I don't know how to do it. I want it to have functions e.g. type a number in a box. Thanks :)
Printable View
I am looking to make a .exe file which opens in a GUI. But I don't know how to do it. I want it to have functions e.g. type a number in a box. Thanks :)
There are many different programming languages that can create a executable file. There are probably too many for me to list but I'll list the ones that I know of off the top of my head:
C
C++
Delphi
Visual Basic
C#
To get started with GUI's, the easiest would be Visual Basic by Microsoft.
http://www.microsoft.com/visualstudi...-basic-express
Are you sure you mean an exe? Don't you mean a form in Simba? That's alot simpler doing than making a program itself.
Sorry, I should have put that, I've heard visual basic is easy for a beginner? I've got Windows OS.
Yes its very easy for beginners and its built for the Windows OS. Just download Visual Basic Express and watch this 6 minute video on how to create a simple calculator.
http://www.youtube.com/watch?v=K2vqJxvg6JM
I can understand why people think that since its a very high level language and you don't have to deal pointers, memory management, etc but its not always true. I started out in Visual Basic around 2004 and I'm pretty good in C++, no where near an expert, but not bad for being self-taught. However I do agree that its not a language you should stick to for long, but it is a good language to get your feet wet into the programming world.
Not at all.Quote:
I have Windows XP 2003, is that a problem?
I'm on it now, and I've made a simple calculator using this tutorial http://www.youtube.com/watch?v=K2vqJxvg6JM, yet it doesn't work. This next bit may be confusing but here goes. If I type say 5 in text box 1, click the + button, type 6 in text box 2, the answer says 5 not 11. Why is it doing that?
I can't help you without seeing your code. Use the CODE brackets and post your code.
Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Label2.Text = "-"
Label1.Text = Val(TextBox1.Text) - Val(TextBox2.Text)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label2.Text = "+"
Label1.Text = Val(TextBox1.Text) + Val(TextBox2.Text)
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Label2.Text = "x"
Label1.Text = Val(TextBox1.Text) * Val(TextBox2.Text)
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Label2.Text = "/"
Label1.Text = Val(TextBox1.Text) / Val(TextBox2.Text)
That's my code, I have to press 5+6+ to make it work
Are you putting in 5 and 6 before you press the + button? That looks like the only way you can do it with the way its coded.
Yes the way its coded thats the only way to do it.. however you can code it a different way once you get better. (You can look for more tutorials on youtube or Google for creating a better calculator).
Edit: Here, this is a little more complex than the last tutorial but it'll give you some good knowledge.
http://www.youtube.com/watch?v=J-e7aqDktRQ