By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,326 Members | 881 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,326 IT Pros & Developers. It's quick & easy.

Controlling Window Size

P: n/a
Does anyone know how I can control the size of a web form
window in VB.NET? I'm also trying to center the window on
the screen.

Thanks in advance for your help.
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Remulac,

In JavaScript, that you can search on Google in my idea.

To start that JavaScript from your vb code you can use someting as this
\\\
Dim str As String
str = "<script language=javascript> {window.open('http://www.google.com');}
</script>"
RegisterStartupScript("Startup", str)
///
A full description
http://msdn.microsoft.com/library/de...javascript.asp

A problem is that this is a part of the Page class which does not have
intelisence in VB.net.

I hope this helps?

Cor
Nov 20 '05 #2

P: n/a
Thanks Cor! That was VERY helpful!
-----Original Message-----
Hi Remulac,

In JavaScript, that you can search on Google in my idea.

To start that JavaScript from your vb code you can use someting as this\\\
Dim str As String
str = "<script language=javascript> {window.open ('http://www.google.com');}</script>"
RegisterStartupScript("Startup", str)
///
A full description
http://msdn.microsoft.com/library/default.asp? url=/library/en-us/dnaspp/html/aspnet-usingjavascript.asp
A problem is that this is a part of the Page class which does not haveintelisence in VB.net.

I hope this helps?

Cor
.

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.