i send the attach file of design page.
in that
design page in run mode when user first click the working days of combo box i want to show the message as first select the employee id and then select the working days combo box
please send the code.
Regards,
RAO
Satyapriya NayakPosted Dec 5, 2012, 7:25 AM
Satyapriya NayakPosted Jul 11, 2012, 10:26 AM
Please explain the question deep and clearly.
Try this...
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Test_windows_app
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
comboBox1.Items.Add("Select");
comboBox2.Items.Add("e001");
comboBox2.Items.Add("e002");
comboBox2.Items.Add("e003");
Combo();
}
private void Combo()
{
int i;
for (i = 1; i <= 29; i++)
{
comboBox1.Items.Add(i);
}
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox2.SelectedIndex == -1)
{
if (comboBox1.Items.Contains(comboBox1.SelectedItem) == true)
{
MessageBox.Show("Please select employee id");
comboBox1.Items.Clear();
Combo();
}
}
}
}
}
Thanks
If this post helps you mark it as answer
Santhosh Kumar JayaramanPosted Jul 11, 2012, 9:51 AM