Creating Wizards for Windows Forms in C#

后端 未结 3 1099
野性不改
野性不改 2020-11-22 08:49

I am new in Creating Wizards for Windows Forms Application in C# .Net. So i don\'t have any idea in wizard creation. Please give me some ideas about creating Multiple wizard

3条回答
  •  梦谈多话
    2020-11-22 09:18

    class WizardPages : TabControl
    {
        protected override void WndProc(ref Message m)
        {
            // Hide tabs by trapping the TCM_ADJUSTRECT message
            if (m.Msg == 0x1328 && !DesignMode) m.Result = (IntPtr)1;
            else base.WndProc(ref m);
        }        
    
        protected override void OnKeyDown(KeyEventArgs ke)
        {
            // Block Ctrl+Tab and Ctrl+Shift+Tab hotkeys
            if (ke.Control && ke.KeyCode == Keys.Tab) 
                return;
            base.OnKeyDown(ke);
        }
    }
    

提交回复
热议问题