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. Windows Forms
  4. title bar+C#

title bar+C#

Scheduled Pinned Locked Moved Windows Forms
csharpquestion
3 Posts 3 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.
  • A Offline
    A Offline
    algates0027
    wrote on last edited by
    #1

    how can i change the title bar context menu to my own context menu......

    G _ 2 Replies Last reply
    0
    • A algates0027

      how can i change the title bar context menu to my own context menu......

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      These functions might help: Menu Reference[^]

      #region signature my articles #endregion

      1 Reply Last reply
      0
      • A algates0027

        how can i change the title bar context menu to my own context menu......

        _ Offline
        _ Offline
        _Mat_
        wrote on last edited by
        #3

        using WndProc:

        protected override void WndProc(ref Message m)
        {
        const int WM_CONTEXTMENU = 0x007B;

        if (m.Msg == WM\_CONTEXTMENU)
        {
            this.Dlg\_Menu.Show(Cursor.Position.X, Cursor.Position.Y);
            return;
        }
        
        base.WndProc(ref m);
        

        }

        See my stuff on:

        <img src="http://www.gstatic.com/codesite/ph/images/code\_small.png" />

        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