PaintEventHandler in design mode? - CSharp

This is a discussion on PaintEventHandler in design mode? - CSharp ; I'm looking at a code listing here: http://www.bobpowell.net/picturebox.htm ....in the region entitled: #region Windows Form Designer generated code ....there is this line: this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint); My question is, how do you add a PaintEventHandler to a Panel control with ...

+ Reply to Thread
Results 1 to 2 of 2

PaintEventHandler in design mode?

  1. Default PaintEventHandler in design mode?

    I'm looking at a code listing here:

    http://www.bobpowell.net/picturebox.htm

    ....in the region entitled:
    #region Windows Form Designer generated code

    ....there is this line:

    this.panel1.Paint += new
    System.Windows.Forms.PaintEventHandler(this.panel1_Paint);

    My question is, how do you add a PaintEventHandler to a Panel control with
    the Visual Design IDE?

    Thanks,
    Marty




  2. Default Re: PaintEventHandler in design mode?

    Answer: click the lightning bolt icon.


    "Marty Kilroy" <mkilroy@ameritech.net> wrote in message
    newsyVAe.1480$Ih7.401@newssvr33.news.prodigy.com...
    > I'm looking at a code listing here:
    >
    > http://www.bobpowell.net/picturebox.htm
    >
    > ...in the region entitled:
    > #region Windows Form Designer generated code
    >
    > ...there is this line:
    >
    > this.panel1.Paint += new
    > System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
    >
    > My question is, how do you add a PaintEventHandler to a Panel control with
    > the Visual Design IDE?
    >
    > Thanks,
    > Marty
    >
    >
    >




+ Reply to Thread

Similar Threads

  1. how do you determine if a component is at design mode
    By Application Development in forum DOTNET
    Replies: 2
    Last Post: 12-13-2007, 12:49 PM
  2. Showing different properties in design/run mode - user controls
    By Application Development in forum CSharp
    Replies: 8
    Last Post: 08-30-2007, 05:43 AM
  3. Webparts app running always in design mode: Any performance hit?
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 08-07-2007, 08:02 PM
  4. VS 2003 IDE hangs when viewing APS.net DataGrid in design mode
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 07-27-2007, 12:03 PM
  5. Design mode is slow
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 09-25-2004, 12:52 AM