![]() |
|
[VB.NET] التراجع عن الأمر (undo) - نسخة قابلة للطباعة +- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb) +-- قسم : قسم لغة الفيجوال بيسك VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=182) +--- قسم : قسم اسئلة VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=183) +--- الموضوع : [VB.NET] التراجع عن الأمر (undo) (/showthread.php?tid=14077) |
التراجع عن الأمر (undo) - visualist2015 - 10-12-15 السلام عليكم كيف يمكن برمجة زر للتراجع عن أمر معين .. كمثل (undo) (ctrl+z ) بالفيجوال بيسك RE: التراجع عن الأمر (undo) - Adrees - 10-12-15 مثلا اذا اردت التراجع عن امر معين من مربع نص استخدم الكود التالي PHP كود : TextBox1.Undo() RE: التراجع عن الأمر (undo) - hamada558 - 10-12-15 بعتقد ان بعض الادوات تقبل تراجع مرة واحدة فاذا كان المطلوب تراجع اكثر من مرة محتاجة مكدس Stack يلي هو ما يضاف أخيرا يسحب اولا (فكرة رص الاطباق). وفكرة Stack بيتم الاضافة ليها ب Push والسحب منها ب Pop . وهاد رابط لموضوع (Multiple undo and redo in richtextbox - VB.NET) بعتقد فيه يلي تريده https://social.msdn.microsoft.com/Forums/vstudio/en-US/1b15f904-133a-4e00-a67a-d1db8db5b2c1/multiple-undo-and-redo-in-richtextbox-vbnet?forum=vbgeneral#dce45ac5-e5cf-4c45-9509-c47b0795aee2 نقلت المشاركة من الرابط للتسهيل عليكم Hi,
Here is a Class that i have that i don`t remember where it came from but, it is for multiple Undo/Redo actions. It also has some other options like Clear, CanUndo, and CanRedo that is pretty handy. You can add a class to your project by clicking (Project) on the VB menu and selecting (Add Class). Then copy this code to it. كود : Public Class UndoRedoClass(Of T)Then as an example of using the class to Undo and Redo text in a RichTextBox on your Form you would use it like this. كود : Public Class Form1If you say it can`t be done then i`ll try it Proposed as answer by .paul. _ Thursday, October 02, 2014 2:39 AM Marked as answer by JDS404 Thursday, October 02, 2014 6:55 PM Wednesday, October 01, 2014 9:34 PM IronRazerz |