473,396 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Region property - applied in user control ?

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
Nov 20 '05 #1
2 1511
* "M West" <mw***@ndirect.co.uk> scripsit:
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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
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
"M West" <mw***@ndirect.co.uk> wrote in message
news:c8**********@newsg3.svr.pol.co.uk...
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

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: David Deacon | last post by:
Hi i was given the following advise,below my OriginalQuestion I am a little new to ADOX can you direct me to the following Do i place the code behind a button on a form? Or do i place it in the...
5
by: David N | last post by:
All, I created a control that have the following property defined: private bool autoSearch My control is compiled and created fine. But, after adding the control to my form, I noticed...
4
by: Dino M. Buljubasic | last post by:
I have a form that contains 24 user controls representing hours (something like MS Outlook daily calendar). I would like to be able to mouse-down-drag-mouse-up select a region of the form so that...
5
by: Dino M. Buljubasic | last post by:
I am trying to build a daily calendar similar to Microsoft Outlook where a user can select hours of a day using mouse. I have a form that holds a panel which contains user controls each...
1
by: M West | last post by:
continuation of my previous post, thanks to all those that contributed with answers I am creating a control that will take an image and make parts of it transparent, this is done by creating and...
3
by: Marty McFly | last post by:
Hello, I have a control class that inherits from System.Web.UI.WebControls.Button. When I drag this control from the "My User Controls" tab in the toolbox onto the form, I want it to reflect the...
6
by: =?Utf-8?B?bGpsZXZlbmQy?= | last post by:
I want to create a Windows.Forms.ToolStripItem that behaves as if it is an ellipse (e.g., similar to the round Office Button in Office 2007). Drawing the item is no problem, but I also want to...
1
by: Sagaert Johan | last post by:
i have a control that uses a region to make it non rectangular when i try to to remove the region by calling this.Region.Makeinfinite() the control keeps its non rectangular Region. if i call...
4
Frinavale
by: Frinavale | last post by:
So a while ago I created a Tab Strip Control (before the AjaxToolkit had theirs otherwise I would have probably just used theirs). When I looked at the AjaxToolkit control to see how they got...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.