Solved

Internet Explorer Questions

Posted on 2003-10-31
1
288 Views
Last Modified: 2010-05-03
I have an autorun file which calls an exe called setup.exe
i am writing setup.exe in vb6.
This setup.exe has no form and it only calls and displays "main.htm".
I need to set the size of this HTML page in code in VB, i know of the parameters
SW_MINIMIZED, SW_MAXIMIZED, ETC.
This is my current command:
ShellExecute(hWnd, "open", URL, vbNullString, vbNullString, WindowState).
I would like to set the size say of the Main.htm that is being displayed to
Say Height = X and Width = Y.

Also
I have an exit button on this HTML page with javascript :
window.close();
but everytime i press it, it asks confirmation on if it should close

and last Q:
i have an install button on the HTML page which links to
install.exe but i dont want the user to have to select open or save or cancel, like it currently does.
It should just start install.exe





0
Comment
Question by:jxharding
1 Comment
 
LVL 2

Accepted Solution

by:
ChrisDrake earned 20 total points
ID: 9657390
Name your "main.htm" file as "main.hta" instead - this will get rid of all the security warnings.

Put this inside your main.hta file somewhere:-

<script>
  window.resizeTo(410, 360)
</script>
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to open Waze.com/livemap from address saved in DB? 26 189
MS Access - Capture pressed key onclick 4 33
Determine Range to Select 5 48
passing parameter in sql procedure 9 61
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question