|
-
Jun 25th, 2002, 08:11 AM
#1
Thread Starter
Hyperactive Member
Convert char[] to string
How can I convert a character array to a string in C#?
thx!
-
Jun 25th, 2002, 08:25 AM
#2
StringBuilder has a method called Append that accepts a char array as a parameter..so try this
StringBuilder mystring = new StringBuilder("");
mystring.Append(yourarray);
string final = mystring.ToString();
-
Jun 25th, 2002, 08:31 AM
#3
Thread Starter
Hyperactive Member
thanks Cander!
BTW: I already asked that before...
Do you know how to drag a textfile into a textbox and
then display the content of that file (like notepad does)?
thx!
-
Jun 25th, 2002, 08:37 AM
#4
Beats the heck out of me.. All I know is, you can use the DragDrop event to detect the dragging then use the FileStream classes to open the file and place it in the textbox, but how to actually get the location of the file dragged so you can open it, I just have no clue
Ill check a couple resources to see if I can find something
-
Jun 25th, 2002, 08:41 AM
#5
here we go. This is for the Rich Text Box, but it should give you an idea.
http://216.239.51.100/search?q=cache...hl=en&ie=UTF-8
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|