Click here to Skip to main content
15,900,110 members
Home / Discussions / C#
   

C#

 
GeneralRe: finding a record in a table Pin
Heath Stewart24-Sep-04 15:01
protectorHeath Stewart24-Sep-04 15:01 
GeneralI remembered! Pin
eggie524-Sep-04 16:32
eggie524-Sep-04 16:32 
GeneralRe: I remembered! Pin
Heath Stewart25-Sep-04 9:19
protectorHeath Stewart25-Sep-04 9:19 
GeneralRe: I remembered! Pin
eggie525-Sep-04 11:08
eggie525-Sep-04 11:08 
GeneralRe: finding a record in a table Pin
Brian Delahunty25-Sep-04 0:04
Brian Delahunty25-Sep-04 0:04 
GeneralRe: finding a record in a table Pin
Heath Stewart25-Sep-04 9:24
protectorHeath Stewart25-Sep-04 9:24 
GeneralIE Hosted UserControl Pin
OBRon24-Sep-04 3:24
OBRon24-Sep-04 3:24 
GeneralRe: IE Hosted UserControl Pin
Heath Stewart24-Sep-04 6:02
protectorHeath Stewart24-Sep-04 6:02 
I've done quite a bit of work in this area dating way back to the .NET 1.0 beta days.

As far as hot keys, understand that only dialogs process characters and may or may not pass those messages to child controls, such as your UserControl. In the case of IE, it most likely won't because a site could hijack your settings (the web is a very dangerous place to visit, probably even more hostile than Iraq right now!). That would be my educated guess.

As far as visual styles, calling Application.EnableVisualStyles() must be done in an application - not your control. What this does is load a general manifest from the .NET Framework directory (ex: %WINDIR%\Microsoft.NET\Framework\v1.1.4322) BEFORE controls are created, which encapsulate the Windows Common Controls. Once those are loaded into an address space for a process and used by a particular module, that module cannot use two different versions (but the process can, IIRC).

You need to instead embed a manifest in your PE/COFF executable (not the assembly itself, rather, the manifest of resources) using a particular ID.

For starters, read my article Windows XP Visual Styles for Windows Forms[^], which describes the "old" way (still supported) of embedding manifests as Win32 resources. You'll also want to read Visual Styles[^] on MSDN.

Another article you may find interesting about making your embedded UserControl scriptable (as well as exposing events), take a look at a very old article of mine on a different site, User Controls for Winodws and the Web[^].

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
Generalinvisible items in combobox and listbox Pin
alvin@datell24-Sep-04 2:34
alvin@datell24-Sep-04 2:34 
GeneralRe: invisible items in combobox and listbox Pin
sreejith ss nair24-Sep-04 3:47
sreejith ss nair24-Sep-04 3:47 
GeneralRe: invisible items in combobox and listbox Pin
alvin@datell24-Sep-04 3:50
alvin@datell24-Sep-04 3:50 
GeneralRe: invisible items in combobox and listbox Pin
sreejith ss nair24-Sep-04 3:57
sreejith ss nair24-Sep-04 3:57 
GeneralRe: invisible items in combobox and listbox Pin
alvin@datell24-Sep-04 4:05
alvin@datell24-Sep-04 4:05 
GeneralRe: invisible items in combobox and listbox Pin
sreejith ss nair24-Sep-04 4:07
sreejith ss nair24-Sep-04 4:07 
GeneralRe: invisible items in combobox and listbox Pin
Filipe Peixinho11-Nov-04 10:19
Filipe Peixinho11-Nov-04 10:19 
GeneralWord_Counter Pin
sardonicus24-Sep-04 2:06
sardonicus24-Sep-04 2:06 
GeneralRe: Word_Counter Pin
Moon Boy24-Sep-04 2:17
Moon Boy24-Sep-04 2:17 
GeneralRe: Word_Counter Pin
sardonicus24-Sep-04 2:49
sardonicus24-Sep-04 2:49 
GeneralRe: Word_Counter Pin
exhaulted24-Sep-04 3:29
exhaulted24-Sep-04 3:29 
GeneralRe: Word_Counter Pin
sardonicus24-Sep-04 4:05
sardonicus24-Sep-04 4:05 
GeneralRe: Word_Counter Pin
Brian Delahunty24-Sep-04 3:30
Brian Delahunty24-Sep-04 3:30 
GeneralMinesweeper Pin
Moon Boy24-Sep-04 2:03
Moon Boy24-Sep-04 2:03 
GeneralRe: Minesweeper Pin
Heath Stewart24-Sep-04 5:48
protectorHeath Stewart24-Sep-04 5:48 
GeneralRe: Minesweeper Pin
Robert Rohde25-Sep-04 1:59
Robert Rohde25-Sep-04 1:59 
GeneralTitle size Pin
Ajmoda24-Sep-04 1:20
Ajmoda24-Sep-04 1:20 

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.