help on implementing "FormBorderStyle = FormBorderStyle.None;" in Webform..

T

trint

Ok,
I received info that this will work as a means of removing the border
around a window that I create (which also loads an aspx file) in the
firing file (aspx using javascript):
OpenWindow = window.open("logon2.aspx", "remote", windowprops);

But the code that removes its borders is in c#???:
this.FormBorderStyle = FormBorderStyle.None;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.ControlBox = false;

How can I put this all together correctly since, creating the window is
javascript (window.open) and removing its borders is c# in a webform
(FormBorderStyle = FormBorderStyle.None)?

Any help is appreciated.
Thanks,
Trint
 
J

Jan

Hi Trint,

Not sure where you got this idea or why you thought it would ever it
work, but it's absolutly rediculous! There is no way thet you could put
"this together correctly" and I'm tempted not to tell you how to do
what you want but I'm nicer than I should be so:

First read a good book on web development then...

If you want to show something in as a borderless window you need to use
a floating DIV and toggle the visibility.

There are ways of manipulating the window settings on any window in
Win32 but they would be beyond your ken, nore would I advocate doing it
as most virus protection software will warn about such activity.

Good Luck,
Jan
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

You got mixed web and win develoipment, I think to remember last week you
asked the same question,
IIRC there is no way to get a IE window with just the client area, not I
want this feature, it would make the pop-ups even worse than now.

what you can do is as Jan suggested, you could use a floating div that can
act as a "new window"

cheers,
 
T

trint

I want the first Webform to hide and only display Jan' "new window"...
Any example on doing this floating div is much appreciated.
Thanks,
Trint
 

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

Top