this isn't working as its supposed to unforunately
can someone please help me
public System.Drawing.Image Back = ProGFXToolsLibrary.Resource1.account;
public MainPanel()
{
}
protected override void OnPaint(PaintEventArgs e)
{
Graphics pGraphics = e.Graphics;
pGraphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
pGraphics.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.Half;
pGraphics.DrawImage(Back,new Rectangle(this.Location, this.Size),0,0, this.Width, this.Height,GraphicsUnit.Pixel);
base.OnPaint(e);
}
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x20;
return cp;
}
}
protected override void OnPaintBackground(PaintEventArgs e)
{
// base.OnPaintBackground(e);
}

New Topic/Question
Reply




MultiQuote


|