Click here to Skip to main content
15,910,277 members
Home / Discussions / C#
   

C#

 
AnswerRe: Referencing object by substituing object name in c#? Pin
dan!sh 17-May-09 19:56
professional dan!sh 17-May-09 19:56 
QuestionDatabase connectivity at runtime Pin
abysinia17-May-09 19:19
abysinia17-May-09 19:19 
AnswerRe: Database connectivity at runtime Pin
dan!sh 17-May-09 19:32
professional dan!sh 17-May-09 19:32 
QuestionGetting Error message in debuging Pin
deadlyabbas17-May-09 19:02
deadlyabbas17-May-09 19:02 
AnswerRe: Getting Error message in debuging Pin
S. Senthil Kumar18-May-09 9:40
S. Senthil Kumar18-May-09 9:40 
QuestionGet value from listbox items Pin
zeeShan anSari17-May-09 18:31
zeeShan anSari17-May-09 18:31 
AnswerRe: Get value from listbox items Pin
Ravi Bhavnani17-May-09 18:46
professionalRavi Bhavnani17-May-09 18:46 
AnswerRe: Get value from listbox items Pin
dug_r17-May-09 19:07
dug_r17-May-09 19:07 
zeeShan, I hope this helps.

It depends on what you want to do with your items. They are usually cast at some point. Consider this code. When something is selected in listBox1, it copies all of the contents into listBox2:

private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
foreach (string item in listBox1.Items)
{
listBox2.Items.Add(item);
}

}
AnswerRe: Get value from listbox items Pin
Jabbar_espania18-May-09 23:38
Jabbar_espania18-May-09 23:38 
QuestionAccess controls from different class Pin
soulidentities17-May-09 18:27
soulidentities17-May-09 18:27 
AnswerRe: Access controls from different class Pin
Ravi Bhavnani17-May-09 18:47
professionalRavi Bhavnani17-May-09 18:47 
GeneralRe: Access controls from different class Pin
soulidentities17-May-09 20:16
soulidentities17-May-09 20:16 
GeneralRe: Access controls from different class Pin
Ravi Bhavnani17-May-09 20:35
professionalRavi Bhavnani17-May-09 20:35 
GeneralRe: Access controls from different class Pin
soulidentities17-May-09 21:13
soulidentities17-May-09 21:13 
GeneralRe: Access controls from different class Pin
Ravi Bhavnani17-May-09 21:18
professionalRavi Bhavnani17-May-09 21:18 
GeneralRe: Access controls from different class Pin
soulidentities17-May-09 21:30
soulidentities17-May-09 21:30 
AnswerRe: Access controls from different class Pin
DaveyM6917-May-09 22:52
professionalDaveyM6917-May-09 22:52 
GeneralRe: Access controls from different class Pin
soulidentities18-May-09 0:01
soulidentities18-May-09 0:01 
GeneralRe: Access controls from different class Pin
DaveyM6918-May-09 1:19
professionalDaveyM6918-May-09 1:19 
GeneralRe: Access controls from different class Pin
soulidentities18-May-09 5:43
soulidentities18-May-09 5:43 
GeneralRe: Access controls from different class Pin
DaveyM6918-May-09 6:30
professionalDaveyM6918-May-09 6:30 
Question.NET Framework Version Pin
Blue36517-May-09 15:06
Blue36517-May-09 15:06 
AnswerRe: .NET Framework Version Pin
PIEBALDconsult17-May-09 16:14
mvePIEBALDconsult17-May-09 16:14 
GeneralRe: .NET Framework Version Pin
adatapost17-May-09 17:20
adatapost17-May-09 17:20 
GeneralRe: .NET Framework Version Pin
PIEBALDconsult17-May-09 18:00
mvePIEBALDconsult17-May-09 18:00 

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.