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 2 1531
* "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/>
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.p ol.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 On Open event and have a the default 10% and
give the user the option to change it to 0%
I have referenced th appropriate library and the default value of the
field to change is 0.1
|
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 the following problems:
|
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 selected hours
(say from 8:00am till 1:00pm) appear highlighted or shaded (like in MS
Outlook expres).
Any help will be appreciated
--
|
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 representing an hour of the day (24
hours = 24 user controls).
How can I mouse-down, drag, mouse-up select a region (say from 9:00am to
1:00pm)?
I was trying to use mouse down/mouse up events and return the tag property
of the user controls on down /...
|
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 then applying a region to the
control. The control inherits from picturebox and works fine when loading
the image into the control, the problem that I am having now is, once the
control is loaded and the image is displayed, if the user resizes...
| |
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 following default properties: Height =
32px, Width = 144px.
I declare the Width property in my control as...
\\\
|
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 prevent the item from reponding to
the mouse unless the mouse is within the elliptical bounds of the item. For
a Windows.Forms.Control this can be done by setting the Region property, but
as far as I can tell there no such property for a...
|
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 RecreateHandle() after calling Region.Makeinfinite() it works.
I Don't understand why it does not work if i don't call RecreateHandle();
Johan
|
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 around this problem I discovered that they're using Animations. I don't want to bloat my control with the Ajaxtoolkit's Animation stuff though.
I guess I should tell you what the problem is.
I have a TabStrip custom control. It's a Table that has...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |