Click here to Skip to main content
15,879,184 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: assigning Values to a resized string Array Pin
akyriako781-May-06 21:01
akyriako781-May-06 21:01 
Questiongraphics Pin
cshivaprasad1-May-06 20:42
cshivaprasad1-May-06 20:42 
AnswerRe: graphics Pin
CWIZO1-May-06 21:14
CWIZO1-May-06 21:14 
GeneralRe: graphics Pin
cshivaprasad1-May-06 21:19
cshivaprasad1-May-06 21:19 
GeneralRe: graphics Pin
CWIZO1-May-06 21:23
CWIZO1-May-06 21:23 
GeneralRe: graphics Pin
cshivaprasad1-May-06 21:32
cshivaprasad1-May-06 21:32 
GeneralRe: graphics Pin
CWIZO1-May-06 21:35
CWIZO1-May-06 21:35 
GeneralRe: graphics Pin
cshivaprasad1-May-06 23:41
cshivaprasad1-May-06 23:41 
GeneralRe: graphics Pin
CWIZO1-May-06 23:45
CWIZO1-May-06 23:45 
GeneralRe: graphics Pin
cshivaprasad2-May-06 0:08
cshivaprasad2-May-06 0:08 

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.