Form visibility

  • Thread starter Thread starter talk2ayan
  • Start date Start date
T

talk2ayan

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?
 
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.

"(e-mail address removed)" 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
 
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:
 
Back
Top