Use C # and VB. NET to implement VS. NET or Office XP menus (1)

Source: Internet
Author: User

 

Use C # and VB. NET to implement VS. NET or Office XP menus

Stingy god 2001.08.18

VS. NETOrOffice XPThe menu in is very beautiful. I like it very much. PityVS. NETThere are no controls or components with such menus. I wonder if a template and Wizard will be provided in the official version. I still remember using it when I was learning computer languages.Turbo CThe rectangular box functions and pixel operations are really fascinating for creating menus, and they were so popular at that time.

In this article, I will introduceFramework SDK Beta 2Make your own style menu, so you 'd better have installedFramework SDK Beta 2,VS. NET Beta 2Not necessarily required. AttachedZipThe examples in the package are allVS. NET Project.

The entire article includes three parts:

At first, I will be involved inWinformThe most basic menu concepts.

Then there will be an example of a previously used menu, which isFor Beta 1. Honestly, I didn't thinkBeta1ToBeta2Many functions and namespaces have changed.Beta1This example was tested successfully. This timeBeta2There will be many errors. I provide twoProject, One is the originalProjectOne is after I modifyFor Beta 2. This kind of porting is boring, but you can quickly get familiar with newBeta2Class Libraries and functions,ShowThe menu is not bad.Office2000Style menu. If you are interested, you can try this process. This example also includes buttons. The original author is actuallyDemoThe"Owner-drawn menus"Technology; however, I am only interested in the menu.

The last part is production.VS. NETOrXPStyle example: The effect of the above example cannot satisfy me completely. Then I wrote another one, but I am not satisfied with the final result, this is because I am not as complete as in the previous example. In this example, only menus of this style are displayed. For Event Response, status bar update,Tooltips, Menu status (Enabled state) I didn't think about the processing. I thought of it as a matter of time and promised to do it better next time.

1.Framework SDK Beta 2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.