Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
GeneralDocument/view model in C#.. Pin
hammackj22-Dec-03 15:20
hammackj22-Dec-03 15:20 
GeneralRe: Document/view model in C#.. Pin
Heath Stewart23-Dec-03 3:08
protectorHeath Stewart23-Dec-03 3:08 
QuestionHow to program ActiveX control in .NET Pin
young_nacs22-Dec-03 14:11
young_nacs22-Dec-03 14:11 
AnswerRe: How to program ActiveX control in .NET Pin
Heath Stewart23-Dec-03 3:02
protectorHeath Stewart23-Dec-03 3:02 
Generalemulate console mode. Pin
Ray Gregory22-Dec-03 12:13
Ray Gregory22-Dec-03 12:13 
GeneralRe: emulate console mode. Pin
Heath Stewart23-Dec-03 2:54
protectorHeath Stewart23-Dec-03 2:54 
QuestionHow to know at any time the Shift or Control key up or down Pin
god4k22-Dec-03 11:49
god4k22-Dec-03 11:49 
AnswerRe: How to know at any time the Shift or Control key up or down Pin
Heath Stewart22-Dec-03 11:56
protectorHeath Stewart22-Dec-03 11:56 
Using Windows Forms, this is pretty simple. You can either get this information in the KeyEventArgs, or using the Control.ModifierKeys static property.

Since you're not using Windows Forms, you'll have to P/Invoke the GetKeyState function. You can either use the System.Windows.Forms.Keys enum, or if you don't want the overhead of referencing the Windows Forms assembly for a console app, you can find the VK_XXX constant values in the winuser.h header file.

See a previous reply I wrote here: http://www.codeproject.com/script/comments/forums.asp?msg=687790&forumid=1649&XtraIDs=1649&searchkw=GetKeyState&sd=9%2F23%2F2003&ed=12%2F22%2F2003#xx687790xx[^]

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
QuestionHow to format an integer into a string? Pin
Larry Antram22-Dec-03 11:37
Larry Antram22-Dec-03 11:37 
AnswerRe: How to format an integer into a string? Pin
Heath Stewart22-Dec-03 11:52
protectorHeath Stewart22-Dec-03 11:52 
GeneralRe: How to format an integer into a string? Pin
Larry Antram22-Dec-03 11:55
Larry Antram22-Dec-03 11:55 
GeneralRe: How to format an integer into a string? Pin
Heath Stewart22-Dec-03 12:01
protectorHeath Stewart22-Dec-03 12:01 
GeneralRe: How to format an integer into a string? Pin
J. Dunlap22-Dec-03 12:04
J. Dunlap22-Dec-03 12:04 
GeneralRe: How to format an integer into a string? Pin
Heath Stewart22-Dec-03 12:07
protectorHeath Stewart22-Dec-03 12:07 
GeneralRe: How to format an integer into a string? Pin
Nick Seng22-Dec-03 15:08
Nick Seng22-Dec-03 15:08 
GeneralRe: How to format an integer into a string? Pin
J. Dunlap22-Dec-03 15:09
J. Dunlap22-Dec-03 15:09 
AnswerRe: How to format an integer into a string? Pin
J. Dunlap22-Dec-03 12:02
J. Dunlap22-Dec-03 12:02 
GeneralXml serialization problem Pin
Wizard_0122-Dec-03 11:08
Wizard_0122-Dec-03 11:08 
GeneralRe: Xml serialization problem Pin
Heath Stewart22-Dec-03 11:12
protectorHeath Stewart22-Dec-03 11:12 
GeneralRe: Xml serialization problem Pin
Wizard_0122-Dec-03 11:26
Wizard_0122-Dec-03 11:26 
GeneralRe: Xml serialization problem Pin
Heath Stewart22-Dec-03 11:40
protectorHeath Stewart22-Dec-03 11:40 
GeneralRe: Xml serialization problem Pin
Wizard_0122-Dec-03 11:54
Wizard_0122-Dec-03 11:54 
GeneralRe: Xml serialization problem Pin
Heath Stewart22-Dec-03 11:59
protectorHeath Stewart22-Dec-03 11:59 
GeneralRe: Xml serialization problem Pin
J. Dunlap22-Dec-03 21:33
J. Dunlap22-Dec-03 21:33 
GeneralRe: Xml serialization problem Pin
Heath Stewart23-Dec-03 2:40
protectorHeath Stewart23-Dec-03 2:40 

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.