Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
GeneralRe: textbox control with multi colored rows Pin
Aaron Eldreth8-Jun-04 3:47
Aaron Eldreth8-Jun-04 3:47 
GeneralRe: textbox control with multi colored rows Pin
gmahesh9-Jun-04 0:58
gmahesh9-Jun-04 0:58 
QuestionLoad file into string? Pin
Dominik Reichl8-Jun-04 1:43
Dominik Reichl8-Jun-04 1:43 
AnswerRe: Load file into string? Pin
Werdna8-Jun-04 3:27
Werdna8-Jun-04 3:27 
GeneralRe: Load file into string? Pin
Dominik Reichl8-Jun-04 4:14
Dominik Reichl8-Jun-04 4:14 
AnswerRe: Load file into string? Pin
Heath Stewart8-Jun-04 4:00
protectorHeath Stewart8-Jun-04 4:00 
GeneralRe: Load file into string? Pin
Dominik Reichl8-Jun-04 4:19
Dominik Reichl8-Jun-04 4:19 
GeneralRe: Load file into string? Pin
Heath Stewart8-Jun-04 4:22
protectorHeath Stewart8-Jun-04 4:22 
If you're making HTTP requests, cast to a HttpWebRequest. The call to WebRequest.Create with an HTTP or HTTPS scheme actually creates an instance of the HttpWebRequest. This use a provider pattern, however, which can only return the base class (bases don't know about their derivatives, only vice-versa).

Look at the example I mentioned and you'll see what to do. You just cast to the necessary class, assuming that the instance created was an instance of that class (like making a request on a file:// scheme and casting to an HttpWebRequest won't work).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Draw Shape To Screen Pin
SJ_Phoenix8-Jun-04 0:24
SJ_Phoenix8-Jun-04 0:24 
GeneralRe: Draw Shape To Screen [EDITED] Pin
Dave Kreskowiak8-Jun-04 3:17
mveDave Kreskowiak8-Jun-04 3:17 
GeneralConverting an array list to double array Pin
_Searcher_8-Jun-04 0:01
_Searcher_8-Jun-04 0:01 
GeneralRe: Converting an array list to double array Pin
Aryadip8-Jun-04 2:08
Aryadip8-Jun-04 2:08 
GeneralRe: Converting an array list to double array Pin
_Searcher_8-Jun-04 3:59
_Searcher_8-Jun-04 3:59 
GeneralRe: Converting an array list to double array Pin
Heath Stewart8-Jun-04 3:56
protectorHeath Stewart8-Jun-04 3:56 
GeneralBanner in Help-Files? (How to?) Pin
Ariadne7-Jun-04 23:44
Ariadne7-Jun-04 23:44 
GeneralRe: Banner in Help-Files? (How to?) Pin
Heath Stewart8-Jun-04 3:52
protectorHeath Stewart8-Jun-04 3:52 
GeneralRe: Banner in Help-Files? (How to?) Pin
Ariadne8-Jun-04 21:14
Ariadne8-Jun-04 21:14 
GeneralRe: Banner in Help-Files? (How to?) Pin
Heath Stewart9-Jun-04 2:08
protectorHeath Stewart9-Jun-04 2:08 
GeneralGraphic drawing with OR transparency Pin
azusakt7-Jun-04 21:53
azusakt7-Jun-04 21:53 
GeneralRe: Graphic drawing with OR transparency Pin
Mazdak7-Jun-04 22:22
Mazdak7-Jun-04 22:22 
GeneralRe: Graphic drawing with OR transparency Pin
azusakt7-Jun-04 22:46
azusakt7-Jun-04 22:46 
GeneralRe: Graphic drawing with OR transparency Pin
Mazdak8-Jun-04 1:22
Mazdak8-Jun-04 1:22 
GeneralRe: Graphic drawing with OR transparency Pin
Dave Kreskowiak8-Jun-04 4:29
mveDave Kreskowiak8-Jun-04 4:29 
GeneralRe: Graphic drawing with OR transparency Pin
Jay Shankar9-Jun-04 22:45
Jay Shankar9-Jun-04 22:45 
GeneralDraw Shape To Screen Pin
Anonymous7-Jun-04 21:40
Anonymous7-Jun-04 21:40 

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.