Jblake00 Posted September 27, 2003 Posted September 27, 2003 I have succefully made my first Hello World Program, with one exception. I have an Exit buttom created. I made it by changeing the text to E&xit. The puts the underscore under the x in the form designer, however when I run the debuger the underscore goes away. Can anybody tell me what to do? Is there some code I need to add besides the End. please be specific as I am just a beginer. Ohh yea I suppose it would be helpfull if I told you I am working with VB.NET! Thanks. Btw I have already found this form to be the most usefull place for finding out about the things I need help with. Quote Looking to expand my VB.Net knowledge. Jblake00
*Experts* Nerseus Posted September 27, 2003 *Experts* Posted September 27, 2003 If you press alt-x does it fire the click event? In some newer versions of windows, you won't see the underscore until you press Alt. If you go to Display Properties (where you go to change resolution) and select the Appearance tab then press the Effects button there should be an option. At least that's where it's at in WinXP and Win2003. I can't remember where it's at in Win2000 if it even exists. -ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Jblake00 Posted September 27, 2003 Author Posted September 27, 2003 Yes the alt x function closes the program. Quote Looking to expand my VB.Net knowledge. Jblake00
Jblake00 Posted September 27, 2003 Author Posted September 27, 2003 Also in the executable file the underscore under the x in Exit is gone. Quote Looking to expand my VB.Net knowledge. Jblake00
*Gurus* Derek Stone Posted September 27, 2003 *Gurus* Posted September 27, 2003 As Nerseus has said, this has nothing to do with .NET and everything to do with your Windows settings. Quote Posting Guidelines
Jblake00 Posted September 28, 2003 Author Posted September 28, 2003 Thanks you was absolutely right Nerseus. When I first read your reply it didn't quite soak into my thick head. After Derek replied I checked the properties setting and found the radio button that said do not show shortcuts untill alt key is pushed. I unchecked that and walla. I went back to the debuger and sure enough my underscore was the under the x. Thanks million guys. Only one thing the program that my instucter wrote as a model for us to use had the underscore there before I changed that setting. But he wrote it with VB 4 or 5 and before XP was released. Do you think that is why it displayed the underscore by default? Thanks again I think the problem is solved unless someone knows how to make the underscore displayed by default. Quote Looking to expand my VB.Net knowledge. Jblake00
*Experts* Nerseus Posted September 28, 2003 *Experts* Posted September 28, 2003 You're exactly right - for some reason, VB5 and VB6 (haven't checked other version) always show the underscores regardless of the OS setting. -Ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Jblake00 Posted September 28, 2003 Author Posted September 28, 2003 Thanks I sure I will need that info for my instructor. I don't know why I am always getting stuck with under qualified teachers. He is a great person. But that not doing with work a hoot. I need a great teacher. Software gets updated but no one updates the teachers. lol........ He may of been great with Vb 3, 4 or 5 what ever he learned on. But that was probably 20 years ago or more. He is learning how to use Vb.net along with the class. Here is what he does. Instructor "Class he is a label.exe program that I wrote 20 years ago" "Your assignment is to figure out how to do that" Class ask "How about a few instructions" Instrutor comments " Ahh heck I can remember how I done it. Yall will figure it out." The first part of the course was on WinXP. The instructer knew nothing about it. He had to learn it with us to. They give us an assignment to set up a simple network in class and do some simple file shareing. Well the main guru behind controling how the pcs work and what we can do and can't do forgets to allow the class file sharing permissions!!! I suppose that is what I get for taking classes at night. Quote Looking to expand my VB.Net knowledge. Jblake00
aewarnick Posted September 28, 2003 Posted September 28, 2003 Good luck! You're probably better off learning on your own by reading up-to-date books. Quote C#
Leaders John Posted September 28, 2003 Leaders Posted September 28, 2003 (edited) ...Is there some code I need to add besides the End. please be specific as I am just a beginer. ... You shouldn't ever use End to terminate a program. It doesn't release all of your resources created while the program was running. Instead you should use the .Close method of each form in the program, which in your case is probably just the one form and you can use Me.Close Edited September 28, 2003 by John Quote "These Patriot playoff wins are like Ray Charles songs, Nantucket sunsets, and hot fudge sundaes. Each one is better than the last." - Dan Shaughnessy
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.