.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to remove highlighting form Menu in Winforms

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :Windows Application

Hello All,

I have a .net windows form application in C#. 

I am using a menus for my application in the menu i want to add the separator (not in submenus,).

for that i have added a item in menustrip and given the text as "|" for separator but the problem is that when i am hovering the mouse on that separator then that is becoming highlighted.

So pls tell me how to remove highlighting or how to add the separator in different way then that.


View Complete Post

More Related Resource Links

How to generate List Menu form the DataTable

Hi all,This is my c# code.public partial class HorizontalCssMenu : System.Web.UI.Page{    protected void Page_Load(object sender, EventArgs e)    {        if (!IsPostBack)        {            LoadMenu();        }    }    private void LoadMenu()    {        DataTable dtMenu = LoadData();        StringBuilder sb = new StringBuilder();        foreach (DataRow dr in dtMenu.Rows)        {            if (string.IsNullOrEmpty(Convert.ToString(dr["ParentID"]))                || Convert.ToString(dr["ParentID"]) == "0")            {                sb.AppendLine("<ul>");                sb.AppendLine("<li ID=\"" + Convert.ToString

Remove action that appear in the menu which appears when we right click each individual item in libr

i need to remove or hide edit properties menu from  menu which appears when we right click each individual item in library 

How to remove the horizontal scroll bar from a TextBox on web form

HiHow to remove the horizontal scroll bar from a TextBox on web form.I am using IE8.0<asp:TextBox ID="TextBox1" runat="server" Width="99%" Height="250" Wrap="False" TextMode="MultiLine" ReadOnly="True"></asp:TextBox>The horizontal scroll bar is always visible weather there is text or not, in a disabled mode.And the vertical scrollbar of textbox flickers when I am moving my mouse cursor over anchor tag <a />. For textarea control the scroll bar automatically goes up. I am hiding and showing a div tag on click of anchor tag.Thanksgsalunkhe

Remove Arrow FRom Menu

Is there a way to remove the arrow from the menu when the root item has subitems?  It would look neater if the arrow wasn't there.

How to remove 'Delete Item' from context menu of a programmatically created list?

How to remove 'Delete Item' from context menu of a programmatically created list?
I have document library which is created programmatically but now I don't want to have 'Delete Item' in context menu of that document library. Are there any possibilites?

