Click here to Skip to main content
15,888,031 members
Home / Discussions / C#
   

C#

 
QuestionGenerics Problem Pin
thepersonof1-Sep-06 6:55
thepersonof1-Sep-06 6:55 
AnswerRe: Generics Problem Pin
eggsovereasy1-Sep-06 7:27
eggsovereasy1-Sep-06 7:27 
AnswerRe: Generics Problem Pin
Stefan Troschuetz1-Sep-06 8:08
Stefan Troschuetz1-Sep-06 8:08 
GeneralRe: Generics Problem Pin
thepersonof1-Sep-06 9:28
thepersonof1-Sep-06 9:28 
GeneralRe: Generics Problem Pin
thepersonof1-Sep-06 9:41
thepersonof1-Sep-06 9:41 
QuestionShow DocumentStream in Webbrowser control Pin
Piovra_1-Sep-06 4:43
Piovra_1-Sep-06 4:43 
Questionsending a sms Pin
Support1231-Sep-06 4:34
Support1231-Sep-06 4:34 
AnswerRe: sending a sms Pin
J4amieC1-Sep-06 4:52
J4amieC1-Sep-06 4:52 
NarutoFan#1 wrote:
HttpWebRequest Request;


Defines an object of type HttpWebRequest (in the System.Net namespace), but does not actually create the object.


NarutoFan#1 wrote:
StreamReader ResponseReader;


Defines an object of type StreamReader (in the System.IO namespace), but does not actually create the object.


NarutoFan#1 wrote:
Request = ((HttpWebRequest)(WebRequest.Create(URL)));


This line actually gets an HttpWebRequest object and places it into the variable defined in 1) above. It gets this object by a static call to the WebRequest.Create method. The WebRequest object can be found in the System.Net namespace.

NarutoFan#1 wrote:
ResponseReader = new StreamReader(Request.GetResponse().GetResponseStream());


This line creates the StreamReader object defined in 2) above. It does so using one of the standard constructors on this object that takes a Stream (System.IO namespace) object. It gets this Stream object by a call to the HttpWebRequest.GetResponse method.



This code is pretty standard and you can trace through exactly what each line does by stepping over the code and reading the documentation for each object & method used.




Questionhow to access controls from another form!?? [modified] Pin
ferdna1-Sep-06 4:22
ferdna1-Sep-06 4:22 
AnswerRe: how to access controls from another form!?? Pin
Colin Angus Mackay1-Sep-06 4:25
Colin Angus Mackay1-Sep-06 4:25 
GeneralRe: how to access controls from another form!?? Pin
ferdna1-Sep-06 9:37
ferdna1-Sep-06 9:37 
GeneralRe: how to access controls from another form!?? Pin
Colin Angus Mackay1-Sep-06 11:00
Colin Angus Mackay1-Sep-06 11:00 
QuestionIn Windows Services How to capture the data entered by the user from key board Pin
King Shez1-Sep-06 3:40
King Shez1-Sep-06 3:40 
AnswerRe: In Windows Services How to capture the data entered by the user from key board Pin
Colin Angus Mackay1-Sep-06 4:24
Colin Angus Mackay1-Sep-06 4:24 
GeneralRe: In Windows Services How to capture the data entered by the user from key board Pin
King Shez3-Sep-06 20:25
King Shez3-Sep-06 20:25 
GeneralRe: In Windows Services How to capture the data entered by the user from key board Pin
Colin Angus Mackay4-Sep-06 9:15
Colin Angus Mackay4-Sep-06 9:15 
GeneralRe: In Windows Services How to capture the data entered by the user from key board Pin
King Shez5-Sep-06 3:13
King Shez5-Sep-06 3:13 
GeneralRe: In Windows Services How to capture the data entered by the user from key board Pin
Colin Angus Mackay7-Sep-06 8:45
Colin Angus Mackay7-Sep-06 8:45 
GeneralStop posting the same question over and over Pin
leckey1-Sep-06 7:49
leckey1-Sep-06 7:49 
QuestionOpen word document Pin
eyalso1-Sep-06 3:04
eyalso1-Sep-06 3:04 
AnswerRe: Open word document Pin
Green Fuze1-Sep-06 3:12
Green Fuze1-Sep-06 3:12 
AnswerRe: Open word document Pin
rlejason25-Aug-10 17:51
rlejason25-Aug-10 17:51 
Questionquestion about unaccessable classes Pin
Green Fuze1-Sep-06 2:28
Green Fuze1-Sep-06 2:28 
AnswerRe: question about unaccessable classes Pin
User 66581-Sep-06 2:45
User 66581-Sep-06 2:45 
GeneralRe: question about unaccessable classes Pin
Green Fuze1-Sep-06 3:07
Green Fuze1-Sep-06 3:07 

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.