which control is transparent control?

  • Thread starter Thread starter Frank Lee
  • Start date Start date
F

Frank Lee

I need a transparent control, how to get it?

As I know, system.windows.forms.control is not transparent, which one is?

Thanks

---Frank
 
CT said:
Frank,

What do you need the control for? The Windows Form itself can be
transparent

No, that's not what I want.

I need a control to inherited from. In fact, I am designing a UML
notation-like shape which is a shape with 8 spots around it, you know. The
shape is not always rectangle, sometimes is ellipse, sometimes is others.
If the control to inherited from is not transparent, then the shape will
cover others with a rectangle no matter what shape it is. Even if the shape
is a circle, it's rectangle shape will cover others. You can see the
example at here: http://www.liwasoft.com/test.htm

So you know what I want? I want a transparent control which will paint
NOTHING only if I ask it to paint.

If you do know how to get that, please help me, thanks.

---Frank
 
It is best not to use controls for these types of applications. Instead,
create objects that know how to draw themselves and hit test. Put them all
in one control. Multiple controls will cause you grief.

Regards,
Frank Hileman

check out VG.net: http://www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor
 
Frank Hileman said:
It is best not to use controls for these types of applications. Instead,
create objects that know how to draw themselves and hit test.

Use the object that know how to draw themselves is a good point. That's
what I think now. I think I chose wrong parent to inherited from before,
since I cannot find any transparent control in .Net Framework. (However, I
could in Delphi VCL framework. :( )

Thanks.

---Frank
 
Back
Top