Solved

Internet Explorer Questions

Posted on 2003-10-31
1
286 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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

771 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now