PDA

Click to See Complete Forum and Search --> : Two small problems in .NET


USpatriot
Jun 27th, 2002, 09:40 AM
1) When creating a menu, if i place a & before the letter, the underlined letter appears in the development environment but does not appear when I run the program. Is this a bug or some other problem?

2) How do you modify the major and minor version numbers in Environment.version object?

This code is not allowed since the Major and Minor elements are "read-only" according to the compiler

Environment.Version.Major = 0
Environment.Version.Minor = 1

Any help would be appreciated. Thanks.


I'm such a newb at this...

Cander
Jun 27th, 2002, 09:45 AM
2)edit the assemblyinfo.vb file

look for
<Assembly: AssemblyVersion("1.0.*")>

just edit it accordingly. The * means it will auto generate the build and revision.

hellswraith
Jun 27th, 2002, 09:50 AM
To get the underline, just push alt when the program is running.

This is a "feature" of .net....

USpatriot
Jun 27th, 2002, 09:56 AM
That's a FEATURE????

Man, now i know why i've stuck with UNIX programming for so many years...

Tygur
Jun 27th, 2002, 02:23 PM
I don't believe that's a feature of .NET.

It is a feature of Windows 2000 and Windows XP, and it can be disabled.

In WinXP, I disable it by going to the Display Properties window and clicking Appearance. Then I click the Effects button. There should be a checkbox in there for enabling or disabling "Hide underlined letters for keyboard navigation unless...".

I forgot how to disable it in Win2k. Try checking somewhere in either the Folder Options window or the Display Properties window.

hellswraith
Jun 27th, 2002, 03:41 PM
That is cool to know. I never noticed it till I was using .Net, just thought it was something new they threw in there.

Thithimos
Jun 27th, 2002, 05:07 PM
Win2k would be right-clicking desktop, properties, effects, last option on effects tab.