Searching...
Sunday 22 July 2018

Using ComboBox in C#(sharp)




Using ComboBox in C#(Sharp) 2017 version comboBox basic option create win form in Visual basic to create a comboBox we'are create a combo box with visual basic 2017 its very basic language to use and easy to learn this language is user friendly visual basic language oop its very basic option
open vb(visual basic) 
select lable
select combo box
select textbox
select buttons
these are basic option to create a like this win form
using comboBox in C#
Coding to create this form

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApp11 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { comboBox1.Items.Add(textBox1.Text); textBox1.Clear(); textBox1.Focus(); } private void button2_Click(object sender, EventArgs e) { MessageBox.Show("Total Items :" + comboBox1.Items.Count); } private void button3_Click(object sender, EventArgs e) { comboBox1.Items.Remove(comboBox1.SelectedItem); } private void button4_Click(object sender, EventArgs e) { Application.Exit(); } } }

code this application to create in c#(sharp) using comboBox in vb

3 komentar: