שאלה מעניינת.

שאלה מעניינת.

אני מעוניין להפוך ICON למחרוזת (String). אני מעוניין לחפש ICON ע"י OpenFileDialog, להציג אותו בתוך רכיב מסויים (זה לא תמונה). ואח"כ להפוך אותו למחרוזת, ולאחר מכן כמובן להפוך מהמחרוזת ל-ICON בחזרה. תשובה מהירה תעזור מאוד. תודה.
 

skshlomi

New member
אולי..

אם תשנה את הקובץ לTXT לאחר שבחרת את הקובץ ופשוט תעתיק את כל מה שבתוך ה TXT
 

ליאור ב

New member
נסה

StreamReader.Read (Char[], Int32, Int32) Reads a maximum of count characters from the current stream into buffer, beginning at index.
Dim fs as new System.IO.FileStream(... Dim sr as new System.IO,StreamReader(fs) Dim charData(fs.length-1) as Char try sr.Read(charData, 0, charData.length) catch.... ... finally... ... end try​
ליאור.
 
למעלה