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

C#

 
GeneralRe: Property in custom control inserts unnecessary lines in designer code Pin
jbrammeier13-Feb-09 7:46
jbrammeier13-Feb-09 7:46 
GeneralRe: Property in custom control inserts unnecessary lines in designer code Pin
jbrammeier13-Feb-09 10:47
jbrammeier13-Feb-09 10:47 
GeneralRe: Property in custom control inserts unnecessary lines in designer code Pin
DaveyM6913-Feb-09 23:48
professionalDaveyM6913-Feb-09 23:48 
QuestionHow to add wmp.ocx file to toolbox? Pin
Sokka9313-Feb-09 5:16
Sokka9313-Feb-09 5:16 
AnswerRe: How to add wmp.ocx file to toolbox? Pin
Sokka9314-Feb-09 4:16
Sokka9314-Feb-09 4:16 
QuestionGet Datagrid handle and get invidual cells handles Pin
Brian Garnica13-Feb-09 4:45
Brian Garnica13-Feb-09 4:45 
AnswerRe: Get Datagrid handle and get invidual cells handles Pin
Henry Minute13-Feb-09 5:38
Henry Minute13-Feb-09 5:38 
GeneralRe: Get Datagrid handle and get invidual cells handles Pin
Brian Garnica13-Feb-09 6:07
Brian Garnica13-Feb-09 6:07 
Thanks for you reply.

Sure. I will tell you the complete matter...

I'm working with CCF 2008, then i have an hosted application and this launch any actions at double click on a specific datagrid. I build a global hook to trap double-click event on datagrid and get the row (by the handle). But on debug, the returned handle not corresponding to datagrid even a SCROLLBAR. i don't understand. It works fine at another controls, on textbox, on forms, but not on datagrid.

There is the code line;

private void MouseHook1_MouseDoubleClick1(object sender, System.Windows.Forms.MouseEventArgs e)
{
///It call, is only for get the control caption. But obviously there not have, because it is a scrollbar!!!!
StringBuilder build = new StringBuilder(256);
OpenWindowGetter.GetWindowText((IntPtr)sender, build, 256);

///Here, i call the method that get the child controls captions (or classes names)
List<string> strHijos = OpenWindowGetter.GetChildWindows((IntPtr)sender);
....
}

And ever, this return SCROLLBAR in generic list.

Please, tell me if you want to view more code.

Oh. Sorry for my english. I'm not too expierenced with it. Blush | :O
GeneralRe: Get Datagrid handle and get invidual cells handles Pin
Henry Minute13-Feb-09 6:34
Henry Minute13-Feb-09 6:34 
GeneralRe: Get Datagrid handle and get invidual cells handles Pin
Brian Garnica13-Feb-09 6:49
Brian Garnica13-Feb-09 6:49 
QuestionEvents Pin
CodingYoshi13-Feb-09 4:37
CodingYoshi13-Feb-09 4:37 
AnswerRe: Events Pin
Calin Tatar13-Feb-09 4:50
Calin Tatar13-Feb-09 4:50 
GeneralRe: Events Pin
Calin Tatar13-Feb-09 4:51
Calin Tatar13-Feb-09 4:51 
AnswerRe: Events Pin
CodingYoshi13-Feb-09 8:05
CodingYoshi13-Feb-09 8:05 
QuestionListView row background colour? Pin
kanchoette13-Feb-09 4:35
kanchoette13-Feb-09 4:35 
AnswerRe: ListView row background colour? Pin
musefan13-Feb-09 4:39
musefan13-Feb-09 4:39 
QuestionExtracting Icons from registry Pin
satsumatable13-Feb-09 4:06
satsumatable13-Feb-09 4:06 
AnswerRe: Extracting Icons from registry Pin
Calin Tatar13-Feb-09 4:54
Calin Tatar13-Feb-09 4:54 
QuestionAdding Calendar picker to a datagrid view Pin
Muammar©13-Feb-09 4:02
Muammar©13-Feb-09 4:02 
AnswerRe: Adding Calendar picker to a datagrid view Pin
vaghelabhavesh13-Feb-09 4:27
vaghelabhavesh13-Feb-09 4:27 
Questionhow to create the web config file? Pin
DEAR FRIENDS13-Feb-09 3:52
DEAR FRIENDS13-Feb-09 3:52 
AnswerRe: how to create the web config file? Pin
EliottA13-Feb-09 3:54
EliottA13-Feb-09 3:54 
AnswerRe: how to create the web config file? Pin
Calin Tatar13-Feb-09 3:54
Calin Tatar13-Feb-09 3:54 
AnswerRe: how to create the web config file? Pin
vaghelabhavesh13-Feb-09 3:58
vaghelabhavesh13-Feb-09 3:58 
QuestionCreate a XML file from Doc.txt Pin
abbd13-Feb-09 3:40
abbd13-Feb-09 3: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.