Click here to Skip to main content
15,891,787 members
Home / Discussions / C#
   

C#

 
AnswerRe: Can anybody help me in below code Pin
Jimmanuel5-Feb-10 14:42
Jimmanuel5-Feb-10 14:42 
AnswerRe: Can anybody help me in below code Pin
Not Active5-Feb-10 15:49
mentorNot Active5-Feb-10 15:49 
QuestionCreating a custom BindingNavigator which include a BindingSource Pin
ArjenGroeneveld5-Feb-10 11:07
ArjenGroeneveld5-Feb-10 11:07 
AnswerRe: Creating a custom BindingNavigator which include a BindingSource Pin
ArjenGroeneveld7-Feb-10 6:09
ArjenGroeneveld7-Feb-10 6:09 
QuestionFastest Method for opening many text files... Pin
UFGrayMatter5-Feb-10 10:43
UFGrayMatter5-Feb-10 10:43 
AnswerRe: Fastest Method for opening many text files... Pin
Keith Barrow5-Feb-10 11:10
professionalKeith Barrow5-Feb-10 11:10 
AnswerRe: Fastest Method for opening many text files... Pin
Luc Pattyn5-Feb-10 11:17
sitebuilderLuc Pattyn5-Feb-10 11:17 
QuestionHow can I get the selected value from a combo box Pin
tonyonlinux5-Feb-10 10:06
tonyonlinux5-Feb-10 10:06 
here's what i have
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
       {
           using (var db = new momdbDataContext(Properties.Settings.Default.Remote))
           {



               var aAuthor = (from a in db.Authors
                              where a.ID == (int)comboBox1.SelectedValue
                              select a).FirstOrDefault();
               authorFirstTextBox.Text = aAuthor.AuthorFirst.ToString().Trim();
               authorLastTextBox.Text = aAuthor.AuthorLast.ToString().Trim();
           }


when i look in the debugger comboBox1.SelectedValue has {ID=2,Name="Jim Bob"}
I don't understand how to get the id value of 2 so I can look up that author.


Sorry for all the questions Frown | :( Just not grasping a lot of this stuff yet.
AnswerRe: How can I get the selected value from a combo box Pin
Not Active5-Feb-10 10:16
mentorNot Active5-Feb-10 10:16 
GeneralRe: How can I get the selected value from a combo box Pin
tonyonlinux5-Feb-10 10:19
tonyonlinux5-Feb-10 10:19 
AnswerRe: How can I get the selected value from a combo box Pin
Luc Pattyn5-Feb-10 11:23
sitebuilderLuc Pattyn5-Feb-10 11:23 
GeneralRe: How can I get the selected value from a combo box Pin
tonyonlinux5-Feb-10 12:52
tonyonlinux5-Feb-10 12:52 
GeneralRe: How can I get the selected value from a combo box Pin
Luc Pattyn5-Feb-10 12:58
sitebuilderLuc Pattyn5-Feb-10 12:58 
QuestionHow does the method work ? Pin
Mohammad Dayyan5-Feb-10 9:02
Mohammad Dayyan5-Feb-10 9:02 
AnswerRe: How does the method work ? Pin
Steve Westbrook5-Feb-10 9:08
Steve Westbrook5-Feb-10 9:08 
GeneralRe: How does the method work ? Pin
Mohammad Dayyan5-Feb-10 9:14
Mohammad Dayyan5-Feb-10 9:14 
AnswerRe: How does the method work ? Pin
Luc Pattyn5-Feb-10 9:23
sitebuilderLuc Pattyn5-Feb-10 9:23 
GeneralRe: How does the method work ? Pin
Mohammad Dayyan5-Feb-10 9:27
Mohammad Dayyan5-Feb-10 9:27 
GeneralRe: How does the method work ? Pin
Mohammad Dayyan5-Feb-10 9:35
Mohammad Dayyan5-Feb-10 9:35 
AnswerRe: How does the method work ? Pin
Luc Pattyn5-Feb-10 10:02
sitebuilderLuc Pattyn5-Feb-10 10:02 
GeneralRe: How does the method work ? Pin
Mohammad Dayyan5-Feb-10 10:10
Mohammad Dayyan5-Feb-10 10:10 
AnswerRe: How does the method work ? Pin
Pete O'Hanlon5-Feb-10 10:04
mvePete O'Hanlon5-Feb-10 10:04 
GeneralRe: How does the method work ? Pin
Mohammad Dayyan5-Feb-10 10:09
Mohammad Dayyan5-Feb-10 10:09 
QuestionApplication updates Pin
Jeroen De Dauw5-Feb-10 8:47
Jeroen De Dauw5-Feb-10 8:47 
AnswerRe: Application updates Pin
Giorgi Dalakishvili5-Feb-10 8:57
mentorGiorgi Dalakishvili5-Feb-10 8:57 

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.