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

C#

 
Generalsingleton Pin
lcarriere23-Dec-04 18:14
lcarriere23-Dec-04 18:14 
GeneralRe: singleton Pin
Heath Stewart23-Dec-04 20:20
protectorHeath Stewart23-Dec-04 20:20 
GeneralRe: singleton Pin
lcarriere24-Dec-04 4:06
lcarriere24-Dec-04 4:06 
GeneralRe: singleton Pin
Heath Stewart27-Dec-04 10:17
protectorHeath Stewart27-Dec-04 10:17 
GeneralRe: singleton Pin
lcarriere27-Dec-04 11:29
lcarriere27-Dec-04 11:29 
Generalsuspending layout, useragents, and creating shortcuts... Pin
dkarlton23-Dec-04 15:36
dkarlton23-Dec-04 15:36 
GeneralRe: suspending layout, useragents, and creating shortcuts... Pin
Heath Stewart23-Dec-04 20:48
protectorHeath Stewart23-Dec-04 20:48 
GeneralRe: suspending layout, useragents, and creating shortcuts... Pin
dkarlton27-Dec-04 14:32
dkarlton27-Dec-04 14:32 
Thanks for the info, incredibly helpful.

1) If it's not possible to suspend layout during document load of the browser control, can you recommend a good way to "hide" it until it's finished? Currently, I am using this:

<br />
[DllImport("User32")] 	 <br />
private static extern bool SendMessage(IntPtr hWnd, int msg, int wParam, int lParam);<br />
<br />
private bool FreezePainting { <br />
  set { <br />
    if (value && IsHandleCreated && this.Visible) <br />
      SendMessage(Handle, WM_SETREDRAW, 0, 0); <br />
    if (!value) { 					      SendMessage(Handle, WM_SETREDRAW, 1, 0); <br />
      Invalidate(true);<br />
    } <br />
  } <br />
}<br />


I then just call FreezePainting at NavigateComplete and DocumentComplete. The problem is that the app is essentially "dead" to input during the load. Any novel ideas?

2) I'm a little unclear on how to correctly marshal the argument, for overriding the user agent. I wasn't sure if I should just pass the string[] as the last argument, or if I need to additionally declare marshaling. I tried just simply passing the string[] argument, but it seemed to have no effect. I assume I need to do more than this. Although I think I understand conceptually what is required to bridge the gap between C# code and unmanaged libraries, I'm not sure how to actually do it.

3) I got the shortcut creation to work. The link you gave was actually the same one I had indicated before, as well. The problem I had been having the entire time is that the link title apparently must end with ".lnk". I wasn't aware of this, and never saw this in any documentation. It was just throwing an exception. So one problem down... Wink | ;-)

Thanks. Appreciate the help!

David
GeneralRe: suspending layout, useragents, and creating shortcuts... Pin
Heath Stewart27-Dec-04 19:19
protectorHeath Stewart27-Dec-04 19:19 
GeneralRe: suspending layout, useragents, and creating shortcuts... Pin
Heath Stewart28-Dec-04 5:09
protectorHeath Stewart28-Dec-04 5:09 
GeneralRe: suspending layout, useragents, and creating shortcuts... Pin
dkarlton28-Dec-04 8:28
dkarlton28-Dec-04 8:28 
GeneralRe: suspending layout, useragents, and creating shortcuts... Pin
Heath Stewart28-Dec-04 8:43
protectorHeath Stewart28-Dec-04 8:43 
GeneralRe: suspending layout, useragents, and creating shortcuts... Pin
dkarlton14-Jan-05 14:44
dkarlton14-Jan-05 14:44 
GeneralRe: suspending layout, useragents, and creating shortcuts... Pin
dkarlton29-Mar-05 5:14
dkarlton29-Mar-05 5:14 
GeneralNo ToolBarButton images in runtime Pin
Skynyrd23-Dec-04 13:30
Skynyrd23-Dec-04 13:30 
GeneralRe: No ToolBarButton images in runtime Pin
Heath Stewart23-Dec-04 20:49
protectorHeath Stewart23-Dec-04 20:49 
GeneralRe: No ToolBarButton images in runtime Pin
Skynyrd24-Dec-04 0:54
Skynyrd24-Dec-04 0:54 
GeneralSendMessage issue Pin
Aviv Halperin23-Dec-04 10:32
Aviv Halperin23-Dec-04 10:32 
GeneralRe: SendMessage issue Pin
Matt Gerrans23-Dec-04 11:30
Matt Gerrans23-Dec-04 11:30 
GeneralRe: SendMessage issue Pin
Aviv Halperin23-Dec-04 13:12
Aviv Halperin23-Dec-04 13:12 
GeneralRe: SendMessage issue Pin
Heath Stewart23-Dec-04 20:57
protectorHeath Stewart23-Dec-04 20:57 
GeneralRe: SendMessage issue Pin
Aviv Halperin24-Dec-04 4:02
Aviv Halperin24-Dec-04 4:02 
GeneralRe: SendMessage issue Pin
Heath Stewart27-Dec-04 10:12
protectorHeath Stewart27-Dec-04 10:12 
GeneralRe: SendMessage issue Pin
Aviv Halperin27-Dec-04 20:41
Aviv Halperin27-Dec-04 20:41 
GeneralRe: SendMessage issue Pin
Heath Stewart28-Dec-04 5:01
protectorHeath Stewart28-Dec-04 5:01 

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.