473,321 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Activating a broser

The following will active IE.

Dim t As Type = Type.GetTypeFromProgID("InternetExplorer.Applicati on")
Dim o As Object = Activator.CreateInstance(t)
t.InvokeMember("Visible", BindingFlags.SetProperty, Nothing, o, New Object()
{True})
t.InvokeMember("Navigate", BindingFlags.InvokeMethod, Nothing, o, New
Object() {www.microsoft.com})

Using the following, I thought that I'd be able to activate Firefox. Did not
work.
Can Firefox be activated in .NET code?

Dim t As Type = Type.GetTypeFromProgID("Mozilla.Browser.1")
--
http://www.standards.com/; See Howard Kaikow's web site.
Nov 21 '05 #1
2 1345
Howard,

You mean without the process start?

Did you know that beside the process.Start and your method you can as well
start IE with this.

\\\
Public WithEvents Explorer As SHDocVw.InternetExplorer

Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Explorer = New SHDocVw.InternetExplorer
Explorer.Visible = True
Explorer.Navigate("http://msdn.microsoft.com")
End Sub
///

Cor
Nov 21 '05 #2
Lemee clarify.

I am going thru Andrew Whitechapel's book MSFT .NET Development for MSFT
Office.
Code is almost all C#, so I am converting to VB .NET as is. It's a painful
process, but I'm learning some C# and getting a better understanding of .NET
stuff.

This particular example is just demonstrating a particular technique. which
is not recommended.

Turns out that there does not appear to be a VB interface for Firefox or
Thundebird.

I'm just trying to replicate the book's examples and converting to VB .NET.
--
http://www.standards.com/; See Howard Kaikow's web site.
"Cor Ligthert" <no************@planet.nl> wrote in message
news:uC**************@TK2MSFTNGP09.phx.gbl...
Howard,

You mean without the process start?

Did you know that beside the process.Start and your method you can as well
start IE with this.

\\\
Public WithEvents Explorer As SHDocVw.InternetExplorer

Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Explorer = New SHDocVw.InternetExplorer
Explorer.Visible = True
Explorer.Navigate("http://msdn.microsoft.com")
End Sub
///

Cor

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ole Kramer, SFS GmbH | last post by:
We have installed PHP 5.0.1 on a Windows 2003 Server with IIS6 in ISAPI mode. The processing of .php files works fine with our basis version of the php.ini file. But, as soon as we edit the php.ini...
4
by: Bill | last post by:
Is it possible to somehow activate a page containing a php script by sending an email to a mailbox on the server? I have a script that sends out notification emails to an individual. He wants to...
0
by: mrjolly | last post by:
I have VB6 code that creates Excel v8 workbooks/worksheet/controls/macros based upon a text file. I have created a button on a worksheet that activates a piece of code. Unfortunately, the...
7
by: Pietro | last post by:
Hi at all, I am looking for a mean to test if a function work with a certain Browser or not. I'ld like to make a funcrion that return true if the browse is compatible with a certain funcrion or...
1
by: Jeppe 1971 | last post by:
Hi Does anyone know of a way to load a HTML-page and examine the document without activating the code? I am trying to create a search-function in javascript. The idea is that the function...
1
by: Patrick_Montana | last post by:
I am having a problem auto-activating a macro when I change data in a field on a form that is a combo box. I have a fair understanding of Microsoft Access but am not a programmer so I am trying to...
0
by: Robert Rotstein | last post by:
I want to write a SOAP extension that gets activated from both the client and the server. From whast I have read, this should be quite easy to do. Yet I can only activate it from the server. I...
0
by: Robert Rotstein | last post by:
I want to write a SOAP extension that gets activated from both the client and the server. But so far, I have only been able to activate from the server. I have a service (.asmx file) which...
2
by: Hrvoje Vrbanc | last post by:
Hello all! As I have only recently started to use native ASP.NET 2.0 data access controls (and found them to be very powerful), I have one question that I was unable to find the answer to: -...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.