advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
Partners & Affiliates
advertisement
advertisement
advertisement
Average Rating: 1/5 | Rate this item | 1 user has rated this item.
 

Creating Controls by Hand in the .NET Compact Framework

Using the visual drag-and-drop tools in Visual Studio is the easiest way to code controls but sometimes it's impractical, especially when working with applications meant for handheld devices. Learn how to hand-code new controls on the fly.  


advertisement
here will be times when you'll need to hand-code your .NET Compact Framework controls, without using the drag-and-drop feature of Visual Studio .NET. For example, you may not know how many controls to create during design time, and thus during runtime you need to create them explicitly using code.

A good example is the use of a context menu. The options in a context menu may be obtained from a Web service, and so you need to dynamically create the context menu when the program is running.

In this article, I will show you how to create controls dynamically and how to "wire" them up to event handlers.



I need to create a control for my handheld application on the fly at runtime, without going back to the visual environment.



Hand-code your controls directly into your project and then connect them with event handlers.

  Next Page: Four Buttons and a Menu
Page 1: IntroductionPage 2: Four Buttons and a Menu
Please rate this item (5=best)
 1  2  3  4  5
advertisement
Advertising Info  |   Member Services  |   Permissions  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs