Click here to Skip to main content
15,797,721 members
Home / Discussions / C#
   

C#

 
AnswerRe: the most universal barcode symbology Pin
Gerry Schmitz18-Aug-14 14:08
mveGerry Schmitz18-Aug-14 14:08 
Questionthread problem Pin
omprakash jaiswal18-Aug-14 0:44
omprakash jaiswal18-Aug-14 0:44 
AnswerRe: thread problem Pin
Rob Philpott18-Aug-14 0:48
Rob Philpott18-Aug-14 0:48 
AnswerRe: thread problem Pin
Dave Kreskowiak18-Aug-14 6:06
mveDave Kreskowiak18-Aug-14 6:06 
AnswerRe: thread problem Pin
Eddy Vluggen18-Aug-14 8:23
professionalEddy Vluggen18-Aug-14 8:23 
Questiontwo comboBoxs Pin
picasso217-Aug-14 19:30
picasso217-Aug-14 19:30 
AnswerRe: two comboBoxs Pin
Snehasish_Nandy17-Aug-14 20:17
professionalSnehasish_Nandy17-Aug-14 20:17 
GeneralRe: two comboBoxs Pin
picasso218-Aug-14 6:49
picasso218-Aug-14 6:49 
Yes, I should have done fist. Thank you
public Home()
{
InitializeComponent();

//initilize the combobox
comboBox1.Items.Add("CAR");
comboBox1.Items.Add("PLANE");
comboBox1.Items.Add("MOTORCYCLE");

for CB1
private void comboBox1_SelectionChanged(object sender, SelectionChangedEventArgs e)
{

string selec = comboBox1.SelectedItem.ToString();

switch (selec)
{
case "CAR":
{
comboBox2.Items.Clear();

label3.Content = "Select cars";
comboBox2.Items.Add("Model");
comboBox2.Items.Add("Color");



}
break;
case "PLANE":
{
comboBox2.Items.Clear();
label3.Content = "Select Site";
comboBox2.Items.Add("model");
comboBox2.Items.Add("EngineType");
comboBox2.Items.Add("choice 1");
comboBox2.Items.Add("choice 2");


}
break;

}//end of switch

}


FOR CB2
private void comboBox2_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
EclipseMTXDomainContext context1 = new EclipseMTXDomainContext(); //load datagrid from database



string selec = comboBox2.SelectedItem.ToString();

switch (selec)
{
case "model":
{
//GET ALL MOdels
dataGrid1.ItemsSource = context1.Protons;
context1.Load(context1.GetProtonsFilteredQuery(1));



}
break;
case "EngineType":
{
//GET ALL Engine Types
dataGrid1.ItemsSource = context1.Protons;
context1.Load(context1.GetProtonsFilteredQuery(1));



}
break;
}//end of switch

}
GeneralRe: two comboBoxs Pin
Bernhard Hiller18-Aug-14 22:08
Bernhard Hiller18-Aug-14 22:08 
QuestionC# Performance Issue Pin
SledgeHammer0117-Aug-14 15:50
SledgeHammer0117-Aug-14 15:50 
AnswerRe: C# Performance Issue Pin
Shao Voon Wong17-Aug-14 16:26
mvaShao Voon Wong17-Aug-14 16:26 
GeneralRe: C# Performance Issue Pin
SledgeHammer0117-Aug-14 17:05
SledgeHammer0117-Aug-14 17:05 
GeneralRe: C# Performance Issue Pin
Shao Voon Wong17-Aug-14 17:23
mvaShao Voon Wong17-Aug-14 17:23 
SuggestionRe: C# Performance Issue Pin
Richard Deeming18-Aug-14 3:32
mveRichard Deeming18-Aug-14 3:32 
GeneralRe: C# Performance Issue Pin
jschell18-Aug-14 12:48
jschell18-Aug-14 12:48 
AnswerRe: C# Performance Issue Pin
Bernhard Hiller17-Aug-14 21:29
Bernhard Hiller17-Aug-14 21:29 
AnswerRe: C# Performance Issue Pin
Richard MacCutchan17-Aug-14 21:41
mveRichard MacCutchan17-Aug-14 21:41 
GeneralRe: C# Performance Issue Pin
Mycroft Holmes17-Aug-14 21:59
professionalMycroft Holmes17-Aug-14 21:59 
GeneralRe: C# Performance Issue Pin
Richard MacCutchan17-Aug-14 22:34
mveRichard MacCutchan17-Aug-14 22:34 
GeneralRe: C# Performance Issue Pin
SledgeHammer0118-Aug-14 5:46
SledgeHammer0118-Aug-14 5:46 
AnswerRe: C# Performance Issue Pin
Rob Philpott18-Aug-14 0:45
Rob Philpott18-Aug-14 0:45 
AnswerRe: C# Performance Issue Pin
Richard Deeming18-Aug-14 3:30
mveRichard Deeming18-Aug-14 3:30 
GeneralRe: C# Performance Issue Pin
SledgeHammer0118-Aug-14 5:51
SledgeHammer0118-Aug-14 5:51 
GeneralRe: C# Performance Issue Pin
Richard Deeming18-Aug-14 8:31
mveRichard Deeming18-Aug-14 8:31 
GeneralRe: C# Performance Issue Pin
SledgeHammer0118-Aug-14 9:31
SledgeHammer0118-Aug-14 9:31 

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.