PC Review


Reply
Thread Tools Rate Thread

[2008] Clear contents of textbox, reverting transaction with textbox method undo

 
 
Rob W
Guest
Posts: n/a
 
      6th Mar 2009
Greetings,

I have a form with a file menu "Delete" which clears all selected text in a
textbox.

The issue being is that I want to be able to undo this transaction using
tetxbox.undo.

The delete procedure using textbox.text ="" OR textbox.clear() BOTH result
in the command textbox.CanUndo being FALSE.

How can I make this delete procedure work with an undo?

I am trying to replicate the functionality provided in wordpad where
selected text can be deleted and then the transaction can be undone.

Thanks
Rob


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy contents of one textbox to another textbox on the same form mgolding General Software 0 14th Sep 2011 11:05 PM
Vb.net 2008: Textbox Undo method issue? Rob W Microsoft VB .NET 8 11th Mar 2009 08:35 AM
VS 2008 update causes VS2005 to no longer clear undo history on document close PJ6 Microsoft Dot NET 1 17th Jan 2009 04:57 AM
Javascript populated TextBox reverting on PostBack Pselus Microsoft ASP .NET 2 20th Oct 2008 03:53 PM
clear textbox contents dirt Microsoft Excel Programming 3 27th Jan 2004 04:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:50 PM.