PC Review


Reply
Thread Tools Rate Thread

Draw grid on panel?

 
 
JustMe
Guest
Posts: n/a
 
      11th Nov 2003
Hi:

I've figured out how to draw a grid on a panel using the POLYLINE function.
Is there a way to do this so that when the panel is refreshed, scrolled,
etc.. the grid won't disappear?

Thanks,
--Terry


 
Reply With Quote
 
 
 
 
Tim Wilson [MVP]
Guest
Posts: n/a
 
      11th Nov 2003
If you override the Panel and draw the grid in the OnPaint method then it
will paint with the grid whenever the panel is refreshed (invalidated).

--
Tim Wilson
Windows Embedded MVP

"JustMe" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi:
>
> I've figured out how to draw a grid on a panel using the POLYLINE

function.
> Is there a way to do this so that when the panel is refreshed, scrolled,
> etc.. the grid won't disappear?
>
> Thanks,
> --Terry
>
>



 
Reply With Quote
 
JustMe
Guest
Posts: n/a
 
      11th Nov 2003
THanks Tim. That got me on the right track.
--Terry

"Tim Wilson [MVP]" <Tim_Wilson@[DieSpamDie]Rogers.com> wrote in message
news:(E-Mail Removed)...
> If you override the Panel and draw the grid in the OnPaint method then it
> will paint with the grid whenever the panel is refreshed (invalidated).
>
> --
> Tim Wilson
> Windows Embedded MVP
>
> "JustMe" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi:
> >
> > I've figured out how to draw a grid on a panel using the POLYLINE

> function.
> > Is there a way to do this so that when the panel is refreshed, scrolled,
> > etc.. the grid won't disappear?
> >
> > Thanks,
> > --Terry
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Draw a Grid on a UserControl Tom Microsoft VB .NET 1 26th Jul 2007 03:56 PM
document background has many grid lines draw =?Utf-8?B?dGlrY2h5ZV9vbGRMZWFybmVyNTc=?= Microsoft Word Document Management 3 2nd Nov 2006 02:01 PM
OpenOffice Draw - View > Grid seems not to work dananrg@yahoo.com Freeware 3 26th Jun 2006 08:11 PM
Custom draw in Property Grid =?Utf-8?B?R2lubw==?= Microsoft C# .NET 0 11th Jul 2005 05:10 AM
How to use ControlPaint to draw Grab Handles and a Grid Charles Law Microsoft VB .NET 0 16th Feb 2004 11:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:11 PM.