Click here to Skip to main content
16,013,465 members
Home / Discussions / C#
   

C#

 
GeneralRe: Yahoo and C# Pin
eggie519-Jun-04 16:46
eggie519-Jun-04 16:46 
GeneralRe: Yahoo and C# Pin
Heath Stewart20-Jun-04 9:46
protectorHeath Stewart20-Jun-04 9:46 
GeneralRe: Yahoo and C# Pin
MeterMan20-Jun-04 10:43
MeterMan20-Jun-04 10:43 
GeneralRe: Yahoo and C# Pin
eggie519-Jun-04 17:49
eggie519-Jun-04 17:49 
GeneralRe: Yahoo and C# Pin
MeterMan19-Jun-04 18:25
MeterMan19-Jun-04 18:25 
GeneralRe: Yahoo and C# Pin
eggie519-Jun-04 19:21
eggie519-Jun-04 19:21 
GeneralRe: Yahoo and C# Pin
MeterMan20-Jun-04 16:38
MeterMan20-Jun-04 16:38 
GeneralRe: Yahoo and C# Pin
eggie519-Jun-04 19:11
eggie519-Jun-04 19:11 
That will do it. Thanks to pinvoke.net.

public static String GetWindowText(IntPtr hWnd)
{
    IntPtr txtLength;
    IntPtr retValue;
    IntPtr zeroVal = new IntPtr(0);


    //Get the length of the text
    retValue = SendMessage(hWnd,WM_GETTEXTLENGTH,zeroVal,zeroVal);


    //Setup the size of the sb
    txtLength = retValue;
    StringBuilder sb = new StringBuilder(txtLength.ToInt32() + 2);


    //Get the text of the window/control
    retValue =  SendMessage(hWnd, WM_GETTEXT, txtLength, sb);


    //Return a string
    return sb.ToString();
}


/\ |_ E X E GG
GeneralRe: saving collection automaticaly into form`s code file. Pin
Mazdak18-Jun-04 22:18
Mazdak18-Jun-04 22:18 
GeneralRe: saving collection automaticaly into form`s code file. Pin
Member 114126618-Jun-04 22:52
Member 114126618-Jun-04 22:52 
QuestionNewbie Q: C# ASPX Popup? Pin
Joel, Just Joel18-Jun-04 16:04
Joel, Just Joel18-Jun-04 16:04 
AnswerRe: Newbie Q: C# ASPX Popup? Pin
Heath Stewart18-Jun-04 18:37
protectorHeath Stewart18-Jun-04 18:37 
GeneralRe: Newbie Q: C# ASPX Popup? Pin
Joel, Just Joel21-Jun-04 15:34
Joel, Just Joel21-Jun-04 15:34 
GeneralFind me that record... Pin
aberger5618-Jun-04 12:05
aberger5618-Jun-04 12:05 
GeneralRe: Find me that record... Pin
Nick Parker18-Jun-04 13:36
protectorNick Parker18-Jun-04 13:36 
GeneralRe: Find me that record... Pin
aberger5619-Jun-04 15:33
aberger5619-Jun-04 15:33 
GeneralHelp MapXtreme Pin
hxxbin18-Jun-04 11:18
hxxbin18-Jun-04 11:18 
GeneralRe: Help MapXtreme Pin
Dave Kreskowiak18-Jun-04 12:49
mveDave Kreskowiak18-Jun-04 12:49 
Generalreleasing PictureBox's Image file handle Pin
ABean18-Jun-04 9:45
ABean18-Jun-04 9:45 
GeneralRe: releasing PictureBox's Image file handle Pin
ABean18-Jun-04 10:12
ABean18-Jun-04 10:12 
GeneralRe: releasing PictureBox's Image file handle Pin
Dave Kreskowiak18-Jun-04 12:47
mveDave Kreskowiak18-Jun-04 12:47 
GeneralCatch and exit Pin
StephenMcAllister18-Jun-04 9:06
StephenMcAllister18-Jun-04 9:06 
GeneralRe: Catch and exit Pin
Nick Parker18-Jun-04 9:39
protectorNick Parker18-Jun-04 9:39 
GeneralEver growing threads and handles Pin
mitchellguzman18-Jun-04 8:49
professionalmitchellguzman18-Jun-04 8:49 
GeneralRe: Ever growing threads and handles Pin
Daniel Turini18-Jun-04 9:42
Daniel Turini18-Jun-04 9:42 

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.