Click here to Skip to main content
16,004,227 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like to make a website home page with a menu that whenever I move mouse on menu item it should be highlighted and space between them.
There will not be drop down list only event on menu item will be fire when I click.
XML
<asp:Menu ID="Menu1" runat="server" BackColor="#66CCFF"

         style="height: 25px " Font-Bold="True" Font-Names="Arial"
         Font-Size="Medium" ForeColor="#CC00CC" Height="27px" Width="388px"
         BorderStyle="Solid" Orientation="Horizontal">
         <Items>
             <asp:MenuItem Text="Home" Value="Home" NavigateUrl="~/WebForm1.aspx"></asp:MenuItem>
             <asp:MenuItem NavigateUrl="~/issuepage.aspx" Text="        Issue Item"
                 Value="Issue Item"></asp:MenuItem>
             <asp:MenuItem NavigateUrl="~/PurchaseItem.aspx" Text="Purchage Item"
                 Value="Purchage Item"></asp:MenuItem>
             <asp:MenuItem NavigateUrl="~/AddUser.aspx" Text="Add User" Value="Add User">
             </asp:MenuItem>
             <asp:MenuItem NavigateUrl="~/AddCategory.aspx" Text="Add Category"
                 Value="Add Category"></asp:MenuItem>
             <asp:MenuItem NavigateUrl="~/Addvendor.aspx" Text="Add Vender"
                 Value="Add Vender"></asp:MenuItem>
             <asp:MenuItem NavigateUrl="~/ReturnItem.aspx" Text="   Return Item"
                 Value="   Return Item"></asp:MenuItem>
         </Items>
     </asp:Menu>
Posted
Updated 18-Nov-11 2:16am
v6

Dont post same question again and again ,u can use comment for any small change.
here is solution i already posted at last question.
First u go through given list for detail concept.
http://ivreddy.com/how-to-create-menu-bar-in-c-sharp-dot-net-windows-application/

Then follow my steps;
1- Drag MenuStrip
2- u will appear Type Here -write there Article as it will be text be display.
3- Double Click on Article menu in design time then articleToolStripMenuItem_Click event will generate.
4- in event write
article f2 = new article();//aricle as ur form name here.
f2.Show();
5-run application.
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900