Click here to Skip to main content
15,912,932 members
Home / Discussions / C#
   

C#

 
Generalresizable panel Pin
cmarmr30-Mar-04 5:43
cmarmr30-Mar-04 5:43 
GeneralRe: resizable panel Pin
Peter Nirschl30-Mar-04 6:07
Peter Nirschl30-Mar-04 6:07 
GeneralRe: resizable panel Pin
cmarmr30-Mar-04 6:23
cmarmr30-Mar-04 6:23 
GeneralRe: resizable panel Pin
Heath Stewart30-Mar-04 6:25
protectorHeath Stewart30-Mar-04 6:25 
GeneralRe: resizable panel Pin
cmarmr30-Mar-04 7:02
cmarmr30-Mar-04 7:02 
GeneralRe: resizable panel Pin
Heath Stewart30-Mar-04 8:33
protectorHeath Stewart30-Mar-04 8:33 
GeneralPicture Flickering(Lagg) Pin
Anonymous30-Mar-04 3:56
Anonymous30-Mar-04 3:56 
GeneralRe: Picture Flickering(Lagg) Pin
Heath Stewart30-Mar-04 4:33
protectorHeath Stewart30-Mar-04 4:33 
You could enable double-buffering and paint it yourself in the OnPaint handler:
public class MyForm : Form
{
  public MyForm()
  {
    SetStyle(ControlStyles.AllPaintingInWmPaint |
      ControlStyles.DoubleBuffer | ControlStyles.UserPaint, true);
    // Continue with initialization...
  }
  protected override void OnPaint(PaintEventArgs e)
  {
    if (BackgroundImage != null)
      e.Graphics.DrawImage(BackgroundImage, new Point(0, 0));
    base.OnPaint(e);
  }
}
Something like that should do the trick.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Picture Flickering(Lagg) Pin
Snowjim30-Mar-04 5:59
Snowjim30-Mar-04 5:59 
GeneralRe: Picture Flickering(Lagg) Pin
Stefan Troschuetz30-Mar-04 4:39
Stefan Troschuetz30-Mar-04 4:39 
GeneralRe: Picture Flickering(Lagg) Pin
Snowjim30-Mar-04 6:02
Snowjim30-Mar-04 6:02 
GeneralXml attributes in a combobox Pin
bertcox30-Mar-04 2:52
bertcox30-Mar-04 2:52 
GeneralRe: Xml attributes in a combobox Pin
Heath Stewart30-Mar-04 4:49
protectorHeath Stewart30-Mar-04 4:49 
GeneralRandom in C# Pin
bouli30-Mar-04 2:43
bouli30-Mar-04 2:43 
GeneralRe: Random in C# Pin
John Fisher30-Mar-04 4:07
John Fisher30-Mar-04 4:07 
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 4:10
protectorHeath Stewart30-Mar-04 4:10 
GeneralRe: Random in C# Pin
bouli30-Mar-04 4:21
bouli30-Mar-04 4:21 
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 4:26
protectorHeath Stewart30-Mar-04 4:26 
GeneralRe: Random in C# Pin
bouli30-Mar-04 4:32
bouli30-Mar-04 4:32 
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 4:41
protectorHeath Stewart30-Mar-04 4:41 
GeneralRe: Random in C# Pin
Anonymous30-Mar-04 5:54
Anonymous30-Mar-04 5:54 
GeneralRe: Random in C# Pin
bouli30-Mar-04 5:58
bouli30-Mar-04 5:58 
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 6:20
protectorHeath Stewart30-Mar-04 6:20 
GeneralRe: Random in C# Pin
bouli30-Mar-04 6:27
bouli30-Mar-04 6:27 
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 8:30
protectorHeath Stewart30-Mar-04 8:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.