Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / April 2005

Tip: Looking for answers? Try searching our database.

How do I paint the design surface of a custom control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robin Sanner - 09 Apr 2005 18:25 GMT
I have paint code in the custom control's OnPaint method (which successfully
shows up at runtime) and paint code in the OnPaintAdornments method of the
designer (which successfully shows up on a control that I have dropped onto
a form).  What I haven't figured out yet is how do I get the actual design
surface of the custom control itself (i.e. I double-clicked the custom
control in solution explorer to get it's design surface) painted?

Thank you
Robin Sanner
robin.sanner@verizon.net
Mujdat Dinc - 22 Apr 2005 12:46 GMT
Hi Robin..
Todo this you must make your own internal paint schema.Control,designer and
rootdesigner has separate drawing functions. You must join them in your
control. I mean make internal Drawing function in your control and call them
from designer and rootdesigner.. I think you just made it for designer. Do
it for rootdesigner..

----- Original Message -----
From: "Robin Sanner" <robin.h.sanner@verizon.net>
Newsgroups: microsoft.public.dotnet.framework.windowsforms.designtime
Sent: Saturday, April 09, 2005 8:25 PM
Subject: How do I paint the design surface of a custom control

>I have paint code in the custom control's OnPaint method (which
>successfully shows up at runtime) and paint code in the OnPaintAdornments
[quoted text clipped - 7 lines]
> Robin Sanner
> robin.sanner@verizon.net

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.