Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7049427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:00:47+00:00 2026-05-28T03:00:47+00:00

My first post, be gentle! Im developing my own user controls for AutoCAD 2011

  • 0

My first post, be gentle!

Im developing my own user controls for AutoCAD 2011 and cant for the life of me figure out how to interrupt the close on the User Control and insert my own functions before carrying on with the close.

Just for clarity here is a capture.

https://i.stack.imgur.com/ncMIk.jpg

Basically before the window closes I need to clear a few of my own layers hidden behind the model space, because if the user can just close the tool and carry on without performing the wipe its going to cause issues eventually when it comes to adding new objects/saving/etc. I certainly cant trust a user to click a “Wipe” button on the UC before exiting, thats just asking for trouble.

So my question is: Where am I looking in the API for the code that closes the user control?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:00:48+00:00Added an answer on May 28, 2026 at 3:00 am

    Acad palettes are not actually closed (disposed) when you click on the ‘X’ mark. They are just hidden.
    You might want to try the PaletteState::StateChanged event. It might be triggered when you ‘close’ the palette set. Just register a delegate for that event and see if it is called. Might work.

    * EDIT *
    Now that I think more about it, you should be able to catch that event by registering a delegate to the Control.VisibleChanged event of your custom control. The one that you add as a child to the PaletteSet. That should work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Its my first post and I'm really rusty on MSSQL so be gentle :-)
This is my first post, so please be gentle. I've been playing around with
This is my first post on this forum (so please be gentle ) I'm
This is my first post on StackOverflow, so please be gentle... I have some
This is my first post here - so be gentle :-) I want to
This is my first post on SO, so be gentle. I'm not even sure
My first post to Stack Overflow so be gentle please! I am about to
First post ever so please forgive if I am out of line. StreamWriter noteswriter
My first post here, please be gentle. =) I work for a company that
first post don't hurt me :) I am using a BorderLayout with the usual

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.