Click here to Skip to main content
15,896,063 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Console window Pin
DigiOz Multimedia15-Aug-07 11:52
DigiOz Multimedia15-Aug-07 11:52 
QuestionHow to send message contain a string ? Pin
Ky Nam15-Aug-07 3:10
Ky Nam15-Aug-07 3:10 
AnswerRe: How to send message contain a string ? Pin
Luc Pattyn15-Aug-07 3:32
sitebuilderLuc Pattyn15-Aug-07 3:32 
GeneralRe: How to send message contain a string ? Pin
Ky Nam15-Aug-07 3:51
Ky Nam15-Aug-07 3:51 
GeneralRe: How to send message contain a string ? Pin
Luc Pattyn15-Aug-07 4:01
sitebuilderLuc Pattyn15-Aug-07 4:01 
GeneralRe: How to send message contain a string ? Pin
Ky Nam15-Aug-07 5:06
Ky Nam15-Aug-07 5:06 
Questioncryptostream Pin
WhiteGirl2315-Aug-07 1:45
WhiteGirl2315-Aug-07 1:45 
AnswerRe: cryptostream Pin
kubben15-Aug-07 2:17
kubben15-Aug-07 2:17 
You should be able to write out the stream to a byte array and then convert the byte array to a string.
Here are some methods I have used, sorry they are in C# They should be easy to re-write in vb.net
public static String MemoryStreamToString(MemoryStream p_ms)
{
  return MemoryStreamToString(p_ms, Encoding.Default);
}
public static String MemoryStreamToString(MemoryStream p_ms, Encoding p_encoding)
{
  return ByteArrayToString(p_ms.GetBuffer(), p_encoding);
}

public static MemoryStream StringToMemoryStream(String p_string)
{
  return StringToMemoryStream(p_string, Encoding.Default);
}
public static MemoryStream StringToMemoryStream(String p_string, Encoding p_encoding)
{
  return new MemoryStream(StringToByteArray(p_string, p_encoding));
}

public static Byte[] StringToByteArray(string p_str)
{
  return StringToByteArray(p_str, Encoding.Default);
}
public static Byte[] StringToByteArray(string p_str, Encoding p_encoding)
{
  return p_encoding.GetBytes(p_str);
}

public static string ByteArrayToString(byte[] p_byteArray)
{
 return ByteArrayToString(p_byteArray, Encoding.Default);
}
public static string ByteArrayToString(byte[] p_byteArray, Encoding p_encoding)
{
 int numberOfBytes = p_byteArray.Length;
 return p_encoding.GetString(p_byteArray, 0, numberOfBytes);
}


Hope that helps.
Ben
GeneralI need answer please Pin
thaora15-Aug-07 1:41
thaora15-Aug-07 1:41 
GeneralRe: I need answer please [modified] Pin
GuyThiebaut15-Aug-07 2:52
professionalGuyThiebaut15-Aug-07 2:52 
GeneralRe: I need answer please Pin
leckey15-Aug-07 3:15
leckey15-Aug-07 3:15 
GeneralRe: I need answer please Pin
koolprasad200315-Aug-07 20:00
professionalkoolprasad200315-Aug-07 20:00 
Questionhow to create a schedule system Pin
nzuva15-Aug-07 0:37
nzuva15-Aug-07 0:37 
AnswerRe: how to create a schedule system Pin
Christian Graus15-Aug-07 0:46
protectorChristian Graus15-Aug-07 0:46 
QuestionConcatinating RTF Pin
Salman Sheikh15-Aug-07 0:14
Salman Sheikh15-Aug-07 0:14 
AnswerRe: Concatinating RTF Pin
Vasudevan Deepak Kumar15-Aug-07 0:16
Vasudevan Deepak Kumar15-Aug-07 0:16 
GeneralRe: Concatinating RTF Pin
Salman Sheikh15-Aug-07 0:43
Salman Sheikh15-Aug-07 0:43 
AnswerRe: Concatinating RTF Pin
MartyK200715-Aug-07 3:16
MartyK200715-Aug-07 3:16 
GeneralRe: Concatinating RTF Pin
Salman Sheikh15-Aug-07 10:44
Salman Sheikh15-Aug-07 10:44 
QuestionStopping a running process (vb2005) while updating a progress bar Pin
Vivek Narayanan14-Aug-07 23:59
Vivek Narayanan14-Aug-07 23:59 
AnswerRe: Stopping a running process (vb2005) while updating a progress bar Pin
Vasudevan Deepak Kumar15-Aug-07 0:18
Vasudevan Deepak Kumar15-Aug-07 0:18 
GeneralRe: Stopping a running process (vb2005) while updating a progress bar Pin
Vivek Narayanan15-Aug-07 1:02
Vivek Narayanan15-Aug-07 1:02 
AnswerRe: Stopping a running process (vb2005) while updating a progress bar [modified] Pin
GuyThiebaut15-Aug-07 1:44
professionalGuyThiebaut15-Aug-07 1:44 
GeneralRe: Stopping a running process (vb2005) while updating a progress bar Pin
MartyK200715-Aug-07 3:19
MartyK200715-Aug-07 3:19 
GeneralRe: Stopping a running process (vb2005) while updating a progress bar Pin
GuyThiebaut15-Aug-07 4:00
professionalGuyThiebaut15-Aug-07 4:00 

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.