Click here to Skip to main content
15,912,205 members
Home / Discussions / C#
   

C#

 
QuestionWebBrowser + Threads help, please! i dunno what to do anymore... Pin
yoni10009-Jul-06 12:34
yoni10009-Jul-06 12:34 
AnswerRe: WebBrowser + Threads help, please! i dunno what to do anymore... Pin
S. Senthil Kumar9-Jul-06 18:58
S. Senthil Kumar9-Jul-06 18:58 
Questioncan someone post me a simple chat application Pin
lehya9-Jul-06 8:10
lehya9-Jul-06 8:10 
AnswerRe: can someone post me a simple chat application Pin
Ravi Bhavnani9-Jul-06 9:14
professionalRavi Bhavnani9-Jul-06 9:14 
QuestionGet value to byte() [modified] Pin
hung_ngole9-Jul-06 5:57
hung_ngole9-Jul-06 5:57 
AnswerRe: Get value to byte() Pin
Eran Aharonovich9-Jul-06 7:29
Eran Aharonovich9-Jul-06 7:29 
GeneralRe: Get value to byte() Pin
hung_ngole9-Jul-06 16:12
hung_ngole9-Jul-06 16:12 
GeneralRe: Get value to byte() Pin
Eran Aharonovich9-Jul-06 22:42
Eran Aharonovich9-Jul-06 22:42 
You are right. Sorry.

This is what you need to do:


// Prepare web request...
HttpWebRequest myRequest =
(HttpWebRequest)WebRequest.Create("http://www.noviway.com");

// We use POST ( we can also use GET )
myRequest.Method = "GET";


// Assign the response object of 'HttpWebRequest' to a 'HttpWebResponse' variable.
HttpWebResponse myHttpWebResponse= (HttpWebResponse)myRequest.GetResponse();

// Display the contents of the page to the console.
Stream streamResponse = myHttpWebResponse.GetResponseStream();


MemoryStream memStream = new MemoryStream();

byte[] readBuffer = new byte[256];

// Read from buffer
int count = streamResponse.Read( readBuffer, 0, 256 );

while (count > 0)
{
memStream.Write(readBuffer, 0, count);

// Read from buffer
count = streamResponse.Read( readBuffer, 0, 256);
}

byte[] originalBuffer = memStream.ToArray();

// Release the response object resources.

streamResponse.Close();

// Close response
myHttpWebResponse.Close();



Eran Aharonovich (eran.aharonovich@gmail.com )
Noviway
AnswerRe: Get value to byte() Pin
Nader Elshehabi9-Jul-06 11:09
Nader Elshehabi9-Jul-06 11:09 
GeneralRe: Get value to byte() Pin
hung_ngole9-Jul-06 16:11
hung_ngole9-Jul-06 16:11 
GeneralRe: Get value to byte() Pin
S. Senthil Kumar9-Jul-06 19:08
S. Senthil Kumar9-Jul-06 19:08 
Questionmore assemblies to one assembly Pin
dedel9-Jul-06 5:48
professionaldedel9-Jul-06 5:48 
AnswerRe: more assemblies to one assembly Pin
Graham Dean9-Jul-06 7:20
Graham Dean9-Jul-06 7:20 
GeneralRe: more assemblies to one assembly Pin
Guffa9-Jul-06 10:42
Guffa9-Jul-06 10:42 
AnswerRe: more assemblies to one assembly Pin
Nader Elshehabi9-Jul-06 11:12
Nader Elshehabi9-Jul-06 11:12 
GeneralRe: more assemblies to one assembly Pin
dedel9-Jul-06 11:31
professionaldedel9-Jul-06 11:31 
AnswerRe: more assemblies to one assembly Pin
Nader Elshehabi9-Jul-06 12:50
Nader Elshehabi9-Jul-06 12:50 
AnswerRe: more assemblies to one assembly Pin
kasik9-Jul-06 13:01
kasik9-Jul-06 13:01 
QuestionHow to create a waiting screen while the current form process a task? Pin
yossof elnaggar9-Jul-06 4:33
yossof elnaggar9-Jul-06 4:33 
AnswerRe: How to create a waiting screen while the current form process a task? Pin
Andrew Lygin9-Jul-06 5:20
Andrew Lygin9-Jul-06 5:20 
GeneralRe: How to create a waiting screen while the current form process a task? Pin
yossof elnaggar9-Jul-06 21:22
yossof elnaggar9-Jul-06 21:22 
GeneralRe: How to create a waiting screen while the current form process a task? Pin
Andrew Lygin9-Jul-06 22:32
Andrew Lygin9-Jul-06 22:32 
AnswerRe: How to create a waiting screen while the current form process a task? Pin
Nader Elshehabi9-Jul-06 11:02
Nader Elshehabi9-Jul-06 11:02 
AnswerRe: How to create a waiting screen while the current form process a task? Pin
LongRange.Shooter10-Jul-06 8:39
LongRange.Shooter10-Jul-06 8:39 
QuestionCombobox issue Pin
V.9-Jul-06 3:05
professionalV.9-Jul-06 3:05 

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.