Click here to Skip to main content
16,005,467 members
Home / Discussions / C#
   

C#

 
GeneralRe: pls help me with Globalization Pin
Skynyrd1-Dec-04 20:43
Skynyrd1-Dec-04 20:43 
GeneralCrystal report and Windows 98 Pin
GA-BOYZ1-Dec-04 20:14
GA-BOYZ1-Dec-04 20:14 
QuestionDataGridColumnStyle Question? Pin
Old Gun1-Dec-04 18:00
Old Gun1-Dec-04 18:00 
GeneralAVI Audio Compression Pin
Member 23318841-Dec-04 16:26
Member 23318841-Dec-04 16:26 
GeneralDataGrid accepts keypress event Pin
Rebecca Gao1-Dec-04 15:37
Rebecca Gao1-Dec-04 15:37 
GeneralRe: DataGrid accepts keypress event Pin
Daniel Turini1-Dec-04 20:19
Daniel Turini1-Dec-04 20:19 
GeneralRe: DataGrid accepts keypress event Pin
Rebecca Gao1-Dec-04 23:59
Rebecca Gao1-Dec-04 23:59 
Generalsuspending layout, useragents, and creating shortcuts... Pin
dkarlton1-Dec-04 15:31
dkarlton1-Dec-04 15:31 
I'm a total newbie in the land of C#, Visual Studio, .NET, and all-things-Microsoft. I'm trying to do a number of things with a C# application that has a builtin web browser (AxSHDocVw.AxWebBrowser). Most of the code I've inherited from someone else who knew a lot more about this stuff than I do, so I'm barely treading water at the moment.

If anyone can help shed some light on the following things, I'd be very grateful.

1) Is there a way to control the browser to not display until DocumentComplete has been called (i.e. READYSTATE_COMPLETE)? I want the page to *not* show anything until it's fully loaded, and can't figure out how to do this.

2) Is there a way to modify the UserAgent sent by the browser? Some of the docs have suggested (at least in C++ land) that in the Navigate() method I can postpend to the header argument to add things, such as the user agent. However, I'm not sure that a) this works, or b) what the appropriate syntax is in calling this from C#. I've tried just throwing in a string argument, but am not 100% sure of the syntax, nor did it seem to affect anything.

I've also seen:

http://support.microsoft.com/kb/q183412/

but don't know how I can do something similar in my project.

3) I've tried, unsuccessfully, to make a call to create a desktop shortcut using IWshRuntimeLibrary. Here's my code:

WshShell shell = new WshShell();
IWshShortcut link = (IWshShortcut)shell.CreateShortcut(title);
link.TargetPath = url;
link.Save();

This always throws an exception, even when the app is being run by an administrator account. It's a System.Runtime.InteropServices.COMException, and the message is just "Exception occurred." I took this code directly from:

http://www.codeproject.com/dotnet/shelllink.asp

Any idea what might be going wrong here?

Thanks much. Sorry if these questions are too broad. Let me know if I can be more specific.
QuestionHow to install ISAM Pin
Anonymous1-Dec-04 15:00
Anonymous1-Dec-04 15:00 
AnswerRe: How to install ISAM Pin
Dave Kreskowiak2-Dec-04 1:34
mveDave Kreskowiak2-Dec-04 1:34 
GeneralRounding off decimals Pin
Anonymous1-Dec-04 11:45
Anonymous1-Dec-04 11:45 
GeneralRe: Rounding off decimals Pin
Christian Graus1-Dec-04 12:37
protectorChristian Graus1-Dec-04 12:37 
GeneralRe: Rounding off decimals Pin
User 103263711-Dec-04 12:55
User 103263711-Dec-04 12:55 
Generalshadows please help Pin
aquahawk1-Dec-04 10:53
aquahawk1-Dec-04 10:53 
GeneralHtml Editor and Mail Program Pin
Dirso1-Dec-04 10:15
Dirso1-Dec-04 10:15 
GeneralRe: Html Editor and Mail Program Pin
cobyjone1-Dec-04 14:01
cobyjone1-Dec-04 14:01 
GeneralRe: Html Editor and Mail Program Pin
Dirso6-Dec-04 23:35
Dirso6-Dec-04 23:35 
Generalcaret position in a being edited Node Pin
TyronX1-Dec-04 10:03
TyronX1-Dec-04 10:03 
GeneralRe: caret position in a being edited Node Pin
Dave Kreskowiak1-Dec-04 10:55
mveDave Kreskowiak1-Dec-04 10:55 
GeneralRe: caret position in a being edited Node Pin
TyronX1-Dec-04 11:03
TyronX1-Dec-04 11:03 
GeneralRe: caret position in a being edited Node Pin
TyronX2-Dec-04 7:54
TyronX2-Dec-04 7:54 
GeneralWindowsPrincipal in non-AD environment Pin
Mike Hodnick1-Dec-04 8:21
Mike Hodnick1-Dec-04 8:21 
Questionhow to rewrite xml file Pin
IvyLee1-Dec-04 8:15
IvyLee1-Dec-04 8:15 
AnswerRe: how to rewrite xml file Pin
Christian Graus1-Dec-04 9:49
protectorChristian Graus1-Dec-04 9:49 
GeneralDynamically naming tabs Pin
thepersonof1-Dec-04 7:49
thepersonof1-Dec-04 7: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.