Click here to Skip to main content
15,894,740 members
Home / Discussions / C#
   

C#

 
AnswerRe: DataGridView Pin
PIEBALDconsult11-Nov-09 15:24
mvePIEBALDconsult11-Nov-09 15:24 
GeneralRe: DataGridView Pin
V.11-Nov-09 20:06
professionalV.11-Nov-09 20:06 
GeneralRe: DataGridView Pin
PIEBALDconsult12-Nov-09 4:14
mvePIEBALDconsult12-Nov-09 4:14 
GeneralRe: DataGridView Pin
V.12-Nov-09 4:16
professionalV.12-Nov-09 4:16 
GeneralRe: DataGridView Pin
PIEBALDconsult12-Nov-09 4:20
mvePIEBALDconsult12-Nov-09 4:20 
AnswerRe: DataGridView Pin
Gerry Schmitz11-Nov-09 17:26
mveGerry Schmitz11-Nov-09 17:26 
AnswerRe: DataGridView Pin
V.11-Nov-09 20:04
professionalV.11-Nov-09 20:04 
QuestionDoubleBuffered problem. [modified] Pin
DerDevil11-Nov-09 13:02
DerDevil11-Nov-09 13:02 
I can't understand how I can make double buffering work in my project. I read many of forums, but no one solution make it work.

I draw on child class of pictureBox - DBPictureBox(my class). When mouse moving on that DBPictureBox it was redrawing. That's all.
Below i post to show how it is works:
public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            pixel = true;
            Graphics graph = pictureBox1.CreateGraphics();
            master = new WishMaster();
            Size size = new Size(pictureBox1.Size.Width - 1, pictureBox1.Size.Height - 1);
            plane = new CellPlane(size, graph);
            dots = new Point[0];

            tableLayoutPanel1.BringToFront();

        }

        protected override void OnPaint(PaintEventArgs e)
        {
            plane.drawplane(10);
            if(dots.Length != 0)
                plane.drawline(dots, pixel, 0);
            plane.drawpointer(pointer);
        }

        protected void PlaneMouseMove(object sender, MouseEventArgs e)
        {
            pointer = e.Location;
            toolStripStatusLabel2.Text = pointer.X.ToString();
            toolStripStatusLabel3.Text = pointer.Y.ToString();
            Invalidate();
        }
   }


drawplane - is function of my class that drawing cell table. If it necessary i can post it.
DBPictureBox is:
class DBPictureBox : PictureBox
    {
        public DBPictureBox()
        {
            DoubleBuffered = true;
        }

    }


But DBPictureBox flickering yet.

modified on Wednesday, November 11, 2009 7:37 PM

AnswerRe: DoubleBuffered problem. Pin
Christian Graus11-Nov-09 13:47
protectorChristian Graus11-Nov-09 13:47 
GeneralRe: DoubleBuffered problem. Pin
DerDevil11-Nov-09 22:23
DerDevil11-Nov-09 22:23 
AnswerRe: DoubleBuffered problem. [modified] Pin
Shameel11-Nov-09 22:44
professionalShameel11-Nov-09 22:44 
GeneralRe: DoubleBuffered problem. Pin
DerDevil11-Nov-09 22:57
DerDevil11-Nov-09 22:57 
QuestionMedia Suite project help Pin
MattWeed911-Nov-09 12:58
MattWeed911-Nov-09 12:58 
AnswerRe: Media Suite project help Pin
Christian Graus11-Nov-09 13:48
protectorChristian Graus11-Nov-09 13:48 
AnswerRe: Media Suite project help Pin
Christian Graus11-Nov-09 13:49
protectorChristian Graus11-Nov-09 13:49 
GeneralRe: Media Suite project help Pin
MattWeed911-Nov-09 15:02
MattWeed911-Nov-09 15:02 
GeneralRe: Media Suite project help Pin
Christian Graus11-Nov-09 15:38
protectorChristian Graus11-Nov-09 15:38 
GeneralRe: Media Suite project help Pin
MattWeed913-Nov-09 12:18
MattWeed913-Nov-09 12:18 
QuestionNotifyicon still shows after application is closed Pin
Jacob Dixon11-Nov-09 12:30
Jacob Dixon11-Nov-09 12:30 
AnswerRe: Notifyicon still shows after application is closed Pin
Luc Pattyn11-Nov-09 13:01
sitebuilderLuc Pattyn11-Nov-09 13:01 
GeneralRe: Notifyicon still shows after application is closed Pin
Jacob Dixon11-Nov-09 13:08
Jacob Dixon11-Nov-09 13:08 
GeneralRe: Notifyicon still shows after application is closed Pin
danysrour16-Nov-09 21:13
danysrour16-Nov-09 21:13 
GeneralRe: Notifyicon still shows after application is closed Pin
Luc Pattyn17-Nov-09 1:10
sitebuilderLuc Pattyn17-Nov-09 1:10 
Questioninterface with generic type Pin
md_refay11-Nov-09 11:29
md_refay11-Nov-09 11:29 
AnswerRe: interface with generic type Pin
Christian Graus11-Nov-09 11:36
protectorChristian Graus11-Nov-09 11:36 

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.