Click here to Skip to main content
15,917,795 members
Home / Discussions / C#
   

C#

 
GeneralRe: Startup hidden Pin
Joel Matthias12-Aug-02 8:17
Joel Matthias12-Aug-02 8:17 
GeneralRe: Startup hidden Pin
Nick Parker12-Aug-02 11:54
protectorNick Parker12-Aug-02 11:54 
GeneralRe: Startup hidden Pin
Christopher Lord13-Aug-02 7:45
Christopher Lord13-Aug-02 7:45 
GeneralRe: Startup hidden Pin
Nick Parker13-Aug-02 7:50
protectorNick Parker13-Aug-02 7:50 
GeneralRe: Startup hidden Pin
Eric Gunnerson (msft)12-Aug-02 6:45
Eric Gunnerson (msft)12-Aug-02 6:45 
GeneralRe: Startup hidden Pin
leppie12-Aug-02 8:55
leppie12-Aug-02 8:55 
GeneralRe: Startup hidden Pin
Joel Matthias12-Aug-02 11:58
Joel Matthias12-Aug-02 11:58 
GeneralRe: Startup hidden Pin
leppie12-Aug-02 12:23
leppie12-Aug-02 12:23 
GeneralForm.TopMost Pin
manson10-Aug-02 12:21
manson10-Aug-02 12:21 
GeneralRe: Form.TopMost Pin
Anonymous10-Aug-02 17:11
Anonymous10-Aug-02 17:11 
GeneralRe: Form.TopMost Pin
James T. Johnson10-Aug-02 21:44
James T. Johnson10-Aug-02 21:44 
GeneralRe: Form.TopMost Pin
Rama Krishna Vavilala11-Aug-02 5:22
Rama Krishna Vavilala11-Aug-02 5:22 
GeneralRe: Form.TopMost Pin
manson11-Aug-02 7:31
manson11-Aug-02 7:31 
QuestionDataGrid question (alternatively: how can I send a keydown event)? Pin
Domenic Denicola10-Aug-02 11:32
Domenic Denicola10-Aug-02 11:32 
AnswerRe: DataGrid question (alternatively: how can I send a keydown event)? Pin
David Stone12-Aug-02 5:38
sitebuilderDavid Stone12-Aug-02 5:38 
GeneralTool Windows and Card Layout Pin
Anonymous10-Aug-02 11:05
Anonymous10-Aug-02 11:05 
GeneralRe: Tool Windows and Card Layout Pin
Domenic Denicola10-Aug-02 11:20
Domenic Denicola10-Aug-02 11:20 
GeneralRe: Tool Windows and Card Layout Pin
Anonymous10-Aug-02 21:32
Anonymous10-Aug-02 21:32 
Generalvb variants in c# Pin
Anonymous10-Aug-02 9:33
Anonymous10-Aug-02 9:33 
GeneralRe: vb variants in c# Pin
Jonathan Tan12-Aug-02 1:09
Jonathan Tan12-Aug-02 1:09 
QuestionDatagrid sorted, how to refresh data? Pin
Bar10-Aug-02 7:38
Bar10-Aug-02 7:38 
GeneralRegisterHotKey, small problem Pin
Anonymous10-Aug-02 0:15
Anonymous10-Aug-02 0:15 
Hi all,

I'm new on C# and I get quite many problems.

One of them is how to register hotkeys with C#.

I entered this line in my class declaration :

[DllImport("user32.dll")] private static extern bool RegisterHotKey(long hWnd, int id, int fsModifiers, int vk);

when I run this line whatever the letter is, it doesn't work and return me false.

bool b = RegisterHotKey(GetForegroundWindow(),100,2, 'J'); // 2 = VK_CONTROL

Please help, thanks all.
Nd.

For those who could get it working, don't forget to unregister your hotkey : bool UnregisterHotKey(long hWnd, int id);
GeneralRe: RegisterHotKey, small problem Pin
leppie10-Aug-02 0:27
leppie10-Aug-02 0:27 
GeneralRe: RegisterHotKey, small problem Pin
Anonymous10-Aug-02 7:01
Anonymous10-Aug-02 7:01 
GeneralDefine structs in C# Pin
leppie9-Aug-02 23:24
leppie9-Aug-02 23:24 

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.