CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of WinForm
C#
namespace WindowsFormsApplication1
{
    public partial class Form1 : System.Windows.Forms.Form
    {
        public Form1()
        {
            InitializeComponent();
 
            // create list of data
            var _List = new System.Collections.Generic.List<Data> 
by Jerry Nixon   January 24, 2011 @ 2:17pm
1387 Views
1 comments
 
C#
private void button_Click(object sender, EventArgs e) 
{ 
    // pass in the containing panel 
    LoadControl<MyControls.MyControl>(panelContainer); 
} 
 
void LoadControl<T>(Panel panel) where T : Control, new() 
{ 
    T _Control = GetControl<T>(panel); 
    if (_Control == null) 
by Jerry Nixon   March 05, 2010 @ 8:17am
538 Views
no comments
 
C#
 
   public class ListUtils
   {
       /// <summary>
       /// Manual ComboBox binding and adding a first item
       /// 
       /// Assumes you're binding to an enumerable list of some sort
       /// and you're binding to Properties (not fields)
       /// </summary>
       public static void BindWithFirstItem(IEnumerable items, ComboBox listBox,
by Rick Strahl   October 27, 2009 @ 3:46pm
702 Views
1 comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate