Click here to Skip to main content
15,902,939 members
Home / Discussions / C#
   

C#

 
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 
GeneralAnyone? Pin
leppie11-Aug-02 2:42
leppie11-Aug-02 2:42 
GeneralRe: Define structs in C# Pin
Eric Gunnerson (msft)12-Aug-02 6:42
Eric Gunnerson (msft)12-Aug-02 6:42 
GeneralRe: Define structs in C# Pin
leppie12-Aug-02 12:19
leppie12-Aug-02 12:19 
Generali install net frameworksdk Pin
imran_rafique9-Aug-02 21:41
imran_rafique9-Aug-02 21:41 
GeneralRe: i install net frameworksdk Pin
leppie9-Aug-02 21:58
leppie9-Aug-02 21:58 
GeneralRe: i install net frameworksdk Pin
imran_rafique9-Aug-02 22:53
imran_rafique9-Aug-02 22:53 
GeneralRe: i install net frameworksdk Pin
leppie9-Aug-02 23:09
leppie9-Aug-02 23:09 
GeneralRe: i install net frameworksdk Pin
imran_rafique10-Aug-02 10:34
imran_rafique10-Aug-02 10:34 
GeneralRe: i install net frameworksdk Pin
imran_rafique10-Aug-02 11:09
imran_rafique10-Aug-02 11:09 
GeneralRe: i install net frameworksdk Pin
leppie10-Aug-02 11:22
leppie10-Aug-02 11:22 
Questionhow to click a button Pin
imran_rafique9-Aug-02 21:02
imran_rafique9-Aug-02 21:02 
Questionhow to click a button Pin
imran_rafique9-Aug-02 10:47
imran_rafique9-Aug-02 10:47 
AnswerRe: how to click a button Pin
Nick Parker9-Aug-02 10:52
protectorNick Parker9-Aug-02 10:52 
GeneralRe: how to click a button Pin
Rama Krishna Vavilala9-Aug-02 12:07
Rama Krishna Vavilala9-Aug-02 12:07 

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.