Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
AnswerRe: Label Text Pin
DaveyM691-Aug-08 21:13
professionalDaveyM691-Aug-08 21:13 
AnswerRe: Label Text Pin
Thomas Stockwell2-Aug-08 7:34
professionalThomas Stockwell2-Aug-08 7:34 
QuestionHow to use Queue.Synchronized Pin
JoeRip1-Aug-08 13:58
JoeRip1-Aug-08 13:58 
AnswerRe: How to use Queue.Synchronized Pin
Mark Salsbery1-Aug-08 14:27
Mark Salsbery1-Aug-08 14:27 
GeneralRe: How to use Queue.Synchronized Pin
JoeRip1-Aug-08 15:02
JoeRip1-Aug-08 15:02 
GeneralRe: How to use Queue.Synchronized Pin
Mark Salsbery1-Aug-08 15:12
Mark Salsbery1-Aug-08 15:12 
QuestionDataGridView Navigation (i bet it´s easy) Pin
nelsonpaixao1-Aug-08 13:29
nelsonpaixao1-Aug-08 13:29 
QuestionHow do I make this code display the contents of the stack at the top of the text box.? Pin
Angelinna1-Aug-08 12:15
Angelinna1-Aug-08 12:15 
AnswerRe: How do I make this code display the contents of the stack at the top of the text box.? Pin
Guffa1-Aug-08 12:51
Guffa1-Aug-08 12:51 
GeneralRe: How do I make this code display the contents of the stack at the top of the text box.? Pin
Angelinna1-Aug-08 13:54
Angelinna1-Aug-08 13:54 
GeneralRe: How do I make this code display the contents of the stack at the top of the text box.? Pin
Lim Yuxuan1-Aug-08 17:53
Lim Yuxuan1-Aug-08 17:53 
GeneralRe: How do I make this code display the contents of the stack at the top of the text box.? Pin
Angelinna1-Aug-08 20:34
Angelinna1-Aug-08 20:34 
QuestionDesktop News Ticker Pin
wajans1-Aug-08 6:51
wajans1-Aug-08 6:51 
AnswerMessage Closed Pin
1-Aug-08 7:44
Bassam Saoud1-Aug-08 7:44 
GeneralRe: Hard drives Pin
Nish Nishant28-Oct-11 10:57
sitebuilderNish Nishant28-Oct-11 10:57 
AnswerRe: Desktop News Ticker Pin
Paul Conrad1-Aug-08 8:20
professionalPaul Conrad1-Aug-08 8:20 
GeneralRe: Desktop News Ticker Pin
wajans1-Aug-08 8:30
wajans1-Aug-08 8:30 
GeneralRe: Desktop News Ticker Pin
Paul Conrad1-Aug-08 8:34
professionalPaul Conrad1-Aug-08 8:34 
GeneralRe: Desktop News Ticker Pin
wajans1-Aug-08 9:07
wajans1-Aug-08 9:07 
GeneralRe: Desktop News Ticker Pin
nelsonpaixao1-Aug-08 13:56
nelsonpaixao1-Aug-08 13:56 
QuestionCalling a 32-bit .NET dll from a 64-bit .NET application [modified] Pin
Phil J Pearson1-Aug-08 5:29
Phil J Pearson1-Aug-08 5:29 
AnswerRe: Calling a 32-bit .NET dll from a 64-bit .NET application Pin
vikas amin1-Aug-08 8:25
vikas amin1-Aug-08 8:25 
GeneralRe: Calling a 32-bit .NET dll from a 64-bit .NET application Pin
Phil J Pearson3-Aug-08 23:39
Phil J Pearson3-Aug-08 23:39 
GeneralRe: Calling a 32-bit .NET dll from a 64-bit .NET application Pin
vikas amin4-Aug-08 4:29
vikas amin4-Aug-08 4:29 
Questionsetting the selected item in a combobox from the constructor problem Pin
Barry T1-Aug-08 5:02
Barry T1-Aug-08 5:02 
I'm trying to set a combo box on the forum to the corresponding item I'm passing it through the constructor, but it just ignores the value I'm passing it, and displays the first item in the combo box item collection. That data I'm trying to pass is taken from a deserialized XML file. Please let me know if there's anything else I need to provide you with for help Thanks.

this is how I'm binding the combo box's, in the designer.
this.cmbResults.DataSource = System.Enum.GetValues(typeof(PickItResult));
this.cmbQuality.DataSource = System.Enum.GetValues(typeof(D2Data.ItemQuality));
this.cmbItemType.DataSource = System.Enum.GetValues(typeof(D2Data.ItemType));
this.cmbItemClass.DataSource = System.Enum.GetValues(typeof(D2Data.ItemClass));


'the constructor I'm trying to set the combo box item in, i've tried many different things
public Requirements(string description, string mods, D2Data.ItemQuality quality, D2Data.ItemType type, D2Data.ItemClass itemClass, string stats, PickItResult result)
        {
            InitializeComponent();
            this.description = description;
            this.mods = mods;
            this.quality = quality;
            this.type = type;
            this.itemClass = itemClass;
            this.result = result;
            this.stats = stats;

//this is where im trying to set the combobox's selected item, here was my last attempt at it.
            txtDescription.Text = description;
            cmbResults.SelectedItem = Enum.Parse(typeof(PickItResult), result.ToString());//(int)result;
            cmbQuality.SelectedItem = Enum.Parse(typeof(D2Data.ItemQuality), quality.ToString()); //(int)quality;
            //cmbItemClass.SelectedIndex = Enum.Parse(typeof(D2Data.ItemClass), itemClass.ToString());
            //cmbItemType.SelectedIndex = Enum.Parse(typeof(D2Data.ItemType), type.ToString());
            txtMods.Text = mods;
            txtStats.Text = stats;
        }

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.