Page 1 of 1

Visual Basic 2005 Help.

Posted: Tue Sep 04, 2007 4:49 pm
by Siberys
Starting a class on Visual Basic right now, and having a bit of trouble.

I'm not at all sure if everything looks right on my visual basic file. I'm supposed to create a single form that has labels of three things I like, and three buttons at the bottom. The buttons are Exit, Exit in 2 seconds, and Exit in 5 seconds.

Now, the problem is, I don't know how to open this application after saving it and closing visual basic so I can test to see if they work right. I don't even need the 2 and 5 second buttons, I just need to know if the exit button works and that's it.

Anybody know how to open an application you created in visual basic or how to test this application? The terms for what they use for items in the program are so foreign I wouldn't know where to search.

Posted: Tue Sep 04, 2007 10:53 pm
by Xandax
When you compiled your application there should be a "bin" folder located within the project folder. Inside that bin there is an exe called the same as your program which starts the form up.

Posted: Tue Sep 04, 2007 11:05 pm
by Siberys
I have the file there, but double clicking does nothing. No program or anything.

Posted: Tue Sep 04, 2007 11:11 pm
by Xandax
Then I do not think your application is working correctly.
What IDE do you use to program in? Do you have access to debugging tools via it?

Posted: Tue Sep 04, 2007 11:15 pm
by Siberys
Not sure what IDE stands for (yeah, I know I'm kind of clueless, but this is my first homework assignment from my first class session of Visual Basic, total newbie anyways), but yes, I do have debugging features.

Posted: Tue Sep 04, 2007 11:26 pm
by Xandax
IDE is the software you use to code in ("Integrated Development Environment.") such as visual studio et al.
If the application does not "start" when you execute it, I would think you've made an error in the coding of it. Try placing a break point in the beginning of your code (if you can) and step through the execution. It might help figure out what is the issue.

Alternative, depending on when you need it done, try PMing the source code to me, and perhaps I can point you in the proper direction - even though my area of expertise is not applications I do make some simple ones from time to time too help myself at work.

Posted: Tue Sep 04, 2007 11:41 pm
by Siberys
HA! Fixed it, finally. Always the simple things that make an error.

When I was putting in the me.close() feature, the one step I forgot was to make it specifically a part of the Exit button feature. So, since it was put with the actual base code itself, naturally double clicking the EXE would instantly load and close the program within the blink of an eye.

Like I said, always the simple mistakes that create the insanely complex problems.

Posted: Tue Sep 04, 2007 11:44 pm
by Xandax
Grats on getting it done, and you are right about simple things making "complex" problems :)
Anyways - my VB expertise is mostly coupled to webapplication, windows services and class libraries as windows application is not a part of my daily work, but I do think I can help somewhat on applications as well in case you need some feedback/advice etc.

Posted: Tue Sep 04, 2007 11:47 pm
by Siberys
coolio, I don't have your instant messenger name but if you're not against it, feel free to IM me and I'll add your name to my friends list.