473,381 Members | 1,419 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,381 software developers and data experts.

transparent form

don
I want to create a transparent form and can write something on it by using Ink.
I try to set form.backcolor = color.transparent, but it dosen't accept.
And everything will be transprent when i use Opacity.
Finally, i try to use transparencykey, but any mouse actions will be
transferred to the windows below the transparent area.
Any solutions? thx
Nov 16 '05 #1
9 7789
I thought forms had an opacity setting, does that not give you what you
need?
"don" <do*@discussions.microsoft.com> wrote in message
news:B3**********************************@microsof t.com...
I want to create a transparent form and can write something on it by using
Ink.
I try to set form.backcolor = color.transparent, but it dosen't accept.
And everything will be transprent when i use Opacity.
Finally, i try to use transparencykey, but any mouse actions will be
transferred to the windows below the transparent area.
Any solutions? thx

Nov 16 '05 #2
don
if i have a form with opacity = 0 and draw a line on the form,
the line will be invisible. i want the form invisble and the line is visible
so i think opacity doesn't work for my project

"Josh" wrote:
I thought forms had an opacity setting, does that not give you what you
need?


Nov 16 '05 #3
I'm a little confused as to exactly what problem you are experiencing. I
have not tried this, but I think if the Opacity is set to 0% then the click
events will not be trapped by your form and will be passed to whatever is
underneath, however, you can set the Opacity to 1% and have the form
seemingly appear invisible to your eye and still trap the events.

Can you be more specific about the exact state your project is in with
respect to the problem you are writing about.

Thanks
--
Terry Burns
http://TrainingOn.net

"don" <do*@discussions.microsoft.com> wrote in message
news:B3**********************************@microsof t.com...
I want to create a transparent form and can write something on it by using
Ink.
I try to set form.backcolor = color.transparent, but it dosen't accept.
And everything will be transprent when i use Opacity.
Finally, i try to use transparencykey, but any mouse actions will be
transferred to the windows below the transparent area.
Any solutions? thx

Nov 16 '05 #4
don
The scenario is, put a peice of glass on the screen, then i can put anything
on the glass and still can see the screen.
The click events will be trapped if i set the Opacity to 1%. but if i draw a
line on the form, the line will be almost invisible too. what i want is, the
form is transparent and the line is opaque.

"Terry Burns" wrote:
I'm a little confused as to exactly what problem you are experiencing. I
have not tried this, but I think if the Opacity is set to 0% then the click
events will not be trapped by your form and will be passed to whatever is
underneath, however, you can set the Opacity to 1% and have the form
seemingly appear invisible to your eye and still trap the events.

Can you be more specific about the exact state your project is in with
respect to the problem you are writing about.

Thanks
--
Terry Burns
http://TrainingOn.net

"don" <do*@discussions.microsoft.com> wrote in message
news:B3**********************************@microsof t.com...
I want to create a transparent form and can write something on it by using
Ink.
I try to set form.backcolor = color.transparent, but it dosen't accept.
And everything will be transprent when i use Opacity.
Finally, i try to use transparencykey, but any mouse actions will be
transferred to the windows below the transparent area.
Any solutions? thx


Nov 16 '05 #5
Hi don,

Please let me know if I'm wrong, but - what you want to do will
effectively prevent the user from interacting with windows under your
form, so why not simply grab the desktop contents (via BitBlt, for
example) and set it as background to your form?

HTH,
Stefan

don wrote:
The scenario is, put a peice of glass on the screen, then i can put anything
on the glass and still can see the screen.
The click events will be trapped if i set the Opacity to 1%. but if i draw a
line on the form, the line will be almost invisible too. what i want is, the
form is transparent and the line is opaque.

"Terry Burns" wrote:

I'm a little confused as to exactly what problem you are experiencing. I
have not tried this, but I think if the Opacity is set to 0% then the click
events will not be trapped by your form and will be passed to whatever is
underneath, however, you can set the Opacity to 1% and have the form
seemingly appear invisible to your eye and still trap the events.

Can you be more specific about the exact state your project is in with
respect to the problem you are writing about.

Thanks
--
Terry Burns
http://TrainingOn.net

