Click here to Skip to main content
15,915,501 members
Home / Discussions / C#
   

C#

 
GeneralRe: Connection to access database with C#.net Pin
Rob Graham23-Dec-04 8:56
Rob Graham23-Dec-04 8:56 
GeneralRe: Connection to access database with C#.net Pin
Robske25-Dec-04 1:23
Robske25-Dec-04 1:23 
GeneralRe: Connection to access database with C#.net Pin
Heath Stewart23-Dec-04 5:32
protectorHeath Stewart23-Dec-04 5:32 
GeneralRe: Connection to access database with C#.net Pin
SeMartens23-Dec-04 3:32
SeMartens23-Dec-04 3:32 
GeneralRe: Connection to access database with C#.net Pin
Robske23-Dec-04 4:27
Robske23-Dec-04 4:27 
GeneralRe: Connection to access database with C#.net Pin
Rob Graham24-Dec-04 6:14
Rob Graham24-Dec-04 6:14 
Generalundo implemention Pin
ppp00123-Dec-04 0:34
ppp00123-Dec-04 0:34 
GeneralRe: undo implemention Pin
benjymous23-Dec-04 1:07
benjymous23-Dec-04 1:07 
How you implement undo/redo is entirely dependant on the type of data you're working on.

For example, for a bitmap editor, an incredibly simple way (but somewhat naive) is to have two dynamic stacks - an undo stack and a redo stack.

Every time you change the bitmap, just place a copy of the image before the change onto the undo stack.

When the user selects to undo, push the current bitmap into the redo stack, and pop the top image off the undo stack.

Now if you're smart, you can store just the change in the stack rather than the whole image, which will use less resources


One thing to note is that undo/redo is far easier to implement if it's done from the start - trying to shoehorn undo/redo functionality into an existing application can be incredibly tricky

--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!

GeneralCall external COM object, want to catch S_FALSE return code Pin
ohadp22-Dec-04 21:07
ohadp22-Dec-04 21:07 
Questionhow to share class on vss? Pin
montu337722-Dec-04 20:50
montu337722-Dec-04 20:50 
AnswerRe: how to share class on vss? Pin
Alex Korchemniy22-Dec-04 22:42
Alex Korchemniy22-Dec-04 22:42 
GeneralRe: how to share class on vss? Pin
montu337722-Dec-04 23:14
montu337722-Dec-04 23:14 
General[SQL] Using 'Like' operator for prepared statement Pin
ting66822-Dec-04 19:17
ting66822-Dec-04 19:17 
GeneralRe: [SQL] Using 'Like' operator for prepared statement Pin
Heath Stewart22-Dec-04 19:26
protectorHeath Stewart22-Dec-04 19:26 
GeneralDirectX and C# - Display AVI file Pin
Ahindika22-Dec-04 18:50
Ahindika22-Dec-04 18:50 
GeneralRe: DirectX and C# - Display AVI file Pin
Heath Stewart22-Dec-04 20:00
protectorHeath Stewart22-Dec-04 20:00 
GeneralDatagrid with textbox Pin
marck.santos22-Dec-04 15:15
marck.santos22-Dec-04 15:15 
GeneralRe: Datagrid with textbox Pin
Heath Stewart22-Dec-04 19:33
protectorHeath Stewart22-Dec-04 19:33 
GeneralPassing Value Types by Reference Pin
paulsawyer22-Dec-04 15:00
paulsawyer22-Dec-04 15:00 
GeneralRe: Passing Value Types by Reference Pin
Heath Stewart22-Dec-04 19:17
protectorHeath Stewart22-Dec-04 19:17 
GeneralRe: Passing Value Types by Reference Pin
Salil Khedkar22-Dec-04 19:20
Salil Khedkar22-Dec-04 19:20 
GeneralProblem with Stored Procedure Pin
ronin177022-Dec-04 14:29
ronin177022-Dec-04 14:29 
GeneralRe: Problem with Stored Procedure Pin
Javier Lozano22-Dec-04 18:36
Javier Lozano22-Dec-04 18:36 
Generalproblem auto increment field Pin
Gedrain22-Dec-04 13:30
Gedrain22-Dec-04 13:30 
GeneralRe: problem auto increment field Pin
Skynyrd22-Dec-04 13:35
Skynyrd22-Dec-04 13:35 

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.