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
Nice good work
ReplyDeleteBest blog for learning
ReplyDeleteBest blog for learning
ReplyDeleteClick to see the code!
To insert emoticon you must added at least one space before the code.