Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Looking to expand my VB.Net knowledge.

 

Jblake00

  • *Experts*
Posted

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

"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
Posted

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.

Looking to expand my VB.Net knowledge.

 

Jblake00

  • *Experts*
Posted

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

"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
Posted

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.

Looking to expand my VB.Net knowledge.

 

Jblake00

  • Leaders
Posted (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 by John
"These Patriot playoff wins are like Ray Charles songs, Nantucket sunsets, and hot fudge sundaes. Each one is better than the last." - Dan Shaughnessy

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...