can I make zooming in the form itself ?
hi,
I have the following problem , I am reading from serial port and draw plots from the serial port in the form and no problem with flicker (I am enable doublebuffersize property) after doing this i does n't have any problem but the problem come when i want to make zooming in the form so I am draw in panel or picturebox but the problem of flicker appear as long as i am extend picturebox as a control and add in the constructor the following method :
Code:
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.DoubleBuffer, true);
so my question can I make zooming in the form itself if i can not what is the solution for flicker ?
Re: can I make zooming in the form itself ?
Am I understanding you correctly...
Are you extending a picture box and then setting the picturebox.Image = to the image that you drew?
If so why would you do that? Inherit from Control, override the Paint method and draw to a bitmap first then draw to the screen. Also override OnEraseBackGround and DO NOT call base.OnEraseBackGround.