I would like to create a panel, completely through code (no
designer!), that is the same size as the current winform, and has
transparency set to 95%. I am using C# on Framework 1.1 and don't see
how to do this. I am tryng to emulate some WebForm behavior where
after a button is clicked a "please wait" div is drawn over the page
to indicate that somethihg is happening and controls can't be touched,
but can mostly be seen.

Thanks.

Re: Transparent Layer? by Stoitcho

Stoitcho
Wed Jan 04 12:08:51 CST 2006

xenophon,

The technique with the div works for web because there is no other way. In
win forms usually you set the cursor to hourglass, set form's Enabled to
false, show modal progress form, etc. Any of these will prevent the user
from clicking on the controls.


--

Stoitcho Goutsev (100)

"xenophon" <xenophon@online.nospam> wrote in message
news:di1or1pnhqhqroku0nt07oddo24du2cupm@4ax.com...
>I would like to create a panel, completely through code (no
> designer!), that is the same size as the current winform, and has
> transparency set to 95%. I am using C# on Framework 1.1 and don't see
> how to do this. I am tryng to emulate some WebForm behavior where
> after a button is clicked a "please wait" div is drawn over the page
> to indicate that somethihg is happening and controls can't be touched,
> but can mostly be seen.
>
> Thanks.
>
>



Re: Transparent Layer? by MuZZy

MuZZy
Wed Jan 04 12:52:59 CST 2006

Stoitcho Goutsev (100) [C# MVP] wrote:
> xenophon,
>
> The technique with the div works for web because there is no other way. In
> win forms usually you set the cursor to hourglass, set form's Enabled to
> false, show modal progress form, etc. Any of these will prevent the user
> from clicking on the controls.
>

I doubt whether progress form should be modal though... i would just
make it owned

Re: Transparent Layer? by Stoitcho

Stoitcho
Wed Jan 04 16:06:06 CST 2006

Yes, owned form in combination with hourglass cursor or disabling the main
form is another solution.
Modal will prevent user from clicking on the buttons and menus on the main
form. It is just an idea. Using modal forms involve using worker threads
though.


--

Stoitcho Goutsev (100)

"MuZZy" <tnr@newsgroups.nospam> wrote in message
news:enjBWAWEGHA.1424@TK2MSFTNGP12.phx.gbl...
> Stoitcho Goutsev (100) [C# MVP] wrote:
>> xenophon,
>>
>> The technique with the div works for web because there is no other way.
>> In win forms usually you set the cursor to hourglass, set form's Enabled
>> to false, show modal progress form, etc. Any of these will prevent the
>> user from clicking on the controls.
>>
>
> I doubt whether progress form should be modal though... i would just make
> it owned



Re: Transparent Layer? by xenophon

xenophon
Thu Jan 05 09:22:18 CST 2006


Thanks for the idea, but I would like to write some text on the
semi-transparent panel as well. I already set the cursor to an
hourglass, and I can't do modal for a few reasons.

So....


How can I make this special panel?

Thanks.


On Wed, 4 Jan 2006 13:08:51 -0500, "Stoitcho Goutsev \(100\) [C# MVP]"
<100@100.com> wrote:

>xenophon,
>
>The technique with the div works for web because there is no other way. In
>win forms usually you set the cursor to hourglass, set form's Enabled to
>false, show modal progress form, etc. Any of these will prevent the user
>from clicking on the controls.


Re: Transparent Layer? by v-jetan

v-jetan
Fri Jan 06 03:04:50 CST 2006

Hi xenophon ,

The article below shows us a sample regarding how to paint a
semi-transparent panel in VB.net:
http://addressof.com/blog/articles/282.aspx

Hope it helps

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.