Click here to Skip to main content
15,559,491 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionRich Text Box Font Setting Question Pin
Siddhartha S.3-Oct-08 0:00
Siddhartha S.3-Oct-08 0:00 
QuestionRe: Rich Text Box Font Setting Question Pin
led mike3-Oct-08 5:39
led mike3-Oct-08 5:39 
AnswerRe: Rich Text Box Font Setting Question Pin
Siddhartha S.5-Oct-08 18:31
Siddhartha S.5-Oct-08 18:31 
Questionhow to get text with api ??? Pin
TALHAKOSEN2-Oct-08 12:23
TALHAKOSEN2-Oct-08 12:23 
AnswerRe: how to get text with api ??? Pin
Giorgi Dalakishvili3-Oct-08 0:47
mentorGiorgi Dalakishvili3-Oct-08 0:47 
GeneralRe: how to get text with api ??? Pin
TALHAKOSEN3-Oct-08 4:04
TALHAKOSEN3-Oct-08 4:04 
GeneralRe: how to get text with api ??? Pin
Giorgi Dalakishvili3-Oct-08 4:09
mentorGiorgi Dalakishvili3-Oct-08 4:09 
GeneralRe: how to get text with api ??? Pin
TALHAKOSEN3-Oct-08 5:41
TALHAKOSEN3-Oct-08 5: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 7:07
TALHAKOSEN3-Oct-08 7:07 
GeneralRe: how to get text with api ??? Pin
led mike3-Oct-08 5:35
led mike3-Oct-08 5:35 
GeneralRe: how to get text with api ??? Pin
Giorgi Dalakishvili3-Oct-08 6:24
mentorGiorgi Dalakishvili3-Oct-08 6:24 
GeneralRe: how to get text with api ??? Pin
led mike3-Oct-08 6:30
led mike3-Oct-08 6:30 
GeneralRe: how to get text with api ??? Pin
TALHAKOSEN3-Oct-08 7:05
TALHAKOSEN3-Oct-08 7:05 
AnswerRe: how to get text with api ??? Pin
WinSolution5-Nov-08 19:30
WinSolution5-Nov-08 19:30 
GeneralRe: how to get text with api ??? Pin
TALHAKOSEN6-Nov-08 4:45
TALHAKOSEN6-Nov-08 4:45 
GeneralRe: how to get text with api ??? Pin
WinSolution7-Nov-08 3:16
WinSolution7-Nov-08 3:16 
GeneralRe: how to get text with api ??? Pin
TALHAKOSEN7-Nov-08 3:18
TALHAKOSEN7-Nov-08 3:18 
GeneralRe: how to get text with api ??? Pin
WinSolution7-Nov-08 20:20
WinSolution7-Nov-08 20:20 
GeneralRe: how to get text with api ??? Pin
TALHAKOSEN9-Nov-08 22:43
TALHAKOSEN9-Nov-08 22:43 
GeneralRe: how to get text with api ??? Pin
WinSolution10-Nov-08 20:34
WinSolution10-Nov-08 20:34 
GeneralRe: how to get text with api ??? Pin
TALHAKOSEN10-Nov-08 21:46
TALHAKOSEN10-Nov-08 21:46 
GeneralRe: how to get text with api ??? Pin
WinSolution11-Nov-08 6:29
WinSolution11-Nov-08 6:29 
QuestionQuery Designer Pin
Mohammad Al Hoss2-Oct-08 1:05
Mohammad Al Hoss2-Oct-08 1:05 
AnswerRe: Query Designer Pin
Giorgi Dalakishvili2-Oct-08 1:23
mentorGiorgi Dalakishvili2-Oct-08 1:23 
GeneralRe: Query Designer Pin
Paul Conrad3-Oct-08 7:38
professionalPaul Conrad3-Oct-08 7:38 

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.