Click here to Skip to main content
15,867,308 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionExtended splitpanel that supports multiple panels? Pin
Daniel Jansson28-Aug-08 5:10
Daniel Jansson28-Aug-08 5:10 
AnswerRe: Extended splitpanel that supports multiple panels? Pin
led mike28-Aug-08 9:10
led mike28-Aug-08 9:10 
GeneralRe: Extended splitpanel that supports multiple panels? Pin
Daniel Jansson28-Aug-08 9:42
Daniel Jansson28-Aug-08 9:42 
GeneralRe: Extended splitpanel that supports multiple panels? Pin
led mike29-Aug-08 4:56
led mike29-Aug-08 4:56 
QuestionDifference between right and left control/shift Pin
pbalaga28-Aug-08 1:37
pbalaga28-Aug-08 1:37 
AnswerRe: Difference between right and left control/shift Pin
Wendelius28-Aug-08 5:07
mentorWendelius28-Aug-08 5:07 
AnswerRe: Difference between right and left control/shift Pin
Alan N28-Aug-08 6:30
Alan N28-Aug-08 6:30 
AnswerRe: Difference between right and left control/shift Pin
pbalaga28-Aug-08 8:58
pbalaga28-Aug-08 8:58 
Hi again,

thanks for your replies. KeyEventArgs.Modifiers can't discern left and right controls, I tried. The same concerns WM_KEYDOWN. 'Wparam' value passed with WM_KEYDOWN is surprisingly identical not only for e.g. control key. I'm wondering why pressing right alt (RMenu) resulted in the same event code as pressing a control key.

However, I came across some info about native methods in winapi programming, with which left and right keys can be discerned. These are:

GetAsyncKeyState() and GetKeyState()

They return the state of a certain key with needed distinction. With some indirect code, it is possible to find out whether left or right key was pressed.

But there comes the problem again (mentioned above): when I press right alt, firstly, the WndProc method gets a message as if the left control was pressed. Secondly, a KeyDown message for right alt is passed. Why is that so strange?
GeneralRe: Difference between right and left control/shift Pin
Wendelius28-Aug-08 9:51
mentorWendelius28-Aug-08 9:51 
GeneralRe: Difference between right and left control/shift Pin
pbalaga28-Aug-08 10:04
pbalaga28-Aug-08 10:04 
GeneralRe: Difference between right and left control/shift Pin
Wendelius28-Aug-08 10:17
mentorWendelius28-Aug-08 10:17 
GeneralRe: Difference between right and left control/shift Pin
pbalaga29-Aug-08 1:54
pbalaga29-Aug-08 1:54 
GeneralRe: Difference between right and left control/shift Pin
Wendelius29-Aug-08 7:05
mentorWendelius29-Aug-08 7:05 
Questiondatagrid in C#.net Pin
balu1234527-Aug-08 19:56
balu1234527-Aug-08 19:56 
AnswerRe: datagrid in C#.net Pin
Ajay.k_Singh27-Aug-08 20:15
Ajay.k_Singh27-Aug-08 20:15 
Questionvb.net datagrid cell merging Pin
mmel_g27-Aug-08 19:51
mmel_g27-Aug-08 19:51 
AnswerRe: vb.net datagrid cell merging Pin
John_Adams2-Sep-08 19:55
John_Adams2-Sep-08 19:55 
QuestionHow can I include analog clock in GUI(vc) Pin
AhsanShah22127-Aug-08 17:39
AhsanShah22127-Aug-08 17:39 
AnswerRe: How can I include analog clock in GUI(vc) Pin
Ajay.k_Singh28-Aug-08 2:15
Ajay.k_Singh28-Aug-08 2:15 
QuestionLoading a big file into the Tree Listview Pin
Soma Shekhar27-Aug-08 8:50
Soma Shekhar27-Aug-08 8:50 
AnswerRe: Loading a big file into the Tree Listview Pin
pbalaga28-Aug-08 9:51
pbalaga28-Aug-08 9:51 
QuestionApplication threading issue? Pin
humblepgmr27-Aug-08 5:44
humblepgmr27-Aug-08 5:44 
AnswerRe: Application threading issue? Pin
led mike27-Aug-08 6:16
led mike27-Aug-08 6:16 
GeneralRe: Application threading issue? Pin
humblepgmr27-Aug-08 7:11
humblepgmr27-Aug-08 7:11 
QuestionProblem with mdi form controls Pin
pradeep kumarappagari27-Aug-08 4:54
pradeep kumarappagari27-Aug-08 4:54 

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.