Click here to Skip to main content
16,008,299 members
Home / Discussions / C#
   

C#

 
GeneralRe: active ipaddress Pin
Dave Kreskowiak26-Jun-05 9:20
mveDave Kreskowiak26-Jun-05 9:20 
Generalabout Gina in XP Pin
Veelone26-Jun-05 2:24
Veelone26-Jun-05 2:24 
GeneralRe: about Gina in XP Pin
Sebastian Schneider26-Jun-05 5:42
Sebastian Schneider26-Jun-05 5:42 
Generaladd method to control Pin
xrado25-Jun-05 23:53
xrado25-Jun-05 23:53 
GeneralRe: add method to control Pin
xrado27-Jun-05 6:40
xrado27-Jun-05 6:40 
GeneralI need a code.. Pin
reaza25-Jun-05 23:41
reaza25-Jun-05 23:41 
GeneralRe: I need a code.. Pin
MandMG26-Jun-05 11:14
MandMG26-Jun-05 11:14 
GeneralRichEdit Cpture Pin
Anonymous25-Jun-05 22:47
Anonymous25-Jun-05 22:47 
I'm trying to capture text from a rich edit textbox. I have a section of code I took from the PInvoke website. it correctly determines the length of the text to be captured, however it doesn't actually capture any text. I'm using this code:
<br />
private static String GetWindowText(IntPtr hWnd)<br />
   {<br />
	IntPtr txtLength;<br />
	IntPtr retValue;<br />
	IntPtr zeroVal = new IntPtr(0); <br />
	//Get the length of the text<br />
	uint WM_GETTEXTLENGTH = 14;<br />
	txtLength = SendMessage(hWnd, WM_GETTEXTLENGTH, zeroVal, zeroVal);<br />
        //textBox2.Text = txtLength.ToString();<br />
<br />
        //Setup the size of the sb<br />
	StringBuilder sb = new StringBuilder(txtLength.ToInt32() + 1);<br />
<br />
	//Get the text of the window/control t<br />
	uint WM_GETTEXT = 13;<br />
	retValue =  SendMessage(hWnd,WM_GETTEXT,txtLength,sb);<br />
<br />
	//Return a string<br />
	return sb.ToString(); <br />
}<br />


The retValue variable equals zero after it is updated and sb contains no characters. Any help would be greatly appreciated.
jake
Questionhow do i get a node position in an xml file Pin
alexcuban25-Jun-05 20:13
sussalexcuban25-Jun-05 20:13 
AnswerRe: how do i get a node position in an xml file Pin
alexcuban25-Jun-05 20:16
sussalexcuban25-Jun-05 20:16 
GeneralRe: how do i get a node position in an xml file Pin
mav.northwind25-Jun-05 20:36
mav.northwind25-Jun-05 20:36 
Generalok tahanks well this is the xml Pin
alexdg0426-Jun-05 7:14
alexdg0426-Jun-05 7:14 
GeneralI use code like this... Pin
je_gonzalez26-Jun-05 11:30
je_gonzalez26-Jun-05 11:30 
Generalthanks je_gonzales Pin
alexdg0426-Jun-05 15:03
alexdg0426-Jun-05 15:03 
GeneralRe: thanks je_gonzales Pin
je_gonzalez26-Jun-05 18:03
je_gonzalez26-Jun-05 18:03 
GeneralGet Updated Screen Areas Pin
raed25-Jun-05 19:42
raed25-Jun-05 19:42 
GeneralRe: Get Updated Screen Areas Pin
leppie25-Jun-05 23:10
leppie25-Jun-05 23:10 
GeneralRe: Get Updated Screen Areas Pin
raed26-Jun-05 1:15
raed26-Jun-05 1:15 
GeneralRe: Get Updated Screen Areas Pin
leppie26-Jun-05 8:28
leppie26-Jun-05 8:28 
GeneralDraw a Label text on the per-pixel form Pin
Sasuko25-Jun-05 13:56
Sasuko25-Jun-05 13:56 
GeneralRe: Draw a Label text on the per-pixel form Pin
leppie25-Jun-05 23:06
leppie25-Jun-05 23:06 
QuestionHow can i tracert in C# Pin
Anonymous25-Jun-05 9:51
Anonymous25-Jun-05 9:51 
AnswerRe: How can i tracert in C# Pin
mav.northwind25-Jun-05 20:40
mav.northwind25-Jun-05 20:40 
AnswerRe: How can i tracert in C# Pin
Sebastian Schneider26-Jun-05 5:48
Sebastian Schneider26-Jun-05 5:48 
GeneralPrinting A Form Pin
74Camaro25-Jun-05 6:07
74Camaro25-Jun-05 6:07 

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.