Solved

Internet Explorer Questions

Posted on 2003-10-31
1
291 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month10 days, 11 hours left to enroll

632 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