Help with Custom Form Design

I'm referenced my 2 books and they just dont go into detail at all on Building a Custom Form Sytle until i can buy either Pro .NET 2.0 Windows Forms and Custom Controls in C#2005 or Pro .NET 2.0 Graphics Programming...

Which i do plan on buying both of them sooner or later...lol

I'v been trying to get a Flat Appearance with a Round edges..I tried using the Code in several spots with no Prevail...So please bare with me as i'm still fairly new to C# and .NET...

using System;

using System.Windows.Forms.VisualStyles;

namespace Test

{

public partial class Form1 : Form

{

public Form1()

{

InitializeComponent();

}

#region

  class bStyle : Form1

{

public BorderStyle bStyle = new bStyle(BorderStyle.FixedSingle);

public BorderType bStyle = new bStyle(BorderType.RoundedRectangle);

// In here is where i'm Stuck or i'm just going about this the Wrong way all together

I want too build my own Form Sytle Class that i can apply to all my Projects

}

}

}

Can someone please help me threw this process as i'm still learning..I appreciate the help tramendously

I want a Flat Style with a Rounded Rectangle so theirs no Square Edges on my Form



Answer this question

Help with Custom Form Design

  • Ed Averett MSFT

    Check the NicePanel from http://www.purecomponents.com. This component its totally free. Why re-invent something that exists already .

     


  • VaniK

    Hi,

    I guess that all question to this product must be placed at the product provider web page. I only give a suggestion.

    You can detect if the right click was clicked using the MouseDown event.

    private void npLogin_MouseDown(object sender, MouseEventArgs e)
    {
    if (e.Button == MouseButtons.Right)
    //do anything....
    MessageBox.Show("The right button has been clicked!");
    }

    Regards


  • John Clary

    lol have to know it exists first...

     

    NicePanel Right Click option isnt showing up...I Registed it,Added the Licence File,Referenced the dll for the NicePanel...

    But the Right Click for the NicePanel itself dosnt even show up...When i opened the Examples VS 2005 upgraded their projects from 7.1 too 8.0...In thier the Right Click shows up


  • Help with Custom Form Design