473,395 Members | 1,526 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Controlling Window Size

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
2 980
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Brian DSouza | last post by:
I got the following code from an earlier posting (much earlier, like 1999) in this ng. This is supposed to control the paper size selected to legal, even if the default printer changes. Question is...
1
by: gb | last post by:
Now that I have figured out how to display a page in a new browser window from the server (target="_blank"), is there a way to make that new browser window a certain size and with no toolbars, url...
1
by: SteMc | last post by:
I've started an application using the process.start idea mentioned a couple of posts ago. However, I can't find a way for me to control the position and size of the window that it opens. The app...
1
by: ppcguy | last post by:
i'm submitting a form via javascript. form.submit(); i'd like the results of the POST to open in a new window (i can set the target) but while configuring certain windows frame features...
2
by: Hymer | last post by:
Hello, I have a footer at the end of each article in my blog at http://www.usernomics.com/news/user-interface-design-news.html . The footer looks perfect in IE but has smaller text in Firefox...
4
by: acknowledged74 | last post by:
Hi I have added a open and 'play in Window Media player' option on my website, do you know how I can control the size of the player that opens? It automatically open in the whole page and quality...
5
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, If I create a form in Java with controls like Panels, textboxes... when I stretch/shrink the form, all the controls can grow/shrink - along with the text contained in the textboxes. This...
4
by: Matthew Cox | last post by:
Hi, I've been searching the net all day today trying to figure out how one would accomplish what I originally thought would be a fairly straight forward and simple thing. The problem I'm trying...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.