Click here to Skip to main content
15,907,497 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: String Manipulation: Insert a character (or two...) Pin
Dave Kreskowiak20-Jun-05 9:24
mveDave Kreskowiak20-Jun-05 9:24 
GeneralRe: String Manipulation: Insert a character (or two...) Pin
Brad Fackrell20-Jun-05 10:07
Brad Fackrell20-Jun-05 10:07 
GeneralDataGrid Question Pin
directred20-Jun-05 5:24
directred20-Jun-05 5:24 
GeneralRe: DataGrid Question Pin
toxcct20-Jun-05 6:11
toxcct20-Jun-05 6:11 
QuestionHow to draw lines then undo ??? Pin
Ray Guan20-Jun-05 4:48
Ray Guan20-Jun-05 4:48 
AnswerRe: How to draw lines then undo ??? Pin
Anonymous20-Jun-05 9:03
Anonymous20-Jun-05 9:03 
GeneralRe: How to draw lines then undo ??? Pin
Ray Guan20-Jun-05 15:00
Ray Guan20-Jun-05 15:00 
AnswerRe: How to draw lines then undo ??? Pin
Christian Graus20-Jun-05 14:55
protectorChristian Graus20-Jun-05 14:55 
GDI+ is responsible for drawing lines. I'd ditch the picturebox and just draw your image on screen. I can't imagine it will add anything and could be a pain.

Undo works one of two ways.

1. Keep copies of all your bitmaps every time a drawing event occurs, so you can go back through them

2. Keep all your actions in a list, so you can remove one, and apply the rest to the original image, resulting in an undo

1. is easier to write, 2. is more memory friendly and flexible.


Christian Graus - Microsoft MVP - C++
GeneralRe: How to draw lines then undo ??? Pin
lespaul3620-Jun-05 15:12
lespaul3620-Jun-05 15:12 
GeneralRe: How to draw lines then undo ??? Pin
Christian Graus20-Jun-05 15:22
protectorChristian Graus20-Jun-05 15:22 
GeneralRe: How to draw lines then undo ??? Pin
Ray Guan20-Jun-05 15:36
Ray Guan20-Jun-05 15:36 
GeneralRe: How to draw lines then undo ??? Pin
Christian Graus20-Jun-05 15:39
protectorChristian Graus20-Jun-05 15:39 
GeneralRe: How to draw lines then undo ??? Pin
Ray Guan20-Jun-05 15:56
Ray Guan20-Jun-05 15:56 
GeneralRe: How to draw lines then undo ??? Pin
Christian Graus20-Jun-05 16:08
protectorChristian Graus20-Jun-05 16:08 
GeneralRe: How to draw lines then undo ??? Pin
lespaul3620-Jun-05 18:57
lespaul3620-Jun-05 18:57 
GeneralRe: How to draw lines then undo ??? Pin
Ray Guan20-Jun-05 15:29
Ray Guan20-Jun-05 15:29 
GeneralRe: How to draw lines then undo ??? Pin
Christian Graus20-Jun-05 15:41
protectorChristian Graus20-Jun-05 15:41 
GeneralRe: How to draw lines then undo ??? Pin
Ray Guan20-Jun-05 15:18
Ray Guan20-Jun-05 15:18 
GeneralRe: How to draw lines then undo ??? Pin
Christian Graus20-Jun-05 15:24
protectorChristian Graus20-Jun-05 15:24 
GeneralRe: How to draw lines then undo ??? Pin
Ray Guan20-Jun-05 15:40
Ray Guan20-Jun-05 15:40 
GeneralRe: How to draw lines then undo ??? Pin
Christian Graus20-Jun-05 15:47
protectorChristian Graus20-Jun-05 15:47 
GeneralRe: How to draw lines then undo ??? Pin
lespaul3620-Jun-05 19:10
lespaul3620-Jun-05 19:10 
GeneralRe: How to draw lines then undo ??? Pin
T-Smooth21-Jun-05 2:01
T-Smooth21-Jun-05 2:01 
GeneralRe: How to draw lines then undo ??? Pin
lespaul3621-Jun-05 11:26
lespaul3621-Jun-05 11:26 
GeneralRecordsets in VB.Net Pin
directred20-Jun-05 4:29
directred20-Jun-05 4:29 

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.