Click here to Skip to main content
15,913,773 members
Home / Discussions / C#
   

C#

 
AnswerRe: How do you create skins in c-sharp .net, or atleast custom-made buttons? Pin
S Sansanwal23-Aug-04 18:35
S Sansanwal23-Aug-04 18:35 
QuestionHashtable reading text file??? Pin
gman4423-Aug-04 12:50
gman4423-Aug-04 12:50 
AnswerRe: Hashtable reading text file??? Pin
Nick Parker23-Aug-04 13:36
protectorNick Parker23-Aug-04 13:36 
GeneralRe: Hashtable reading text file??? Pin
gman4423-Aug-04 14:50
gman4423-Aug-04 14:50 
GeneralRe: Hashtable reading text file??? Pin
Kika_24-Aug-04 1:46
Kika_24-Aug-04 1:46 
GeneralUndo/Redo and dynamic lists in Property Grid Pin
smartyosu23-Aug-04 12:33
smartyosu23-Aug-04 12:33 
GeneralRe: Undo/Redo and dynamic lists in Property Grid Pin
leppie23-Aug-04 21:44
leppie23-Aug-04 21:44 
GeneralRe: Undo/Redo and dynamic lists in Property Grid Pin
Heath Stewart24-Aug-04 7:33
protectorHeath Stewart24-Aug-04 7:33 
Read Enhancing Design-Time Support[^] in the .NET Framework SDK. TypeConverters (as leppie was vaguely referring to), UITypeEditors, and more are at your disposal for implementing effective design-time support, such as drop downs, modal dialogs (like collection editors, for example), andmore.

The DesignerTransaction that leppie mentioned won't actually let you under and redo. It will - like transactions in SQL - let you rollback (in this case, not commit, though) changes or commit them depending on conditions that you implement (for example, the user didn't set a property so rollback all property changes).

There is no undo and redo provided in .NET, but there are many articles here on CodeProject that discuss different alternatives (and more on the Internet, though few regarding .NET). It's really not a simple problem at all and is very specific to an application (there's really no way to provide a universal undo/redo engine).

If you are designing a design-time component for use in other applications, then undo/redo functionality is already provided to you: VS.NET does it. You have to switch to code view, but you can undo changes there. Keep in mind that designers - for the most part - use the CodeDom to modify your source code (VS.NET does most of the work unless designers implement their own code serializer). They may, however, write to other files (like a ResX file) so this won't always work.

 

Software Design Engineer
Developer Division Sustained Engineering, Microsoft
My Articles
GeneralForcing a class to provide a specific ctor Pin
matthias s.23-Aug-04 11:45
matthias s.23-Aug-04 11:45 
GeneralRe: Forcing a class to provide a specific ctor Pin
Werdna23-Aug-04 12:09
Werdna23-Aug-04 12:09 
GeneralThanks! Pin
matthias s.23-Aug-04 12:55
matthias s.23-Aug-04 12:55 
GeneralRe: Forcing a class to provide a specific ctor Pin
Charlie Williams23-Aug-04 12:11
Charlie Williams23-Aug-04 12:11 
GeneralFileStrea,m Pin
Christian Graus23-Aug-04 11:28
protectorChristian Graus23-Aug-04 11:28 
GeneralRe: FileStrea,m Pin
Colin Angus Mackay23-Aug-04 11:36
Colin Angus Mackay23-Aug-04 11:36 
GeneralRe: FileStrea,m Pin
Christian Graus23-Aug-04 11:59
protectorChristian Graus23-Aug-04 11:59 
GeneralRe: FileStrea,m Pin
Heath Stewart24-Aug-04 7:26
protectorHeath Stewart24-Aug-04 7:26 
GeneralPacket Monitor Pin
Member 131332123-Aug-04 11:14
Member 131332123-Aug-04 11:14 
GeneralRe: Packet Monitor Pin
eggie523-Aug-04 15:25
eggie523-Aug-04 15:25 
GeneralRe: Packet Monitor Pin
leppie23-Aug-04 21:46
leppie23-Aug-04 21:46 
GeneralAmazon.com API 4.0 Help Pin
j1e1g123-Aug-04 11:06
j1e1g123-Aug-04 11:06 
GeneralRe: Amazon.com API 4.0 Help Pin
Heath Stewart24-Aug-04 7:21
protectorHeath Stewart24-Aug-04 7:21 
GeneralParallel port Pin
Christian Graus23-Aug-04 10:42
protectorChristian Graus23-Aug-04 10:42 
GeneralRe: Parallel port Pin
Nick Parker24-Aug-04 4:43
protectorNick Parker24-Aug-04 4:43 
GeneralRe: Parallel port Pin
Christian Graus24-Aug-04 11:37
protectorChristian Graus24-Aug-04 11:37 
GeneralRe: Parallel port Pin
Nick Parker25-Aug-04 1:34
protectorNick Parker25-Aug-04 1:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.