I'm sorry, but you have to be kidding. There is nothing "short" about this code excerpt. Plus, how are we supposed to figure out what's going on if you neither describe what the code is supposed to be doing, nor what it is actually doing?
Oh my God, I dont know how to make that short because I guess this is the shortest it can be. All the codes here are necessary to run the program and address my problem.
This program is a notepad... The problem here is that I am trying to make the program capable of using undo but the problem is it cannot tell weather an action happened. [ July 11, 2008: Message edited by: eLL Pascual ]