"don" <do*@discussions.microsoft.com> wrote in message
news:B3**********************************@micros oft.com...
I want to create a transparent form and can write something on it by using
Ink.
I try to set form.backcolor = color.transparent, but it dosen't accept.
And everything will be transprent when i use Opacity.
Finally, i try to use transparencykey, but any mouse actions will be
transferred to the windows below the transparent area.
Any solutions? thx


Nov 16 '05 #6
I assume the OP wants to see the real desktop wherever he moves the form. I
was wondering if you set the key transparency to the grey of the form
background color and then used a transparent layered graphic or something to
try and prevent the pass through. I have not tried it, but maybe you could
play with that idea and see if it yeilds any success ?

--
Terry Burns
http://TrainingOn.net
"Stefan Simek" <no****@nospam.nospam> wrote in message
news:OM**************@tk2msftngp13.phx.gbl...
Hi don,

Please let me know if I'm wrong, but - what you want to do will
effectively prevent the user from interacting with windows under your
form, so why not simply grab the desktop contents (via BitBlt, for
example) and set it as background to your form?

HTH,
Stefan

don wrote:
The scenario is, put a peice of glass on the screen, then i can put
anything on the glass and still can see the screen.
The click events will be trapped if i set the Opacity to 1%. but if i
draw a line on the form, the line will be almost invisible too. what i
want is, the form is transparent and the line is opaque.

"Terry Burns" wrote:

I'm a little confused as to exactly what problem you are experiencing. I
have not tried this, but I think if the Opacity is set to 0% then the
click events will not be trapped by your form and will be passed to
whatever is underneath, however, you can set the Opacity to 1% and have
the form seemingly appear invisible to your eye and still trap the
events.

Can you be more specific about the exact state your project is in with
respect to the problem you are writing about.

Thanks
--
Terry Burns
http://TrainingOn.net

"don" <do*@discussions.microsoft.com> wrote in message
news:B3**********************************@micro soft.com...

I want to create a transparent form and can write something on it by
using Ink.
I try to set form.backcolor = color.transparent, but it dosen't accept.
And everything will be transprent when i use Opacity.
Finally, i try to use transparencykey, but any mouse actions will be
transferred to the windows below the transparent area.
Any solutions? thx

Nov 16 '05 #7
don
hi Burns,
I have tried it , but still doesn't work.
thx

hi Simek,
yes, the form that i want will prevent the user from interacting with
windows (I can handle these event). It's feasibe by grabbing desktop content
when conten is static.
but still have problem when desktop conten is not static(e.g. playing flash
moving).
Iterative grabbing may work, but it would lead to bad performance.
thx
Nov 16 '05 #8
What you can do to make a form that is transparent or parts of it
transparent, would be to create a bmp file to the size you want your
form to be, all the parts you want to be transparent make (let's say)
"white", then go to your form designer and set the background image of
the form to this new bmp file and the size to the size of the bmp ,
then set the TransparencyKey to "white"(or the exact color you chose to
be transparent, careful if you want to use white later in the form it
will be transparent), also you can set the FormBorderStyle to None so
the user cant resize.

Later you can actually make the background image scale as the user
resizes the window if you so desire

Nov 16 '05 #9

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

Similar topics

0
by: Graphics_master | last post by:
Anyone know how to create a transparent splash screen similar to Photoshop, After Effects, or premiere. They have a wonderful transparent look. I realize that I can use the key color property of...
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...
8
by: Grahammer | last post by:
Is it possible to set the background of a usercontrol as transparent? I tried setting the background image of the usercontrol to a transparent GIF, but that caused MAJOR problems. I'm making...
0
by: Henry Wu | last post by:
Hi, I am aware that TransparencyKey only works with top-level forms or Non-MDI Child Forms, if one tries to set the opacity or transparencykey property to a MDI-Child form, it will have no effect....
4
by: jcrouse | last post by:
I am using the following code to move a label on a form at runtime: If myMousedown = lblP1JoyRight.Name Then If lblP1JoyRight.BackColor.Equals(Color.Transparent) Then bTransCk = True ...
2
by: Dean Slindee | last post by:
It appears that I have two routines that don't play well together! First routine: a form's background is shaded with a gradient color. Second routine: then, the background of all labels on the...
1
by: FredC | last post by:
I'm using VS 2003, C#.Net 2003. I built a simple windows form app. with the following attributes: - has a BackgroundImage set to a jpeg I built a very simple user control that contains a...
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...
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...
1
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.