Click to See Complete Forum and Search --> : Sending Text to another application


Zero1UP
June 22nd, 2009, 04:03 PM
So what I am trying to do is take information from a rich text box and send it over to another application.

SO far it works but it doesn't handle spaces well.


Dim cm As New c_manager.Form1

cm.Controls(1).Controls(0).Text = rch_subroutine.Text
cm.Show()


It passes the information but instead of
String Formatting
20411B38 382E3825
20411B3C 3A3A2078
20411B40 2E382520
20411B44 00007838


When it gets transfered it looks like this:

http://i13.photobucket.com/albums/a293/1_UP/programs/text.jpg?t=1245700970

Can O Peas
June 22nd, 2009, 04:46 PM
here is some code that may help you

Dim cm As New CodeMajic_Manager.Form1
Dim strCode, strHolder As String
Dim strChar(Me.rtxtBox.Text.Length) As Char

cm.Controls(1).Controls(0).Text = ""
strHolder = Me.rtxtBox.Text

strChar = strHolder.ToCharArray

For i As Integer = 0 To Len(strHolder) - 1


If Asc(strChar(i)) = 10 Then
cm.Controls(1).Controls(0).Text &= strCode & vbNewLine
strCode = ""
Else
strCode &= strChar(i).ToString

End If

Next
cm.Show()

Zero1UP
June 24th, 2009, 03:50 PM
Thanks worked just as I needed it :D