Place controls on form (WinForms C#)


Hello! I cannot place controls on form and set them to be resized on resizing whole window (or when it is maximized).

I have a ListView at the bottom (docked to bottom border), a TabControl at the leftside (docked left) and all other area should be filled by one more control - WebBrowser. But if I dock it to FILL all area it goes behind tabcontrol and listview... what am I doing wrong here?

Can't Submit Form Unless Remove ASP .NET Server-Side Form


Something has been driving me nuts about a project  I'm working on.  Long story short: I have a small form that submits a user's name, email address, and a few hidden fields to an external vendor's website.  It works-but ONLY if I remove the "outer" ASP .NET server-side form!  If I don't do that, the page from which I'm submitting the form simply refreshes itself, and the form never gets submitted.


Highlighting Menu during sub-menu hover


I can highlight a menu-itm when the mouse is hovering over it.  How do I highlight a menu item when a sub-menu item is hovered?  I have a 4 level menu, 2 static accross the top, one drop-down, and one pop-out from the drop-downs.

While selecting level-4 items, it is a little confusing as to which level-3 item is being popped-out because I have alot of level 3 and level 4 items.  I want the appropriate level 3 item highlighted while hovering over its level 4 popout.

Problem merging toolstrip control placed in UserControl with MDI Form menu


I currently have an MDI application with a MenuStrip as Main Menu. The application has a child form where an instance of one UserControl with a MenuStrip is dynamically created when the form is loaded. The MenuStrip contained on this UserControl is correctly merged with the Menu of the MDI container. In response to a button click on the child form, an instance of another UserControl is created, containing a different Menu and the previously UserControl instance is discarded. The expected action is that the menu of the second UserControl will replace the menu of the first UserControl on the MDI container menu, but this is not happening and the main menu keeps the menu items of the first UserControl.

How can I force the merging of the menu contained on the second user control with the Main Menu.

Thanks in advance.

How to hide/remove "Alert Me" action menu item from Custom List/Document Library?


Hi All,


I am using Sharepoint 2007 (MOSS).

I want to hide/remove "Alert Me" action menu item from Custom List/Document Library for my Sharepoint site.


any help will be appreciated.



Please,How to remove a element form AttributeCollection?



      Please,How to remove  a element form AttributeCollection?

       Adding a element may use  AttributeCollection.FromExisting(),but removing a element should use what? 

Null values doesnot show up in custom edit form in a drop down choice menu


Hello guys,

I have a problem. I don't know why custom edit form is behaving like that.

I have a choice drop down with values  " ","Yes","No". For custom  new form, I can insert null values and everything is working fine.

But coming to this custom edit form which I created.  While editing, if we set a value to null and submit the form. It is getting the "Yes" as the value. It is skipping the null value and placing the "Yes" value. I have kept the default value for choice drop down as " ".(null too).

I don't know why it is not showing null value. Do guys have any idea or if came across anything like this. Please help

Cannot Remove Form Template

I have tried everything! In Central Admin I tried to upload a new version to an existing template (which I have litterally done over 300 times for this particular form.) Something errored along the way and the feature folder in c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES was removed from the front end server and I don't have a copy. So when I told the form to delete in Manage Form Templates it stuck in Deleting. Everyone says use execadmsvcjobs, so I did, but nothing. I then tried all the stops.. removeformtemplate, removesolution, uninstallfeature (using the feature id obtained from a c# app i got code for on another blog. Now it appears as though the feature is uninstalled but the form remains in the list. All of the above stsadm commands completed successfully by the way. If I tell the form to delete again from Manage Form Templates, it creates a timer job in timer job definitions, but that jobs disappears on its own without any errors in the event veiwer and the form remains in the list. The only funtions I can't run are uploading the form or upgrading the form, all other stsadm commands complete successfully, but the form remains in the list in Central Admin, Manage Form Templates. Please Help!

How remove SSMS plugin menu?


I uninstalled a SQL SERVER tool suite which left over a menu in SSMS (on main menubar). I can click on the menu and menu items, but they do not work and get a prompt:

Microsoft SQL Server Management Studio
The Add-in supporting this command could not be loaded. Do you wish to remove the command?

If you choose yes, you can re-create the command by reinstalling the Add-in.
Yes   No  

How can I remove the menu?

Matrix is real.

Remove Start Web Form Page


How do I remove the 'New'  WebForm Page (Start Page), and go directly to the 'Insert' & 'Cancel' Web Form Page without selecting the 'New' hyper link at http://cforedu.com 


Here is the front page:

<script runat="server">

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)

    End Sub

    Protected Sub DetailsView1_DataBound(ByVal sender As Object, ByVal e As System.EventArgs)

    End Sub

    Protected Sub DetailsView1_ItemInserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewInsertedEventArgs)

    End Sub

    Protected Sub SqlDataSource1_Inserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs)

    End Sub

    Protected Sub DetailsView1_ItemInserted1(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewInsertedEventArgs)

    End Sub

<head id="Head1" runat="server">
  <title>GridView DetailsView Master-Details (Insert)</title>
  <form id="form1" runat="server">
    <b>Choose a state:</b>
    <asp:DropDownList ID="DropDownList1" DataSourceID="SqlD

how to complete remove viewstate form my page


i m working eith two pages on is parent n one is child , after clossing child page it gives me error so i want to complete  remove viewstat from my page

how can i remove it im using jQuey facebox, n in vb.net

i found this code but not working

or no idea where to put this for remove it

  1. Protected Overrides Sub SavePageStateToPersistenceMedium(ByVal viewState As Object)
  2.     End

Creating Menu Dynamically and Show form dynamically in Windows Forms


Dear All,

I am using a splitter control in windows forms. Left panel is having menus which I have populated from Database. And Right panel should display forms according to the selection from left pan.

For Eg. I  have a Main menu called Forms and got 5 Sub menus names  form1,form2,form3,form4 and form5 .When I click Form1 in Menustrip it should display Form1 on the right panel . And the same goes for all the menus.

Can you somebody guide me how can I achieve that

Best Regards


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend