Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
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;
        }

AnswerRe: setting the selected item in a combobox from the constructor problem Pin
Phil J Pearson1-Aug-08 5:19
Phil J Pearson1-Aug-08 5:19 
GeneralRe: setting the selected item in a combobox from the constructor problem Pin
Barry T1-Aug-08 5:34
Barry T1-Aug-08 5:34 
QuestionLooking for an alternative to bit shifting Pin
Jim Warburton1-Aug-08 4:50
Jim Warburton1-Aug-08 4:50 
AnswerRe: Looking for an alternative to bit shifting Pin
Robert.C.Cartaino1-Aug-08 5:50
Robert.C.Cartaino1-Aug-08 5:50 
GeneralMessage Closed Pin
1-Aug-08 7:39
Dan Neely1-Aug-08 7:39 
GeneralRe: Looking for an alternative to bit shifting Pin
Robert.C.Cartaino1-Aug-08 9:12
Robert.C.Cartaino1-Aug-08 9:12 
GeneralRe: Looking for an alternative to bit shifting [modified] Pin
PIEBALDconsult2-Aug-08 10:11
mvePIEBALDconsult2-Aug-08 10:11 
AnswerRe: Looking for an alternative to bit shifting Pin
PIEBALDconsult1-Aug-08 6:34
mvePIEBALDconsult1-Aug-08 6:34 
AnswerRe: Looking for an alternative to bit shifting Pin
Guffa1-Aug-08 11:01
Guffa1-Aug-08 11:01 
GeneralRe: Looking for an alternative to bit shifting Pin
PIEBALDconsult1-Aug-08 15:17
mvePIEBALDconsult1-Aug-08 15:17 
GeneralRe: Looking for an alternative to bit shifting Pin
Guffa2-Aug-08 1:48
Guffa2-Aug-08 1:48 
GeneralRe: Looking for an alternative to bit shifting [modified] Pin
PIEBALDconsult2-Aug-08 5:41
mvePIEBALDconsult2-Aug-08 5:41 
GeneralRe: Looking for an alternative to bit shifting Pin
Guffa2-Aug-08 10:13
Guffa2-Aug-08 10:13 
AnswerRe: Looking for an alternative to bit shifting Pin
PIEBALDconsult2-Aug-08 8:18
mvePIEBALDconsult2-Aug-08 8:18 
AnswerRe: Looking for an alternative to bit shifting [modified] Pin
PIEBALDconsult2-Aug-08 8:52
mvePIEBALDconsult2-Aug-08 8:52 
Questionlocalizable form gridview issue Pin
muharrem1-Aug-08 4:37
muharrem1-Aug-08 4:37 
AnswerRe: localizable form gridview issue Pin
nelsonpaixao1-Aug-08 13:17
nelsonpaixao1-Aug-08 13:17 

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.