Region property - applied in user control ?

M

M West

hello,

currently trying to write a custom control that will display an image in
true transparent form, e.g. can actually see the background images placed
behind the control rather than the background graphic held on the form.

Have produced a region which will hold the outline of an image that will be
displayed as transparent, e.g. irregular. So far, this region can only be
applied to forms (will produce Media Player type skins.), is there any other
control apart from form or button which will support the region property and
display the irregular image into the control so that it looks correct when
the control is placed on the form or is there another way i can apply the
region

currently using graphic and have looked on numerous website incl Bob Powells
but it seems regions can only be applied to forms to produce truly
transparent images... can anyone advise or help

thanks Mark
 
H

Herfried K. Wagner [MVP]

* "M West said:
currently trying to write a custom control that will display an image in
true transparent form, e.g. can actually see the background images placed
behind the control rather than the background graphic held on the form.

Have produced a region which will hold the outline of an image that will be
displayed as transparent, e.g. irregular. So far, this region can only be
applied to forms (will produce Media Player type skins.), is there any other
control apart from form or button which will support the region property and
display the irregular image into the control so that it looks correct when
the control is placed on the form or is there another way i can apply the
region

The 'Region' property should be available for the UserControl too, but
it's a hidden property.
 
J

Jay B. Harlow [MVP - Outlook]

Mark,
As Herfried stated, UserControl has Region also. In fact both Form &
UserControl inherit it from Control itself.

However! it is an advanced member, that VB.NET normally hides it in both the
Object Browser & the code editor. Use "Show hidden members" in the object
browser to see it, use "Tools - Options - Text Editor - Basic - General -
Hide advanced members" to see it in the code editor.

I've used it to create with great success to create odd shaped controls.

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top