PC Review


Reply
Thread Tools Rate Thread

Activating a broser

 
 
Howard Kaikow
Guest
Posts: n/a
 
      9th Mar 2005
The following will active IE.

Dim t As Type = Type.GetTypeFromProgID("InternetExplorer.Application")
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.


 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      10th Mar 2005
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


 
Reply With Quote
 
Howard Kaikow
Guest
Posts: n/a
 
      10th Mar 2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hosting Wpf Broser application asis padhy Microsoft ASP .NET 0 27th Oct 2009 07:20 AM
broser saving files Jacob Windows XP Internet Explorer 1 27th Jan 2004 10:25 PM
sending e-mail from my Broser ed Windows XP Internet Explorer 0 3rd Oct 2003 02:43 PM
problem writing in broser Eitan Windows XP Networking 0 5th Sep 2003 01:54 PM
can't open new broser window Adam Carroll Windows XP Internet Explorer 1 5th Sep 2003 12:47 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:42 PM.