Пример #1
0
        public void AddTrackBar(ListViewItem item)
        {
            TrackBar tb = new TrackBar();

            tb.Minimum       = 0;
            tb.Maximum       = 255;
            tb.TickFrequency = 10;
            tb.AutoSize      = false;
            tb.TickStyle     = System.Windows.Forms.TickStyle.TopLeft;
            try
            {
                tb.Value = Convert.ToInt32(item.SubItems[3].Text);
            }
            catch
            {
                tb.Value = 0;
            }
            //RSSIListView.Items.Add(item);
            tb.ValueChanged += new EventHandler(tb_ValueChanged);
            RSSIListView.AddTBEmbeddedControl(tb, 3, item.Index);
        }