Hi-
I have a simple windows application that has a listbox control and few others .The list box control has a Context menu enabled on each of the List items.I want to disable the context menu conditionally. I' m at loss of solutions at this point. All the searches are suggesting it is not possible without wndproc method. I do not know if this is the right one or if there is another method to do this.Please advice.
Thanks
private void editToolStripMenuItem_Click(object sender, EventArgs e)
{
bool isapproved = true;
Company c = lstCompany.SelectedItem as Company;
index = lstCompany.SelectedIndex;
using (NewCompanyForm form = new NewCompanyForm(c))
{
form.ShowDialog();
if (form.DialogResult == DialogResult.OK)
{
LoadCompanyList(enableProduct);
GetAllUsers ...
Go to the complete details ...