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

Form visibility

I need to change the opacity of some part of a form (e.g. vertically
1/2)....If i set opacity from property it affects the whole form. Can
anyone help me in this regard?

Jan 19 '06 #1
3 986
I don't think so. I think the only way to do something like this is to
- split your window into 2 windows, and then change the opacity of 1.
(sucks. i know). or
- overlay your main window on top of a second one. then make the main window
partly transparent. the part of your window that has the second window below
it will not seem transparent. (don't know if there are buttons on that part
or not. that would complicate things)

there is no 'easy' solution for your problem, afaik.

kind regards,
Bruno.

"ta*******@gmail.com" schreef:
I need to change the opacity of some part of a form (e.g. vertically
1/2)....If i set opacity from property it affects the whole form. Can
anyone help me in this regard?

Jan 19 '06 #2
Hey dude,

I got the solution in MSDN. We just have to use TransparencyKey color
same as the BackColor of the portion of the form we want to make
transparent.

Put a Panel on the Form. Make the BackColor of the Panel different
from that of the Form's. In the code write ...
this.TransparencyKey = BackColor;

This will make the remaining portion of the Form fully transparent,
you can even click on the page that is behind your form.

Warm regards,
Ayan

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Jan 19 '06 #3
Hi,

I think i misunderstood your original query.

you can only use this to make one part of your screen completely
transparant, while the other part remains completely or partially opaque.

you cannot use this technique for example to make a part of your screen 50%
opaque while the rest stays the same. which is what i thought you asked for.

kind regards,
Bruno.

"Ayan" schreef:
Hey dude,

I got the solution in MSDN. We just have to use TransparencyKey color
same as the BackColor of the portion of the form we want to make
transparent.

Put a Panel on the Form. Make the BackColor of the Panel different
from that of the Form's. In the code write ...
this.TransparencyKey = BackColor;

This will make the remaining portion of the Form fully transparent,
you can even click on the page that is behind your form.

Warm regards,
Ayan

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Jan 19 '06 #4

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

Similar topics

2
by: Laurent Bertin | last post by:
Hi i got a strange problem but it's true i don't make thing like anyone... First Config: + IIS5.0 SP2 (yes i know...) WebSite Security Root : Digest Authentication, NT Authenticated SubFolders...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
3
by: veganeater | last post by:
Hi, I'm wondering if there's a way that I can select which <div> to show based on the user's selection from a dropdown/listbox form. <form name="form1" method="post" action=""> <select...
4
by: jerryyang_la1 | last post by:
I've found this script that allows be to hide/show form elements.. <script language="JavaScript"><!-- var toggle = true; function show(object) { if (document.layers && document.layers)...
1
by: iMedia User | last post by:
I have a site where I want to use the Web form validators in two separate forms on a single page. One form allows existing users to log in while the second one allows new users to register. The...
1
by: Mel | last post by:
I have a form with 2 submit buttons (s1 s2) and a list of checkboxes this is what i want to do: on a single checkbox select: i want to display s1 on two or more checkbox selection: i want to...
2
by: justplain.kzn | last post by:
Hi, I have a table with dynamic html that contains drop down select lists and readonly text boxes. Dynamic calculations are done on change of a value in one of the drop down select lists. ...
8
by: jd2007 | last post by:
Why the Ajax code below in ajax.js is causing my form not to work ? ajax.js: var a=0; var b=0; var c=0; var d=0; var e=0; var f=0;
3
by: msg2ajay | last post by:
hi, I am not able to align the textfield to the top of the frame one bye one. The problem is it is showing where it is hiding..... so is it possible to allign the text field to the top of...
13
by: windsorben | last post by:
I have some javascript that checks whether or not an answer is correct. It was working fine when the question was asked with text but now that I'm asking the question with audio, the javascript no...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.