Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. ampersand don't underline my first letter in label

ampersand don't underline my first letter in label

Scheduled Pinned Locked Moved C / C++ / MFC
debugging
15 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Lost User

    It's a Windows Form (.NET) thing.

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #6

    Fine ... It still looks like that's what he's trying to do. Ampersand; underline; label; ...

    L 1 Reply Last reply
    0
    • L Lost User

      Fine ... It still looks like that's what he's trying to do. Ampersand; underline; label; ...

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #7

      Label.UseMnemonic Property (System.Windows.Forms)[^].

      L 1 Reply Last reply
      0
      • L Lost User

        Label.UseMnemonic Property (System.Windows.Forms)[^].

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #8

        He also used that reference (?)

        1 Reply Last reply
        0
        • L Lost User

          That has nothing to do with C/C++. Please post in the correct forum and show the code that is not working.

          I Offline
          I Offline
          Isawyouoo
          wrote on last edited by
          #9

          it's in c#, windows form; I followd the steps Label.UseMnemonic Property (System.Windows.Forms)[^] doesn't work

          enhzflepE L 2 Replies Last reply
          0
          • I Isawyouoo

            it's in c#, windows form; I followd the steps Label.UseMnemonic Property (System.Windows.Forms)[^] doesn't work

            enhzflepE Offline
            enhzflepE Offline
            enhzflep
            wrote on last edited by
            #10

            Question is in forum C/C++/MFC Please use: C# Discussion Boards - CodeProject[^]

            1 Reply Last reply
            0
            • I Isawyouoo

              it's in c#, windows form; I followd the steps Label.UseMnemonic Property (System.Windows.Forms)[^] doesn't work

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #11

              Isawyouoo wrote:

              doesn't work

              I just tried it and it works fine.

              I 1 Reply Last reply
              0
              • L Lost User

                Isawyouoo wrote:

                doesn't work

                I just tried it and it works fine.

                I Offline
                I Offline
                Isawyouoo
                wrote on last edited by
                #12

                why me?

                L 1 Reply Last reply
                0
                • I Isawyouoo

                  why me?

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #13

                  I suggest you open a new question in the correct forum[^], and show the code that you have, and explain clearly what is going wrong.

                  1 Reply Last reply
                  0
                  • I Isawyouoo

                    hi! ampersand don't underline my label when i debug, usemenomic is true :(

                    B Offline
                    B Offline
                    Bram van Kampen
                    wrote on last edited by
                    #14

                    Well, I think you are talking about a Resource Script of some type. Dealing with a Button or Menu. I must admit, my knowledge of C# is Zero. However, this happens in MFC if you try to use the same Underscore twice. ( As in &Underline in One Menu, and &Undo in another menu) The Framework does not bother to disambiguate, to make you choose between 'Underline' and 'Undo'. The idea of Shortcut Keys is 'Shortcuts', not a philosophical set of Dialogs about what you Really meant when you typed CTRL + U. If there is ambiguity, the system does unexpected things, such as not underlining YOUR &U if the system has already a Ctrl + U in its Scope. Don't know the rules, but I guess, that is where your problem lays. In effect, there are only 26 Ctrl+... shortcuts available, a bakers dozen of which (such as Ctrl + X for 'Edit.Cut') have been used by Microsoft. I take it you understand the gist of where I'm getting to. Hope this is helpful Regards,:) Bram

                    Bram van Kampen

                    I 1 Reply Last reply
                    0
                    • B Bram van Kampen

                      Well, I think you are talking about a Resource Script of some type. Dealing with a Button or Menu. I must admit, my knowledge of C# is Zero. However, this happens in MFC if you try to use the same Underscore twice. ( As in &Underline in One Menu, and &Undo in another menu) The Framework does not bother to disambiguate, to make you choose between 'Underline' and 'Undo'. The idea of Shortcut Keys is 'Shortcuts', not a philosophical set of Dialogs about what you Really meant when you typed CTRL + U. If there is ambiguity, the system does unexpected things, such as not underlining YOUR &U if the system has already a Ctrl + U in its Scope. Don't know the rules, but I guess, that is where your problem lays. In effect, there are only 26 Ctrl+... shortcuts available, a bakers dozen of which (such as Ctrl + X for 'Edit.Cut') have been used by Microsoft. I take it you understand the gist of where I'm getting to. Hope this is helpful Regards,:) Bram

                      Bram van Kampen

                      I Offline
                      I Offline
                      Isawyouoo
                      wrote on last edited by
                      #15

                      by pressing the alt key, or using a timer with sendkeys.send("%"), or turning on 'the Hide keyboard navigation indicators until I use the Alt key on control panel' fixed this poblem :)

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups