473,320 Members | 2,073 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,320 software developers and data experts.

How To Create Transparent Windows Controls

How To Create Transparent Windows Controls?

Thanks
Nov 15 '05 #1
5 6644
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/vbtchShapedWindowsFormsControlsInVisualStudioNET.a sp

Regards,
Aravind C
"2003et" <e1*****@metu.edu.tr> wrote in message
news:OM*************@TK2MSFTNGP10.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.edu.tr> wrote in message
news:OM*************@TK2MSFTNGP10.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.to.news.group> wrote in message
news:u9**************@TK2MSFTNGP09.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.edu.tr> wrote in message
news:OM*************@TK2MSFTNGP10.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.edu.tr> wrote in message
news:u8**************@tk2msftngp13.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.to.news.group> wrote in message
news:u9**************@TK2MSFTNGP09.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.edu.tr> wrote in message
news:OM*************@TK2MSFTNGP10.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.to.news.group> wrote in message
news:uT**************@tk2msftngp13.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.edu.tr> wrote in message
news:u8**************@tk2msftngp13.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.to.news.group> wrote in message
news:u9**************@TK2MSFTNGP09.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.edu.tr> wrote in message
news:OM*************@TK2MSFTNGP10.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
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...
2
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...
3
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
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...
2
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...
4
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...
3
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...
8
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...
0
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.