Click here to Skip to main content
15,912,329 members

Comments by Sumit Lotankar (Top 5 by date)

Sumit Lotankar 28-Jan-13 6:20am View    
Sorry Edo for trouble ,but i want
is that the variable s to assigned to one of the element in the array
Ex:- varibale s to be assigned the value "Alabama" using USSates[0] reference ,
// string s = USStates[1].ToString(); dosent work
Sumit Lotankar 28-Jan-13 4:14am View    
How can i excess the array USStates.
ex: First element of array USStates(0) so to assign it to some variable
Sumit Lotankar 23-Jan-13 23:30pm View    
When is the get method geting invoked in this case,
as in other cases when
USState state = new USState("Washington", "WA");

//...

string whereAmI = state.LongName; // calculation of the value calls getter

state.LongName is in invoker in this case
========================================
Do this statement invoke get call
ListBox1.DisplayMember = "LongName";
ListBox1.ValueMember = "ShortName";
Sumit Lotankar 23-Jan-13 23:23pm View    
How can one access the items inside the array,supposing i wanted to assing
the the first item in the array list to some variable or textbox ,
USStates[0] dosent work
// Populate the list box using an array as DataSource.
ArrayList USStates = new ArrayList();
USStates.Add(new USState("Alabama", "AL"));
Sumit Lotankar 22-Jan-13 3:36am View    
How to change its scope so as it is available to the handler;