|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Lines disappear when minimizing or other windows are placed on top of it.I have used System.Drawing.Graphics and Form.CreateGraphics to draw
line in my form during runtime. Everything is working fine but when the form is minimized or some other windows are temporarily placed on top of the form, the lines disappear. Any help will be very much appreciated. Instead of using CreateGraphics, try handling the Paint event and using the
Graphics member of the PaintEventArgs. Then do your drawing there. That way your lines will be redrawn anytime the Form is repainted. Tony Show quoteHide quote "shrestha.mah***@gmail.com" wrote: > I have used System.Drawing.Graphics and Form.CreateGraphics to draw > line in my form during runtime. Everything is working fine but when > the form is minimized or some other windows are temporarily placed on > top of the form, the lines disappear. > > Any help will be very much appreciated. > > shrestha.mah***@gmail.com wrote:
> I have used System.Drawing.Graphics and Form.CreateGraphics to draw For additional information, please see the following link:> line in my form during runtime. Everything is working fine but when > the form is minimized or some other windows are temporarily placed on > top of the form, the lines disappear. > > Any help will be very much appreciated. http://www.bobpowell.net/faqmain.htm Be sure to check out question #1 Thank a lot for the both responses. Form.Paint event solved the
problem. Chris Dunaway wrote: Show quoteHide quote > shrestha.mah***@gmail.com wrote: > > I have used System.Drawing.Graphics and Form.CreateGraphics to draw > > line in my form during runtime. Everything is working fine but when > > the form is minimized or some other windows are temporarily placed on > > top of the form, the lines disappear. > > > > Any help will be very much appreciated. > > For additional information, please see the following link: > > http://www.bobpowell.net/faqmain.htm > > Be sure to check out question #1
Conversion
DLL created in .NET cannot use? (Inno Setup) Drawing images in different shapes VB.Net Merging Datasets Incorrect behavior of IIf in VB.NET (.NET Framework 1.1 SP1) problem in converting to C# Catch reference error how? Remove x number of charaters from string. Vb.net Getting error LIBCMT.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in atlmincr database connection |
|||||||||||||||||||||||