all groups > dotnet windows forms designtime > april 2005 >
You're in the

dotnet windows forms designtime

group:

How do I paint the design surface of a custom control


How do I paint the design surface of a custom control Robin Sanner
4/9/2005 10:25:06 AM
dotnet windows forms designtime:
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

Re: How do I paint the design surface of a custom control Mujdat Dinc
4/22/2005 2:46:34 PM
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


[quoted text, click to view]

AddThis Social Bookmark Button