Click here to Skip to main content
15,895,370 members
Home / Discussions / C#
   

C#

 
GeneralRe: Deferred Calculations Pin
BernardYardley22-Jan-04 5:08
BernardYardley22-Jan-04 5:08 
GeneralRe: Deferred Calculations Pin
leppie22-Jan-04 6:21
leppie22-Jan-04 6:21 
General2 questions Pin
bouli22-Jan-04 2:41
bouli22-Jan-04 2:41 
GeneralRe: 2 questions Pin
Sune Trudslev22-Jan-04 4:25
professionalSune Trudslev22-Jan-04 4:25 
GeneralRe: 2 questions Pin
Heath Stewart22-Jan-04 4:54
protectorHeath Stewart22-Jan-04 4:54 
GeneralRe: 2 questions Pin
bouli22-Jan-04 5:32
bouli22-Jan-04 5:32 
GeneralProperly accessing ShDocVw interfaces... Pin
profoundwhispers22-Jan-04 0:57
profoundwhispers22-Jan-04 0:57 
GeneralRe: Properly accessing ShDocVw interfaces... Pin
Heath Stewart22-Jan-04 4:49
protectorHeath Stewart22-Jan-04 4:49 
First, an empty string ("") is not the same as null. For the null parameters, you should actually do something like this:
object missing = System.Reflection.Missing.Value;
object url = "http://www.google.com";
ie.Navigate2(ref url, ref missing, ref missing, ref missing, ref missing);
As you can see above, too, I use Navigate2. This is recommended by the IE Programming documentation.

As far as casting vs. new, you want to use casting. When you cast to an interface that is delcared as a RCW interface, this results in a QueryInterface of the object as you would do in C++ regarding COM. If null is returned, the object does not implement the interface.

There are several good articles about using the WebBrowser control. See the following search results for a few (especially the top ones): http://www.codeproject.com/info/search.asp?cats=3&cats=5&searchkw=WebBrowser[^].

Also, use the WebBrowser control by interop'ing shdocvw.dll to embed "Internet Explorer" in your application. Use the InternetExplorer object if you want to control a remote application instance through out-of-process automation.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
QuestionHow to display copyright sign (c in small circle,©) in Label control? Pin
god4k21-Jan-04 22:35
god4k21-Jan-04 22:35 
AnswerRe: How to display copyright sign (c in small circle,©) in Label control? Pin
Sune Trudslev22-Jan-04 0:35
professionalSune Trudslev22-Jan-04 0:35 
GeneralRe: How to display copyright sign (c in small circle,©) in Label control? Pin
leppie22-Jan-04 6:23
leppie22-Jan-04 6:23 
AnswerRe: How to display copyright sign (c in small circle,©) in Label control? Pin
Heath Stewart22-Jan-04 4:40
protectorHeath Stewart22-Jan-04 4:40 
GeneralRe: How to display copyright sign (c in small circle,©) in Label control? Pin
Bo Hunter22-Jan-04 12:31
Bo Hunter22-Jan-04 12:31 
GeneralRe: How to display copyright sign (c in small circle,©) in Label control? Pin
Heath Stewart22-Jan-04 12:44
protectorHeath Stewart22-Jan-04 12:44 
GeneralRe: How to display copyright sign (c in small circle,©) in Label control? Pin
Bo Hunter22-Jan-04 15:57
Bo Hunter22-Jan-04 15:57 
GeneralWinForms DataGrid data display limit Pin
Rakesh Rajan21-Jan-04 18:11
Rakesh Rajan21-Jan-04 18:11 
GeneralRe: WinForms DataGrid data display limit Pin
Heath Stewart21-Jan-04 18:51
protectorHeath Stewart21-Jan-04 18:51 
GeneralRender HTML Pin
Shaun Becker21-Jan-04 15:10
Shaun Becker21-Jan-04 15:10 
GeneralRe: Render HTML Pin
Nick Parker21-Jan-04 17:20
protectorNick Parker21-Jan-04 17:20 
GeneralProcess Owner and Parent Pin
jparsons21-Jan-04 13:34
jparsons21-Jan-04 13:34 
GeneralRe: Process Owner and Parent Pin
Heath Stewart21-Jan-04 18:34
protectorHeath Stewart21-Jan-04 18:34 
GeneralRe: Process Owner and Parent Pin
Jose Fco Bonnin21-Jan-04 23:34
Jose Fco Bonnin21-Jan-04 23:34 
GeneralYet another C# Quiz Pin
5.5 cents21-Jan-04 13:04
suss5.5 cents21-Jan-04 13:04 
GeneralClickity Pin
Colin Angus Mackay21-Jan-04 13:38
Colin Angus Mackay21-Jan-04 13:38 
GeneralRe: Yet another C# Quiz Pin
Colin Angus Mackay21-Jan-04 13:49
Colin Angus Mackay21-Jan-04 13:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.