473,698 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MainMenu in 2005?

cj
I don't see the mainmenu item in the toolbox of 2005. I guess I haven't
created a project in 2005 using it yet. I know I upgraded some from
2003 to 2005 and they show the control mainmenu on the form1.vb design
page. What do I use? Menustrip?
Jan 2 '07 #1
4 1776
cj
Ah, so in upgraded projects it uses menustrip but changes the name to
MainMenu1 as that is what it was called in 2003.

cj wrote:
I don't see the mainmenu item in the toolbox of 2005. I guess I haven't
created a project in 2005 using it yet. I know I upgraded some from
2003 to 2005 and they show the control mainmenu on the form1.vb design
page. What do I use? Menustrip?
Jan 2 '07 #2
Hi Cj,

Yes, the .Net1.1 MainMenu component is a simple wrapper around the Win32
menu support, which provided limited extensible function to the Winform
developer, so are ToolBar, StatusBar and ContextMenu. So the Microsoft
Winform team introduced new ToolStrip, MenuStrip, StatusStrip,
ContextMenuStri p components in .Net2.0 to replace ToolBar, MainMenu,
StatusBar and ContextMenu. These new components provided much more complex
and richer extensible function.

This initiative is covered in the link below:
http://windowsforms.net/WhidbeyFeatu...ItemID=14&Cat=
Controls&tabind ex=5

Since there are 8 components in .Net2.0 now, to not introduce any
confusion, .Net Winform team just removes the old .Net1.1 components from
the ToolBox and recommend developers to use the new components suite. Also,
you still can follow the steps provided by "Kerry Moorman" to add the new
components back.

Additionally, http://www.windowsforms.net is the first official Winform
site maintained by Microsoft. You may find much useful information on it.
More specific, the following page is the official homepage for Winform
Net2.0. It contains most of the new features in .Net2.0, including FAQs,
samples, presentations etc... It should provide you a short cut of learning
Winform2.0:
http://windowsforms.net/Default.aspx...dex=1&tabid=60

Hope it helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 3 '07 #3
cj
I suppose this change is why the menu strip when used as a main menu
seems to take form space. For instance if I have a menu strip main menu
and then I put a label on the form at position 4,10 it overlaps the
menu. In programs converted from 2003 with a main menu in them if I add
a label to the form and position it at 4,10 it doesn't overlap the menu.

Jeffrey Tan[MSFT] wrote:
Hi Cj,

Yes, the .Net1.1 MainMenu component is a simple wrapper around the Win32
menu support, which provided limited extensible function to the Winform
developer, so are ToolBar, StatusBar and ContextMenu. So the Microsoft
Winform team introduced new ToolStrip, MenuStrip, StatusStrip,
ContextMenuStri p components in .Net2.0 to replace ToolBar, MainMenu,
StatusBar and ContextMenu. These new components provided much more complex
and richer extensible function.

This initiative is covered in the link below:
http://windowsforms.net/WhidbeyFeatu...ItemID=14&Cat=
Controls&tabind ex=5

Since there are 8 components in .Net2.0 now, to not introduce any
confusion, .Net Winform team just removes the old .Net1.1 components from
the ToolBox and recommend developers to use the new components suite. Also,
you still can follow the steps provided by "Kerry Moorman" to add the new
components back.

Additionally, http://www.windowsforms.net is the first official Winform
site maintained by Microsoft. You may find much useful information on it.
More specific, the following page is the official homepage for Winform
.Net2.0. It contains most of the new features in .Net2.0, including FAQs,
samples, presentations etc... It should provide you a short cut of learning
Winform2.0:
http://windowsforms.net/Default.aspx...dex=1&tabid=60

Hope it helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Jan 3 '07 #4
Hi Cj,

Yes, you are right.

MainMenu encapsulates Win32 menu resource to implement the main menu, its
area is considered as non-client area(like the caption bar which is also
the non-client area) on a form. Since the Label control can only occupy the
client area of the form, so label control can not overlap the MainMenu area.

MenuStrip provides more extensible behavior, so it did not use the Win32
menu resource, but created a customized control to simulate the menu
effect. If you use Spy++ to view the MenuStrip control structure, you will
see MainMenu is not considered as a control, but MenuStrip is recognized as
a control. Its window class name is something like this:
"WindowsForms10 .Window.8.app.0 .33c0d9d". As a normal control, MenuStrip
occupies the client area of the form, so the label control can overlap the
MenuStrip.

Hope this is clear.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 4 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1626
by: Anand Ganesh | last post by:
Hi All, I am trying to create a control - .dll file. In the toolbox the MainMenu tool is disabled. What should I do to invoke it? Why is it disbaled?
6
1984
by: Jason Huang | last post by:
Hi, In VB, we have windows control item "MainMenu", do we have this item in the ASP.Net C# web form? Or how could we make it? By the way, how about the ASP.Net 2005? Thanks for help. Jason
5
1405
by: Mitchell Vincent | last post by:
A picture says a thousand words, so here are 2! Design Time: http://www.ksoftware.net/examples/Clip1.jpg Run Time: http://www.ksoftware.net/examples/Clip2.jpg The problems started when I added that MainMenu control. It almost looks as if it is resizing to make room for a status bar at the bottom - but
2
2164
by: polocar | last post by:
Hi, I'm writing a program using Visual C# 2005 Professional Edition, and I was trying to assign multiple MainMenu objects (one by one, of course) to the same Form (let's suppose 2 MainMenu objects). It is possible (and it's my case) that these 2 MainMenu objects use some different MenuItem objects and some identical MenuItem objects. For example, let's assume that: mainMenu1 contains miFile, miEdit, miHelp mainMenu2 contains miFile,...
0
2961
by: genojoe | last post by:
Included below are four methods and a Friend that can be inserted directly into a form that already contains Button1, Button2, and MenuStrip1. Button1 populates the MainMenu control, button2 populates the MenuStrip control. The MainMenu is from legacy 2003 and works fine. I want to upgrade to the MenuStrip but cannot find a way to duplicate legacy code. Shown below is my best effort. I am having two problems. #1: ToolStripMenuItem...
1
1326
by: Benson | last post by:
I have a MainMenu (MenuStrip) which will be loaded (dynamic by codes) after the program Login form. The first time run is ok. But when I close the MainMenu and go back to Login form, and then go to MainMenu again, the menu items didn't clear by MainMenu.Items.Clear(). That is: 1. Login -MainMenu.items.clear() -MainMenu (dynamic add menu items by code) =OK 2. Login -MainMenu.items.clear() -MainMenu (dynamic add menu items by code) -Login...
2
4323
by: Fir5tSight | last post by:
Hi, I'm experimenting sample code created in Visual Studio 2002 (or 2003) in my Visual Studio 2005. However, I can't find the following in VS 2005: - MainMenu control in Toolbox; - MergeOrder property for a menu; - MdiList property for a menu.
2
2556
by: Academia | last post by:
In an old project I still use MainMenu and ContexMenu. How can I get them to appear in my Toolbox? Thanks
2
2357
by: lds | last post by:
I am getting the error "The file '/AHSD/MainMenu.aspx' has not been pre-compiled, and cannot be requested." when I try to deploy one of my applications that I am just migrating to VS 2005. I have searched on the web for a solution, but none of the suggestions so far have worked. Here is my scenario: I am using Visual Studio 2005 with SP1 installed and I have created a Web Deployment Project with the following items selected in the...
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9028
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8895
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4369
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2330
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.