Click here to Skip to main content
14,875,778 members
Home / Discussions / C#
   

C#

 
AnswerRe: hashtable Pin
Christian Graus9-Jul-08 8:43
protectorChristian Graus9-Jul-08 8:43 
AnswerRe: hashtable Pin
snorkie9-Jul-08 9:00
professionalsnorkie9-Jul-08 9:00 
QuestionSelect particular types tool and then change their properties at a time,How? Pin
zeeShan anSari9-Jul-08 8:34
MemberzeeShan anSari9-Jul-08 8:34 
AnswerRe: Select particular types tool and then change their properties at a time,How? Pin
Christian Graus9-Jul-08 8:39
protectorChristian Graus9-Jul-08 8:39 
QuestionRe: Select particular types tool and then change their properties at a time,How? Pin
zeeShan anSari9-Jul-08 8:56
MemberzeeShan anSari9-Jul-08 8:56 
AnswerRe: Select particular types tool and then change their properties at a time,How? Pin
hammerstein059-Jul-08 9:00
Memberhammerstein059-Jul-08 9:00 
QuestionRe: Select particular types tool and then change their properties at a time,How? Pin
zeeShan anSari9-Jul-08 9:08
MemberzeeShan anSari9-Jul-08 9:08 
AnswerRe: Select particular types tool and then change their properties at a time,How? Pin
hammerstein059-Jul-08 9:12
Memberhammerstein059-Jul-08 9:12 
foreach(Control c in Controls)
{
ComboBox cb = c as ComboBox;
if (cb != null)
cb.SelectedIndex = 0;
}

this loops through ALL the controls on the current form, that's buttons, checkboxs, textboxes etc. There are a lot of controls on a form. So, as you're looping through, if you try and treat an object that is NOT a checkbox like a checkbox, it will error. Soooooo.... you test to see if the conversion to ComboBox worked. You can't easily select JUST ComboBoxes from a form, you have to go through the controls.
GeneralRe: Select particular types tool and then change their properties at a time,How? Pin
zeeShan anSari9-Jul-08 9:19
MemberzeeShan anSari9-Jul-08 9:19 
Question[Message Deleted] Pin
MAW309-Jul-08 7:53
MemberMAW309-Jul-08 7:53 
AnswerRe: Message insertion to ListBox from another class using Delegates and Events Pin
Christian Graus9-Jul-08 8:16
protectorChristian Graus9-Jul-08 8:16 
GeneralRe: Message insertion to ListBox from another class using Delegates and Events Pin
MAW309-Jul-08 8:46
MemberMAW309-Jul-08 8:46 
GeneralRe: Message insertion to ListBox from another class using Delegates and Events Pin
Christian Graus9-Jul-08 9:35
protectorChristian Graus9-Jul-08 9:35 
GeneralRe: Message insertion to ListBox from another class using Delegates and Events Pin
MAW309-Jul-08 9:49
MemberMAW309-Jul-08 9:49 
QuestionUnlimited List Pin
Saksida Bojan9-Jul-08 7:35
MemberSaksida Bojan9-Jul-08 7:35 
AnswerRe: Unlimited List Pin
Christian Graus9-Jul-08 7:39
protectorChristian Graus9-Jul-08 7:39 
GeneralRe: Unlimited List Pin
Saksida Bojan9-Jul-08 7:44
MemberSaksida Bojan9-Jul-08 7:44 
GeneralRe: Unlimited List Pin
User 66589-Jul-08 7:55
MemberUser 66589-Jul-08 7:55 
GeneralRe: Unlimited List Pin
Saksida Bojan9-Jul-08 8:16
MemberSaksida Bojan9-Jul-08 8:16 
GeneralRe: Unlimited List Pin
User 66589-Jul-08 8:53
MemberUser 66589-Jul-08 8:53 
GeneralRe: Unlimited List Pin
Christian Graus9-Jul-08 8:13
protectorChristian Graus9-Jul-08 8:13 
GeneralRe: Unlimited List Pin
Saksida Bojan9-Jul-08 8:18
MemberSaksida Bojan9-Jul-08 8:18 
GeneralRe: Unlimited List Pin
Christian Graus9-Jul-08 8:40
protectorChristian Graus9-Jul-08 8:40 
GeneralRe: Unlimited List Pin
Saksida Bojan9-Jul-08 8:56
MemberSaksida Bojan9-Jul-08 8:56 
GeneralRe: Unlimited List Pin
#realJSOP9-Jul-08 9:12
mva#realJSOP9-Jul-08 9:12 

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.