Click here to Skip to main content
15,881,882 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionHow to Display Owned Window without graying owner? Pin
Safdii5-Oct-08 1:28
Safdii5-Oct-08 1:28 
AnswerRe: How to Display Owned Window without graying owner? Pin
Thomas Stockwell5-Oct-08 6:07
professionalThomas Stockwell5-Oct-08 6:07 
QuestionRe: How to Display Owned Window without graying owner? [modified] Pin
Safdii6-Oct-08 23:17
Safdii6-Oct-08 23:17 
AnswerRe: How to Display Owned Window without graying owner? Pin
Thomas Stockwell10-Oct-08 4:35
professionalThomas Stockwell10-Oct-08 4:35 
QuestionHTML Editor Control & Grid Control Pin
Atlence3-Oct-08 22:40
Atlence3-Oct-08 22:40 
AnswerRe: HTML Editor Control & Grid Control Pin
Siddhartha S.5-Oct-08 17:57
Siddhartha S.5-Oct-08 17:57 
QuestionRich Text Box Font Setting Question Pin
Siddhartha S.2-Oct-08 23:00
Siddhartha S.2-Oct-08 23:00 
QuestionRe: Rich Text Box Font Setting Question Pin
led mike3-Oct-08 4:39
led mike3-Oct-08 4:39 
AnswerRe: Rich Text Box Font Setting Question Pin
Siddhartha S.5-Oct-08 17:31
Siddhartha S.5-Oct-08 17:31 
Questionhow to get text with api ??? Pin
TALHAKOSEN2-Oct-08 11:23
TALHAKOSEN2-Oct-08 11:23 
AnswerRe: how to get text with api ??? Pin
Giorgi Dalakishvili2-Oct-08 23:47
mentorGiorgi Dalakishvili2-Oct-08 23:47 
GeneralRe: how to get text with api ??? Pin
TALHAKOSEN3-Oct-08 3:04
TALHAKOSEN3-Oct-08 3:04 
GeneralRe: how to get text with api ??? Pin
Giorgi Dalakishvili3-Oct-08 3:09
mentorGiorgi Dalakishvili3-Oct-08 3:09 
GeneralRe: how to get text with api ??? Pin
TALHAKOSEN3-Oct-08 4:41
TALHAKOSEN3-Oct-08 4:41 
I am trying to find smt but i think i dont know exactly how to use that i wrote smt like that

public const int WM_GETTEXT = 0X00D;

[DllImport("USER32.DLL", CharSet = CharSet.Auto)]
public static extern int SendMessage(int hWnd, uint msg, int wparam, StringBuilder text);

[DllImport("User32.dll")]
public static extern int FindWindow(String lpClassName, String lpWindowName);

[DllImport("user32.dll")]
private static extern int FindWindowEx(int parentHandle, int childAfter, string className, string windowTitle);

hwnd = FindWindow(null, "Adobe Creative Suite 2 by cvs/SSG");

StringBuilder titletext = new StringBuilder(256);
StringBuilder artisttext = new StringBuilder(256);
StringBuilder timetext = new StringBuilder(256);
StringBuilder totaltimetext = new StringBuilder(256);

hwnd2 = FindWindowEx(hwnd, 0, "obj_BUTTON", "Activation");
hwnd3 = FindWindowEx(hwnd2, 0, "obj_EDIT", null);

MessageBox.Show( SendMessage(hwnd3, WM_GETTEXT, 256, 256).ToString());


i can handle the hwnd that i need in parent then child form. hwnd3 is the textbox's hwnd after that time how can i read what is written in that

thanks for everything i have...

Generalthats ok ! If somebody needs Pin
TALHAKOSEN3-Oct-08 6:07
TALHAKOSEN3-Oct-08 6:07 
GeneralRe: how to get text with api ??? Pin
led mike3-Oct-08 4:35
led mike3-Oct-08 4:35 
GeneralRe: how to get text with api ??? Pin
Giorgi Dalakishvili3-Oct-08 5:24
mentorGiorgi Dalakishvili3-Oct-08 5:24 
GeneralRe: how to get text with api ??? Pin
led mike3-Oct-08 5:30
led mike3-Oct-08 5:30 
GeneralRe: how to get text with api ??? Pin
TALHAKOSEN3-Oct-08 6:05
TALHAKOSEN3-Oct-08 6:05 
AnswerRe: how to get text with api ??? Pin
WinSolution5-Nov-08 18:30
WinSolution5-Nov-08 18:30 
GeneralRe: how to get text with api ??? Pin
TALHAKOSEN6-Nov-08 3:45
TALHAKOSEN6-Nov-08 3:45 
GeneralRe: how to get text with api ??? Pin
WinSolution7-Nov-08 2:16
WinSolution7-Nov-08 2:16 
GeneralRe: how to get text with api ??? Pin
TALHAKOSEN7-Nov-08 2:18
TALHAKOSEN7-Nov-08 2:18 
GeneralRe: how to get text with api ??? Pin
WinSolution7-Nov-08 19:20
WinSolution7-Nov-08 19:20 
GeneralRe: how to get text with api ??? Pin
TALHAKOSEN9-Nov-08 21:43
TALHAKOSEN9-Nov-08 21:43 

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.