Wayne Britcliff
06-06-2002, 05:10 AM
I'm a total novice when it comes to VB as the following basic query will attest to.
I use the following to open a new browser window in IE:
objHelpWin = window.open(myString, "newWin", "width=" & myXValue & ",height=" & myYValue & ",top=20,left=20")
As you can see I'm opening a new window and also passing the size I want it set to (for displaying an image in the newly opened window without embedding it in a htm page).
My problem is that once a new window is open subsequent calls of the same code from the parent window do not resize the spawned window or create another window but place the next image inside the existing window.
Is there any command or way I can cause an additional window to open, auto-close the existing window or even tell the existing window to resize (or is what I am asking just not possible)?
Any help will be much appreciated even if it's just a pointer as to what I can do (although I know it's probably extremely basic stuff for those of you on this forum).
Wayne.
I use the following to open a new browser window in IE:
objHelpWin = window.open(myString, "newWin", "width=" & myXValue & ",height=" & myYValue & ",top=20,left=20")
As you can see I'm opening a new window and also passing the size I want it set to (for displaying an image in the newly opened window without embedding it in a htm page).
My problem is that once a new window is open subsequent calls of the same code from the parent window do not resize the spawned window or create another window but place the next image inside the existing window.
Is there any command or way I can cause an additional window to open, auto-close the existing window or even tell the existing window to resize (or is what I am asking just not possible)?
Any help will be much appreciated even if it's just a pointer as to what I can do (although I know it's probably extremely basic stuff for those of you on this forum).
Wayne.