Another Browser Launch Program (different Scenario)
ok, I have been reviewing the other questions regarding browser launching, but those scenarios were different than what i needed.
1. I am using a rich text box*. 2. This RTB* is not specifically used to type in URLs. There will be other things contained in the same box as well (this program is kinda like a wordpad program.) but when a URL is typed, VB.net already shows it as a URL, so when it is clicked, i need it to launch a browser.
3. I would also Like it to launch the default browser, as i use firefox while my friends are still in the IE era.
4. Instead of reusing any browsers that are already opened, i need it to open a fresh window each time.
When researching this question, #2 was always the thing that got in the way.
any suggestions?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Launch Browser From VB6 App
How do I cause a vb6 app to launch the user's default browser with a specific URL? That is, as clicking on a URL in an e-mail message causes the browser to launch, using that URL.
Don
How To Launch An Exe From The Browser ?
hi,
I have written an Activex DLL and packed it as Cab file and marked it as safe for scripting. This will be launched from the webbrowser as follows :
<HTML>
<HEAD>
<TITLE>Chatroom.CAB</TITLE>
</HEAD>
<BODY>
<OBJECT ID="ChatTest"
CLASSID="CLSID:D02F7572-AED3-4F80-A58A-213C3A60BC91"
CODEBASE="Chatroom.CAB#version=1,0,0,0">
</OBJECT>
<script language="javascript">
<!--
document.ChatTest.LaunchRoom();
//-->
</script>
</BODY>
</HTML>
So, This cab file consists of dependencies of this activex as well as a EXE file name a.exe.
the LaunchRoom function in Activex is supposed to launch that a.exe.
But where this file will be saved, when activex is installed from browser ?
what is the default path for it ?
Thanks in advance.
Thanks & Regards
Chinna
How To Launch An Exe From Web Browser ?
Hi,
I have written an Activex DLL and packed it as Cab file and marked it as safe for scripting. This will be launched from the webbrowser as follows :
<HTML>
<HEAD>
<TITLE>Chatroom.CAB</TITLE>
</HEAD>
<BODY>
<OBJECT ID="ChatTest"
CLASSID="CLSID02F7572-AED3-4F80-A58A-213C3A60BC91"
CODEBASE="Chatroom.CAB#version=1,0,0,0">
</OBJECT>
<script language="javascript">
<!--
document.ChatTest.LaunchRoom();
//-->
</script>
</BODY>
</HTML>
So, This cab file consists of dependencies of this activex as well as a EXE file name a.exe.
the LaunchRoom function in Activex is supposed to launch that a.exe.
But where this file will be saved, when activex is installed from browser ?
what is the default path for it ?
Thanks in advance.
Thanks & Regards
Chinna
Launch Browser From VB
I need to launch the browser from VB to my site which is protected by NT basic Authentication. I can go to the site using ShellExecute, but now I need to also pass in the Authentication info programatically, so that the network password dialog doesn't come up. Any Ideas??
Auto Launch Browser With Specified Url
hi
i'm pretty new in visual basic..i really hope anyone out here can help me.
i just want to ask, how do i create an application(or use which function) which launchs the default browser and go to a specified url?
thanks a lot for any help.
ShellExecute Won't Launch Browser
Hi, I'm having a strange problem with ShellExecute. It works fine on my computer, but it doesn't work on another computer when trying to open a website with the default browser.
Both of them work fine on my computer.
vb Code:
ShellExecute 0, "Open", App.Path & "Help.chm", vbNullString, vbNullString, vbNormalFocus ShellExecute 0, "Open", "http://www.google.com", vbNullString, vbNullString, vbNormalFocus
This one works fine on another (test) computer.
vb Code:
ShellExecute 0, "Open", App.Path & "Help.chm", vbNullString, vbNullString, vbNormalFocus
This one doesn't work on the other computer.
vb Code:
ShellExecute 0, "Open", "http://www.google.com", vbNullString, vbNullString, vbNormalFocus
The computer where both ShellExecutes are working fine is running an English version of XP SP2, the other computer is running a Dutch version of XP SP2.
Any idea?
Auto Launch Browser With Specified Url
hi
i'm pretty new in visual basic..i really hope anyone out here can help me.
i just want to ask, how do i create an application(or use which function) which launchs the default browser and go to a specified url?
thanks a lot for any help.
Launch New(second)Browser Window
Hello
I have a webbrowser control in my app that navigates to a sight when opened.
What I would like to be able to do is have a button that opens a second window to a different address and keeps the first window open on it's original page.
Is this possible to do with the webbrowser control?
I've tried using the show method but that just navigates the same window to the new address.
Thanks
David
Launch Default Browser (IE) In W2K?
How do I launch the Default browser to a specific URL in W2K?
is it the same as win98?
Thanks....
I think this is the code right? but I would have to change the Pathoffile.txt to a URL right?
VB Code:
Private Declare Function ShellEx Lib "shell32.dll" Alias _ "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _ ByVal lpFile As String, ByVal lpParameters As Any, _ ByVal lpDirectory As Any, ByVal nShowCmd As Long) As Long Private Sub Command1_Click() Dim x x = ShellEx(Form1.hwnd, "open", PathOfFile.txt, "", "", 1) End Sub
Launch The Default Browser Within Vb6
I have read all the posts about launching browsers but there is one thing missing in all these posts: They assume that IE is the default browser and is in a specific location.
Is there anyway to launch the default browser and not have to assume that the user has installed it in a specific location with a specific webpage (URL) loaded?
My guess is that this might be an API call.
Thanks in advance
Launch Browser And Pass URL String
I am a VBA newbie and I need to launch Microsoft Internet Explorer and pass (i.e.) http://www.yahoo.com to it.
Any help would be greatly appreciated.
THANKS!!
How To Launch A Browser Using Just An HTTP Address
I'm looking for a way to launch a browser knowing just the http address the user wants to go to. I don't know if they use IE or another browser. I want to use their default browser.
Thanks in advance
Launch (new Instance Of) Default Browser For Specific Url
I'm using the following code to launch the default browser:
vb Code:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpszOp As String, ByVal lpszFile As String, ByVal lpszParams As String, ByVal lpszDir As String, ByVal FsShowCmd As Long) As Long ' Launch default browserPublic Sub LaunchBrowser(ByVal URL As String) ShellExecute 0&, vbNullString, URL, vbNullString, vbNullString, vbNormalFocusEnd Sub
Works great, except that it cannibalizes an existing instance of the default browser if any are already open.
I'd rather it always force a new instance. Any ideas?
Launch/close Program For Another Program
I help out at a Boys & Girls Club in their computer lab. They recently got a copy of Sim City 3000 donated, but this program is having issues with their Windows XP OS. If you go here, "SimCity 3000 restarts spontaneously when exiting", you can see the problem we are encountering. I was wondering if writing a small program to launch SimCity 3000, then catch it when it exits and force it to close down programmatically is possible? If so, how difficult would it be? I assume it would require several various API calls.
How To Launch A Program From Vb
HI,
i have done an vb interface of a program for a vision system, but of course i would need to launch it from another interface containing the list of all the program that i will do.
Could you help me to lauch my program, lets say from a combo list.
Thanks,
chatoon.
Launch Program
How can you launch control panel from a command button?
Launch Program From VB
Is there a command where you just use a stringed file name to launch (or open) any program? (EXE)
Launch A Program From VB6
I am trying to develop a program that will launch Adobe reader to read a form that I made. I have a common dialog box opening up the pdf files, butmy problem is that I can't get it to launch once I select a file. I'm relatively new to the VB programming so it might be something simple, but I do not know how to resolve this. Can anyone help out please??
This is the only code that I have on the form so far. This works, but will not launch the adobe program.
Private Sub CmdFind_Click()
CommonDialog1.Filter = "PDF Files(*.pdf)|*.pdf|Word Documents (*.doc)|*.doc"
CommonDialog1.ShowOpen
End Sub
Thanks for any help..
Launch A Program ...
I want to make a program vb as cd autorun. how do I let launch a program that is on the CD, in the same directory of my prog VB, without specifying the unity of destination therefore don't I know unites him CD it is in D or in E or in F ???
Launch Program
Hi Everyone,
Does anyone know how to launch the Peachtree Accounting program from inside Visual Basic so that it will open up a company? I would appreciate any help. Thanks.
Launch One Program To From Another
Hi everyone !
Here is what I am trying to do :
I am building an application ( App1 ) . There is a button in this application that will have to open another program made by me ( App2 ). I know the Shell/ShellExecute method along with retrieving Command when opening from an associated file, but this time, I think it will not do it.
I need to pass a parameter from App1 to App2, not only opening it...
Somebody has a clear idea on how I should proceed ?
While I am here, somebody knows, when I launch an associated file, how to avoid to launch a second occurence of my app if it is already opened, just adding the file to the current opened application ?
Thanx a lot
Launch A Program In VBS
In VB, if you want to launch a program you can do:
Code:
Shell "C:windowsapp.exe"
is there an equivalent of this in VBS, or do I have to use that silly WScript.Shell thingy? I don't get it!
Please Help - Trying To Launch A Program Within VB...
I am writing an application that should launch an instance of another windows application, say Microsoft WORD. I have been able to launch the program from my code outside of the application, but I am trying to launch it within the application itself... in a control of some sort. Is this possible?? If it is, can someone help??
Thanks,
Ron
Next Program To Launch Goes Transparent
I was reading a forum, I looked at a guys desktop and he had a transparent messenger?
I noticed a quicklaunch icon called "tuning"
Are you able to do this kinda program with visual basic?
when u got that program open, all programs u open after it would open as transparent
Launch A Running Program
Hello all...
I have a weird request.
I need to do something with an application that is already running in the systray.
I would like to create a utility that can look in the systray and if "programB" is running then bring it up on the screen.
If this can be done, can this also been accomplished. There is a "Transfer Now" button on the front of "programB" and I would like to perform the click on this button if the program can in fact be brought up from the systray.
To do this manually with a mouse the user would double-click the icon in the systray and then click transfer now. So I would like to do the manual steps automatically with a little utility.
Any ideas.
GarryB
Launch Program When CD Is Inserted
Hello everybody,
I need to develop a small program which is to be copied in the CD and when the CD is inserted in the CD ROM, I need to launch the application and do some work.
Would you please help me where to start ??
Thanks.
Launch Program And Get HWnd
How can I launch an application and get it's hWnd? I can't simply use FindWindow(), because there is more than one open window with the the caption.
Is there a function to launch an application that returns the hWnd? Or any other method?
Launch A Program And Wait For It To End!! How??
I have made an autorun program for my friend that automatically detects whether a certain codecs is installed. If not, it will launch a setup EXE file which installs the codecs. Now I want the program to wait for the setup program to end, and then continue launching the application... How do I do this??
I have found an article here on VB World but it generates errors.
WinME : Overflow
W2K : Says something like the entry does not exist in the library (using API)
HELP ME PLEASE!!!!!!
How To Launch Program After Installation Using PDW?
Hi All
I have a project I have written in VB6 that I am deploying in Package and
Deployment Wizard. I have hacked the setup1.vbp and produced a couple of
customised features such as license agreement forms etc.
I am having trouble with writing code that launches the installed program after
setup?
At the end of the installation I want a message box that asks the user if
they want to launch the newly installed program.
Does anyone know how I would change the frmSetup1.frm to do this and launch
the new program?
Thanks Steven
How To Launch Program After Installation Using PDW?
Hi All
I have a project I have written in VB6 that I am deploying in Package and
Deployment Wizard. I have hacked the setup1.vbp and produced a couple of
customised features such as license agreement forms etc.
I am having trouble writing code that launches the installed program after
setup?
At the end of the installation I want a message box that asks the user if
they want to launch the newly installed program.
Does anyone know how I would change the frmSetup1.frm to do this and launch
the new program?
Thanks Steven
Executables - How Do I Launch One .EXE Program From Another .EXE?
Hi
I want to run one executable (say Program1.exe) then automatically Kill it when it's done (say by launching Program2.exe from Program1.exe, which kills Program1.exe)
I know how to do it manually by creating a Kill control in Program1.exe and clicking on it
But of course Program1.exe can't kill itself, can it.
Thanks
eon
Launch Program When CD Is Inserted
Hello everybody,
I need to develop a small program which is to be copied in the CD and when the CD is inserted in the CD ROM, I need to launch the application and do some work.
Would you please help me where to start ??
Thanks.
Launch A Program When Windows Starts
How can i make my program open when windows starts? I know i can put it in the start folder to open when windows loads, but what other options do i have? I want it to open every time the system starts up and under ever user. Maye i can ise the registry. But im not sure whats the best way of doing this.
Launch My Program When Windows Starts Up
No, its not like all the other questions you find here (well, it may, but I couldn't find any)
Im making sort of setup program that begins in DOS, then it starts windows, and then it continues in windows (or another program runs when windows is ready) I know you have the Run registry folder, but its only once it has to run, and besides, I have to do this in DOS. Isn't there anywhere a parameter I can set in DOS so Windows knows it has to run a certain program when it is started up and then delete this parameter so it only runs once?
Thanks,
WP
How To Check OS Version At Program Launch
I have a program that was written on a Windows 2000 box. The program will
run on a Win 9x box, but with limited functionality. My question: how can
I check the OS before running the program? I want to issue a disclaimer to
anyone running Win 9x.
Thanks in advance
RC
Search Cd Roms And Launch A Program
Hi I have this VBScript that will search through all of the cd-roms on the computer to find a file. Once that file is found it creates a variable for the drive letter so i can lauch other programs using the variable.
This is my script:
Dim fs, d, dc, fileToSearch, driveLetter
Set fs = CreateObject("Scripting.FileSystemObject")
Set dc = fs.Drives
fileToSearch = "setup.exe"
For Each d in dc
if d.DriveType = 4 then
if fs.FileExists(d.Path + "" + fileToSearch) then
driveLetter = d.DriveLetter
exit for
end if
end if
Next
What i want to know is, say the drive with the disk in is F:. How do i launch a program using the variable. For instance in ms dos batch i could have used the %cdrom% variable. whats the VBscript alternative.
I hope this makes sense. if not i can rephrase it for you.
many thanks.
Launch VB Program Before Windows Logon
Hi,
I want to launch my VB program before windows logon. I am using Win 2000 & XP. I done a part which is adding my file path in Registry (HKLM....Run directory). When I reboot a system, system loading Windows logon, task bar, desktop...my program loads. I don't want the user to select any of other program before my program loads. Pls help me.
Thanks in advance.
MAK
Editing The Registry To Launch My Program At Startup?
I know I need to use the win API of sorts to create a registry key to launch my program with windows. It's just basically my own personal little launch center... And rather than using the startup section (where my GF can delete the link - as she often does for no apparent reason) I'd like to have it in the registry where it will still come up but she will be sure not to find it =)
Thanks
Mike
|