473,849 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How To Create Transparent Windows Controls

How To Create Transparent Windows Controls?

Thanks
Nov 15 '05 #1
5 6676
Hi,

Please take a look at the TransparencyKey property of Form object.

Here's an example that illustrates creating custom shaped forms:
http://msdn.microsoft.com/library/de...us/dv_vstechar
t/html/vbtchShapedWind owsFormsControl sInVisualStudio NET.asp

Regards,
Aravind C
"2003et" <e1*****@metu.e du.tr> wrote in message
news:OM******** *****@TK2MSFTNG P10.phx.gbl...
How To Create Transparent Windows Controls?

Thanks

Nov 15 '05 #2
Max
To create a transparent control set Region property of the control.
Your control is painted only within it's region and receive mouse events
only from within the region.
The points not within the region are transparent
By default the region is all the control's rect, but you may change it and
set it to practically any shape.
"2003et" <e1*****@metu.e du.tr> wrote in message
news:OM******** *****@TK2MSFTNG P10.phx.gbl...
How To Create Transparent Windows Controls?

Thanks

Nov 15 '05 #3
Thanks for your replying but my purpose is making a slide in - slide out
menü from left. It will be like the VS.NET's left toolbox menu.

So, if I use the region property, it will not do my work... Because my menu
will slide in the page...

I think I will have to make a function which makes the sliding animation....
So it is not easy for multi-form programs...

Thanks,

E.T.
"Max" <Pl****@reply.t o.news.group> wrote in message
news:u9******** ******@TK2MSFTN GP09.phx.gbl...
To create a transparent control set Region property of the control.
Your control is painted only within it's region and receive mouse events
only from within the region.
The points not within the region are transparent
By default the region is all the control's rect, but you may change it and
set it to practically any shape.
"2003et" <e1*****@metu.e du.tr> wrote in message
news:OM******** *****@TK2MSFTNG P10.phx.gbl...
How To Create Transparent Windows Controls?

Thanks


Nov 15 '05 #4
Max
I see it this way:
You can have some control on your form. Let us call it main toolbar,
although I am not sure it should be a toolbar.
It will handle MouseEnter event and bring another control, let us call it a
child toolbar in to view. Bring to view means change Location and/or Size
properties to make it visible. You may change it at once or in a cycle with
small step to make slide out illusion.

Child toolbar will handle MouseLeave event and disappear.
"2003et" <e1*****@metu.e du.tr> wrote in message
news:u8******** ******@tk2msftn gp13.phx.gbl...
Thanks for your replying but my purpose is making a slide in - slide out
menü from left. It will be like the VS.NET's left toolbox menu.

So, if I use the region property, it will not do my work... Because my menu will slide in the page...

I think I will have to make a function which makes the sliding animation.... So it is not easy for multi-form programs...

Thanks,

E.T.
"Max" <Pl****@reply.t o.news.group> wrote in message
news:u9******** ******@TK2MSFTN GP09.phx.gbl...
To create a transparent control set Region property of the control.
Your control is painted only within it's region and receive mouse events
only from within the region.
The points not within the region are transparent
By default the region is all the control's rect, but you may change it and set it to practically any shape.
"2003et" <e1*****@metu.e du.tr> wrote in message
news:OM******** *****@TK2MSFTNG P10.phx.gbl...
How To Create Transparent Windows Controls?

Thanks



Nov 15 '05 #5
In the way you said, How can I call the second component from the first one?
or did you mean calling slide out function at main form?

"Max" <Pl****@reply.t o.news.group> wrote in message
news:uT******** ******@tk2msftn gp13.phx.gbl...
I see it this way:
You can have some control on your form. Let us call it main toolbar,
although I am not sure it should be a toolbar.
It will handle MouseEnter event and bring another control, let us call it a child toolbar in to view. Bring to view means change Location and/or Size
properties to make it visible. You may change it at once or in a cycle with small step to make slide out illusion.

Child toolbar will handle MouseLeave event and disappear.
"2003et" <e1*****@metu.e du.tr> wrote in message
news:u8******** ******@tk2msftn gp13.phx.gbl...
Thanks for your replying but my purpose is making a slide in - slide out
menü from left. It will be like the VS.NET's left toolbox menu.

