This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hallo! In my application if a button is pressed a new object is created. i want my button to stay enabled but if the user presses it again i want to display an error message. what do i put into the if statement to check if the object has already been created? Thanx a lot!
You can check the reference to the object for null:
It's bizarre to me that you specifically said you want to leave the button enabled even though it will definitely result in an error if the user presses it. This sounds like a pretty hostile UI. Disable it, and enable it only when pressing it won't result in an error. sev
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: How do i check if an object has been created?