Click here to Skip to main content
15,911,890 members
Home / Discussions / C#
   

C#

 
Questioncreate DTS dynamically using C# (urgent) Pin
AmitSumit2-May-06 0:17
AmitSumit2-May-06 0:17 
AnswerRe: create DTS dynamically using C# (urgent) Pin
J4amieC2-May-06 0:59
J4amieC2-May-06 0:59 
GeneralRe: create DTS dynamically using C# (urgent) Pin
AmitSumit2-May-06 2:00
AmitSumit2-May-06 2:00 
QuestionConsole program Pin
DH Julio2-May-06 0:01
DH Julio2-May-06 0:01 
AnswerRe: Console program Pin
stancrm2-May-06 0:28
stancrm2-May-06 0:28 
GeneralRe: Console program Pin
DH Julio2-May-06 5:06
DH Julio2-May-06 5:06 
AnswerRe: Console program Pin
V.2-May-06 2:32
professionalV.2-May-06 2:32 
QuestionCOM Interop question Pin
GDavy1-May-06 23:33
GDavy1-May-06 23:33 
QuestionQuestion about proxy in webrequest (!!Help!!) Pin
stancrm1-May-06 23:00
stancrm1-May-06 23:00 
QuestionCan i disabled the entries in ComboBox in window application Pin
ankushmn1-May-06 22:32
ankushmn1-May-06 22:32 
AnswerRe: Can i disabled the entries in ComboBox in window application Pin
microsoc1-May-06 23:29
microsoc1-May-06 23:29 
Questiondll Pin
TAREQ F ABUZUHRI1-May-06 21:46
TAREQ F ABUZUHRI1-May-06 21:46 
Question.Net 1.1 to .Net 2.0 Pin
TAREQ F ABUZUHRI1-May-06 21:43
TAREQ F ABUZUHRI1-May-06 21:43 
AnswerRe: .Net 1.1 to .Net 2.0 Pin
WillemM1-May-06 22:20
WillemM1-May-06 22:20 
QuestionInt to string Pin
Rmokkenstorm1-May-06 21:35
Rmokkenstorm1-May-06 21:35 
AnswerRe: Int to string Pin
WillemM1-May-06 22:21
WillemM1-May-06 22:21 
GeneralRe: Int to string Pin
Rmokkenstorm1-May-06 22:25
Rmokkenstorm1-May-06 22:25 
AnswerRe: Int to string Pin
J4amieC1-May-06 23:22
J4amieC1-May-06 23:22 
COnnection.ConnectionString returns a string according to the documentation[^]. So trying to use a string-indexer will fail. The error message says:

The best overloaded method match for 'string.this[int]' has some invalid arguments

which is to say you can use a numeric-indexer on a string variable, to retrieve the character at that index.

string myString = "HelloWorld"
char firstChar = myString[0];

firstChar would contain the letter 'H'

You should tell us what you are trying to achieve, rather than how you are trying to achieve it - that way maybe someone can give you more help.

Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour

AnswerRe: Int to string Pin
Guffa1-May-06 23:25
Guffa1-May-06 23:25 
GeneralRe: Int to string Pin
Rmokkenstorm1-May-06 23:38
Rmokkenstorm1-May-06 23:38 
AnswerRe: Int to string Pin
Josh Smith2-May-06 1:43
Josh Smith2-May-06 1:43 
GeneralRe: Int to string Pin
Rmokkenstorm2-May-06 2:43
Rmokkenstorm2-May-06 2:43 
GeneralRe: Int to string Pin
Josh Smith2-May-06 4:21
Josh Smith2-May-06 4:21 
GeneralRe: Int to string Pin
Rmokkenstorm2-May-06 4:34
Rmokkenstorm2-May-06 4:34 
Questionassigning Values to a resized string Array Pin
abhinish1-May-06 20:50
abhinish1-May-06 20:50 

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.