Click here to Skip to main content
15,886,840 members
Home / Discussions / C#
   

C#

 
AnswerRe: Deserialize Pin
dan!sh 2-Jan-14 21:02
professional dan!sh 2-Jan-14 21:02 
QuestionHow to save data in c# Pin
gaurav23252-Jan-14 18:24
gaurav23252-Jan-14 18:24 
QuestionRe: How to save data in c# Pin
Richard MacCutchan2-Jan-14 21:31
mveRichard MacCutchan2-Jan-14 21:31 
AnswerRe: How to save data in c# Pin
OriginalGriff2-Jan-14 21:35
mveOriginalGriff2-Jan-14 21:35 
AnswerRe: How to save data in c# Pin
Eddy Vluggen3-Jan-14 6:24
professionalEddy Vluggen3-Jan-14 6:24 
QuestionFilter list of classes by ComboBox. Harder than I thought. Pin
dudz artiaga2-Jan-14 4:10
dudz artiaga2-Jan-14 4:10 
AnswerRe: Filter list of classes by ComboBox. Harder than I thought. Pin
Ravi Bhavnani2-Jan-14 5:24
professionalRavi Bhavnani2-Jan-14 5:24 
AnswerRe: Filter list of classes by ComboBox. Harder than I thought. Pin
Eddy Vluggen2-Jan-14 9:06
professionalEddy Vluggen2-Jan-14 9:06 
Please, when posting a question, throw in some code to discuss. If below does not what you expected, then I probably misinterpreted your question. When including code, please wrap in <PRE> tags. I've included some linenumers so we can easily refer to parts of the code using it's linenumber.
C#
  1  class Program 
  2  {
  3      // I have list of classes (say class Person with FirstName and LastName as property).
  4      class Person 
  5      {
  6          public string FirstName { get; set; }
  7          public string LastName { get; set; } 
  8      } 
  9  
 10      static void Main(string[] args)
 11      {
 12          using (var f = new Form())
 13          {
 14              // I have combobox that is dynamically populated 
 15              // whose items are the class's properties 
 16              // (in this case FirstName and LastName).
 17              var cmb = new ComboBox() 
 18              { 
 19                  Dock = DockStyle.Top, 
 20                  DataSource = typeof(Person)
 21                                  .GetProperties()
 22                                  .Select(p => p.Name)
 23                                  .ToArray()
 24              };
 25  
 26              // I want to filter the list whose property selected 
 27              // in the combobox contains the text written in the textbox.
 28              var theTextBox = new TextBox()
 29              {
 30                  Dock = DockStyle.Top
 31              };
 32  
 33              // ..think, think - you want IntelliSense!
 34              theTextBox.TextChanged += delegate
 35              {
 36                  string zeTextDatWeNeed = theTextBox.Text;
 37                  cmb.DataSource = typeof(Person)
 38                      .GetProperties()
 39                      .Select(p => p.Name)
 40                      .Where(p => p.Contains(zeTextDatWeNeed))
 41                      .ToArray();
 42              };
 43   
 44              f.Controls.AddRange(new Control[]{ theTextBox, cmb });
 45              f.ShowDialog();
 46          }

Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

Question[Solved] Getting non-null / non-zero cells from Excel using Cells.Find Pin
emma.sun.sts1-Jan-14 22:25
emma.sun.sts1-Jan-14 22:25 
AnswerRe: Getting non-null / non-zero cells from Excel using Cells.Find Pin
Eddy Vluggen2-Jan-14 8:12
professionalEddy Vluggen2-Jan-14 8:12 
GeneralRe: Getting non-null / non-zero cells from Excel using Cells.Find Pin
emma.sun.sts5-Jan-14 19:25
emma.sun.sts5-Jan-14 19:25 
AnswerRe: Getting non-null / non-zero cells from Excel using Cells.Find Pin
TnTinMn5-Jan-14 16:00
TnTinMn5-Jan-14 16:00 
GeneralRe: Getting non-null / non-zero cells from Excel using Cells.Find Pin
emma.sun.sts14-Jan-14 21:16
emma.sun.sts14-Jan-14 21:16 
QuestionN-Tier C# Master Detail Pin
ahmed_one1-Jan-14 21:23
ahmed_one1-Jan-14 21:23 
AnswerRe: N-Tier C# Master Detail Pin
Eddy Vluggen2-Jan-14 8:07
professionalEddy Vluggen2-Jan-14 8:07 
QuestionRe: N-Tier C# Master Detail Pin
ahmed_one2-Jan-14 17:25
ahmed_one2-Jan-14 17:25 
AnswerRe: N-Tier C# Master Detail Pin
Eddy Vluggen3-Jan-14 6:37
professionalEddy Vluggen3-Jan-14 6:37 
GeneralRe: N-Tier C# Master Detail Pin
ahmed_one3-Jan-14 17:32
ahmed_one3-Jan-14 17:32 
GeneralRe: N-Tier C# Master Detail Pin
Eddy Vluggen4-Jan-14 5:28
professionalEddy Vluggen4-Jan-14 5:28 
GeneralRe: N-Tier C# Master Detail Pin
ahmed_one5-Jan-14 22:31
ahmed_one5-Jan-14 22:31 
GeneralRe: N-Tier C# Master Detail Pin
Eddy Vluggen7-Jan-14 9:18
professionalEddy Vluggen7-Jan-14 9:18 
QuestionMessage Closed Pin
1-Jan-14 17:24
Member 104982291-Jan-14 17:24 
AnswerRe: Seeking experienced Forex programmer to code EA in C# for PFSoft Protrader 3 Pin
Dave Kreskowiak1-Jan-14 17:52
mveDave Kreskowiak1-Jan-14 17:52 
GeneralRe: Seeking experienced Forex programmer to code EA in C# for PFSoft Protrader 3 Pin
OriginalGriff1-Jan-14 22:04
mveOriginalGriff1-Jan-14 22:04 
GeneralRe: Seeking experienced Forex programmer to code EA in C# for PFSoft Protrader 3 Pin
Dave Kreskowiak2-Jan-14 4:45
mveDave Kreskowiak2-Jan-14 4:45 

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.