Posts

Showing posts with the label form

Showing Current Selection in a Modeless Form

Image
Showing Current Selection in a Modeless Form There is a question post in the AutoCAD .NET discussion forum here. I happened to have a similar requirement in one of my recent development projects. So, instead of post a reply in the discussion forum there, I though it would be easier to post a relatively simple and run-able project for the benefit of all readers. The project is fairly easy and is comprised of 3 classes. Class CurrentSelectionWatcher : using  System; using  Autodesk.AutoCAD.ApplicationServices; using  Autodesk.AutoCAD.EditorInput; using   CadApp  = Autodesk.AutoCAD.ApplicationServices. Application ; namespace  ShowSelectionChange {      public   class   CurrentSelectionWatcher     {          private   frmSelection  _view =  null ;          private   bool  _show =  false ...

What to expect form CES 2014

Image
What to expect form CES 2014 What to expect form CES 2014 When one thinks of Las Vegas, mobile gadgets are far from the first thing that comes to their mind. They�re probably not even in the top five list. But as any devoted geek should know, for the past 15 years, Sin City has been the host for one of the world�s largest technology trade shows � the Consumer Electronics Show, or CES for short. During the event, which is set to begin on January 7, 2014, both major and not-so-major electronics manufacturers will get together under one roof to showcase their latest products and innovations. And to no surprise, many new smartphones and tablets get announced each year at CES, which is why we�ve always followed the show with a great dose of interest. Now, while CES is an event that gets a lot of attention from the media, prior to its launch, there�s usually very little information as to what exactly is going to be unveiled. However, there�s plenty of leaks for us to analyse and use to make ...

Showing and Closing Modeless Form Dialog Box With System Windows Forms Form

Image
Showing and Closing Modeless Form Dialog Box With System Windows Forms Form When programming AutoCAD, there are 2 styles of dialog box can be shown: Modal Dialog Box and Modeless Dialog Box . Modal dialog box is usually used for collecting user inputs, while modeless dialog box is more focused on showing information. While the dialog box displayed, modal dialog box blocks user from direct interaction with AutoCAD (that is, user cannot interact with AutoCAD UI until the modal dialog box is dismissed. But it DOES NOT mean AutoCAD stops its processing until the modal dialog box is closed), modeless dialog box floats on top AutoCAD UI and user can still interact with AutoCAD UI. With AutoCAD .NET API, one can use either Windows Form or WPF Window as dialog box. This discussion is limited to Windows Form, because it is still used far more often than WPF window. System.Windows.Forms.Form class has 2 methods to show a form: ShowDialog() and Show(). The former shows a form as modal form and t...