So, if I use the region property, it will not do my work... Because my

menu
will slide in the page...

I think I will have to make a function which makes the sliding

animation....
So it is not easy for multi-form programs...

Thanks,

E.T.
"Max" <Pl****@reply.t o.news.group> wrote in message
news:u9******** ******@TK2MSFTN GP09.phx.gbl...
To create a transparent control set Region property of the control.
Your control is painted only within it's region and receive mouse events only from within the region.
The points not within the region are transparent
By default the region is all the control's rect, but you may change it and set it to practically any shape.
"2003et" <e1*****@metu.e du.tr> wrote in message
news:OM******** *****@TK2MSFTNG P10.phx.gbl...
> How To Create Transparent Windows Controls?
>
>
>
> Thanks
>
>



Nov 15 '05 #6

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

Similar topics

5
9512
by: Paul Schnitter | last post by:
Update: My custom control is based on the article "Creating Visual Basic .NET controls from scratch" in "Adventures in .NET" on MSDN. It is designed to be a replacement for the VB6 shape control. My control draws a shape (circle, square, rectangle ...)
2
8321
by: Jaikumar | last post by:
Hi, 1) I have created one windows application, In the main form ( form1) i have added one usercontrol (usercontrol1), In that user control i am drawing one image. 2) In the UserControl1 i am showing one transparent form (form3) when ever user preseed left mouse button. 3) The form3 has one transparent user control (usercontrol2) that paints circles. That measn the circles will show on top the usercontrol1 image. 4) The form3 border style...
3
8077
by: °Ë´óɽÈË | last post by:
HI, I create a custom transparent control, set the style is ControlStyles.DoubleBuffer, It display black background. How to create a double buffer transparent control?
3
3112
by: Steve Koon | last post by:
Any thoughts on getting this project to work or suggesting another method would be appreciated. Steve ========================================== Project: A Windows Form which acts as a Whiteboard. The Form contains 3
2
10995
by: Martin | last post by:
I've been complaing about the VB2005 Help-Information (or rather the lack of it) before, but when I was looking how to set the backstyle of a label control to "Transparent" I found that the VB2005 documentation has reached an all-time low (please note the part about the z-order): MSDN: In Visual Basic 6.0, the BackStyle property of the Label control determines whether the label had a transparent background. Setting the BackStyle...
4
9380
by: ray well | last post by:
in my app i need to make a RichTextbox control transparent. i need it to be a like a pane of glass lying on a sheet of paper, where u can see everything on the sheet of paper not covered by text written on the glass pane. i need to be able to see the control or form that is underneath the RichTextbox, and at the same time to be able to write and erase text to the RichTextbox. i'm assuming that it is the backcolor that hides what is...
3
4574
by: Ananas | last post by:
Hi, I have created a custom control. It's a rectangle with transparent background. It's possible to see the container through the control. But when controls intersect one another then it's not possible to see the control lying under another. Please, give me an idea how to create a transparent controls? Is anywhere any useful examples located?
8
10184
by: Brian Ward | last post by:
I am looking for a simple way to set the image transparency in a PictureBox. I have a moving PictureBox containing a graphic image .. moving by incrementing its Left property. The background however shows white as the PictureBox moves but I want it to be transparent. The PictureBox BackColor is set to Transparent .. but no affect. I have used PhotoShop to make the image background transparent .. again no affect. If I make the image a...
0
2874
by: MasterOfTheDark | last post by:
This one's a hairy one to explain. What I've got is a class called "VistaGroupBox" that I put some nice-looking Vista-style gradients in the background and made to look like the ribbon categories you see in Office 2007. I got it working great, and created a few more controls, including a "VistaButton", which is primarily transparent when the cursor does not hover over it. However, when I added a standard Panel in the VistaGroupBox and put my...
0
9893
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, 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...
0
9738
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,...
0
10665
jinu1996
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...
0
10349
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 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...
0
7070
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();...
0
5735
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4139
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3177
bsmnconsultancy
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...

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.