Controlling Window Size

  • Thread starter Thread starter Remulac
  • Start date Start date
R

Remulac

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.
 
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/d.../en-us/dnaspp/html/aspnet-usingjavascript.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
 

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