Transparent Layer?

  • Thread starter Thread starter xenophon
  • Start date Start date
X

xenophon

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.
 
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 said:
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
 
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.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top