A simple (I think) program
Travis_in_OK
Mar 14, 2004 11:59 PM |
Hey guys,
I was wondering if you could help me out on the Boy Scout Computer merit badge. I am working on it and one of the things I have to do is program a simple program. What could I do? I think something that would be neat is a program that I could place all my favorite programs in and launch out of the program. Kind of like a desktop. But any program will work. I am a total newbie at programing. I really don't know anything, but would like to learn more. :-D So are there any ideas? Please ask away if there are any questions.
Thanks a lot,
Travis |
M36Teen
Mar 16, 2004 10:01 AM |
Hi Travis,
This sounds cool! What program language are you planning on using? I'm not sure, but that sounds like somewhat of a hard program to do, at least for me. Haha. But then I'm no expert either. How simplistic can it be? I'm assuming more than a "Hello World!" app. and your probably wanting a gui (i.e. graphical user interface), right?
Good luck!
Your friendly fellow Okie native,
Jake |
Travis_in_OK
Mar 23, 2004 2:32 PM |
Jake,
Any program will do, I just need to know how to make one!! LOL. If I mod somthing and make it work differently then that will work. I have a program called Visual Basic 5.0 that I can work with just a little. So if you know of anything I could do with that... So far, I can just make little slider bars with a screen that changes color when you move the bar. LOL
Hope I answered your question,
Travis
P.S. Hey!! Glad to meet another Okie in cyberspace!! Where ya from? I live over Ada way. (South central OK) |
J_Maxwell
Mar 23, 2004 3:47 PM |
Travis,
Great! VB (Visual Basic) is a great language! Out of curiosity, did it come installed with Office? Do you have office on your computer? Or, can you access VB 5 via the Start Menu?
I know a bit of VB, so I might be of some help!
Joseph |
Travis_in_OK
Mar 24, 2004 1:13 PM |
Joseph,
Well, lets see. I have Office 97' and VB 5. I have had Office 97' for a while, and have just recently installed VB 5. I really haven't messed with it much, but have read some of the tutorials. Would you know where I could download some more tutorials? Or do you know of a good program I could do?
Thanks,
Travis
P.S. Looks like I might need to go ahead and upgrade my Office, huh? :-D |
Will_In_Wi
Mar 24, 2004 4:25 PM |
I you are really looking into programming, I would suggest C++. There are a lot of great tools for windows, it is not a microsoft only language, and it is a very well structured language. I started with VB and to this day wish that I had learned on C++. As to the simple program: Create a program that has a label and a command button. When you click the command button, the label displays the current time. |
J_Maxwell
Mar 24, 2004 4:55 PM |
Travis,
I would recommend that you upgrade to VB 2003 (I think about $100, but it could be less, considering that it might be an upgrade). Then, Will's idea would be great. Even better, put a timer on the form, and have the label's text update every second. A count-down timer would be the next step.
Joseph |
Travis_in_OK
Mar 31, 2004 1:33 PM |
All right,
I now have a label and a command button. So how do I make the time appear?
Thanks,
Travis
|
J_Maxwell
Mar 31, 2004 5:30 PM |
Travis,
Just double click the button (in design view), and write code. Search the help for Time, Date, and DateTime (It was so long since I wrote VB, I really can't remember).
Do something like this (change out the text on the right side of the = sign);
label1.text = "hi"
Will_in_WI,
Try C#. It combines C++, and Java into a really nice, and powerful, language using the .NET framework.
Joseph |
M36Teen
Apr 02, 2004 2:58 PM |
Travis,
Did you get it to work?
Jake
P.S. I live over in a sub-city of Tulsa, nice to meet you too! {:D |
Travis_in_OK
Apr 05, 2004 11:25 AM |
Well guys, I am a bit stuck...
The help files seem to be corrupt, I can't get in to them.. Does anyone know the code right off the top of thier head? Or could post that section on here? Or somthing? I looked online and tried to find it, but didn't see anything.
HELP!!!,
Travis
|
Travis_in_OK
Apr 05, 2004 12:29 PM |
OK guys,
I got the code for the label off a website. So now how do I get the command botton to "use" the label?
Travis |
J_Maxwell
Apr 05, 2004 1:53 PM |
Double-click the button to assign an event handler to it (or go to the events section on the properties page), and write the code.
I want to be careful so that you are the one earning your merit badge. Microsoft has a lot of code samples at:
[HYPERLINK@msdn.microsoft.com]
Otherwise, just a search on Google (I use the language name and then the function, like: "vb cstr") will probably lend some good results.
Hope this helps,
Joseph |
Travis_in_OK
Apr 10, 2004 2:14 PM |
Private Sub Command1_Click()
(????????????????????????????) (Code for Command Button)
End Sub
---------------------------------------------------------
Private Sub Label1_Click()
Label1.Caption = Time (Code for label)
End Sub
Ok. Here is my code. What do I put up here?
Travis |
J_Maxwell
Apr 10, 2004 2:47 PM |
Travis,
I really don't get your question.
Joseph |
|
Posting in this forum is limited to members of the group: SITEADMINS, SUBSCRIBERS, MEMBERS.]
|

| If you don't have an account yet, visit the registration page to sign up. If you already have an account, you may login here:
|
|
|
Welcome to the Open Forums!!
|
Welcome to the Open Forums!!
|
|
|