How To Undo / Redo Multiple Times

Apr 20, 2009

i need this option for a textbox. the undo/redo in two separate buttons and it should be for multiple times not just once.[code]

View 21 Replies


ADVERTISEMENT

Undo And Redo Operations Code For Undo Operation

May 5, 2008

i have written code for undo and redo operations code for undo operation

[Code]...

now when i rotate the picture then tries to undo the image then this erorr comes Stack is Empty and program closes.

View 2 Replies

UnDo/ReDo Function For .net?

Jul 29, 2009

I understand that implementing an UnDo/ReDo function can be complex using Stack operation/XML serialization.

That is why I have started to search for commercial tools/components, but I could find such tools only for RealBasic, not for VB.net. Does anyone know where to get such tool/component, or has good example code to include various undoable operation into an Undo/Redo function, that means undo operation for datagrid and chart manipulation (similar to a spreadsheet application).

View 3 Replies

Implement Undo/redo In An Application?

Apr 5, 2009

how to implement undo/redo in an application? I've searched the web, and most I found don't work properly or just clear the textbox.

View 9 Replies

Redo And Undo Button In Richtextbox?

Mar 3, 2010

After a rtf. file is loaded in richtextbox....then the user highlights the text with different colors.How can I set both redo and undo button to backward and forward the steps(only the part of higtlighting)?

View 19 Replies

Setup Undo / Redo For Changes To A Datagridview

Aug 18, 2009

I'm trying to setup undo/redo for changes to a datagridview, but am having a problem with capturing the cell value before it is changed. I am currently using the CellEnter event to capture the original value, which is fine if only one cell is affected. However, if the user selects multiple cells and goes to cut the data (Ctrl-X), CellEnter does not fire for each of the selected sells, only the ones moused over it seems. Is there a better way to capture each cell value before their CellValueChanged event fires?

View 1 Replies

IDE :: RichEditText Box Syntax Highlighting With Undo / Redo

Sep 23, 2010

I am trying to build a simple syntax highlighter editor along with undo/redo feature. I have the code to syntax highlight the code on "TextChange" event but the undo/redo feature does not work.Any work arounds on implementing syntax highlighting with undo/redo?

View 2 Replies

Implementing Undo / Redo - Cannot Draw On Image

May 14, 2009

I have a problem with my code. After I click undo I can't draw on the image and I don't know why

This is my code
Imports System.Drawing.Graphics
Imports System.Drawing.Bitmap
Imports System.Drawing
Public Class FrmChild
[Code] .....

View 4 Replies

Increase RichTextBox Undo / Redo Limit

Apr 30, 2012

I was wondering if there is a way to modify the limit on the number of undo/redo actions a RichTextBox is capable of performing. It seems as though the limit is around 100, and I really need to increase this because of the demands of my application. I have text formatting (Bold, Underline, etc.) in my application, and since you can change the font of the text, I need to loop through the characters in the SelectedText one-by-one and apply the correct formatting to them in order to prevent any errors from appearing. Every time a single character is formatted, it counts as an action. As you can imagine, this quickly adds up and therefore makes my undo/redo features not as useful as I'd hope with the 100-action limit. Does anyone have any suggestions for me?

View 3 Replies

Mplement Undo/Redo Option In .net Windows?

Apr 28, 2009

i am developing one eform designer project..the main object of this project is there a form in this controls are drag and drop.moving and deleting and editing the properties ..it's like a our .net designer how we drag and drop the controls ..so in my project i need to implement undo/Redo functionality..please give me the basic idea of this..(Please think like a our .net Designer (UNDO/REDO))

View 2 Replies

VS 2008 : Infinite Undo/redo: How To Implement It

Apr 4, 2011

basically add and remove text and selection information from a stack. Result: When using Undo/Redo the selection got messed up, the text moved, sometimes causing lag of epic proportions. I need a way of having complete and smooth undo/redo class for storing all information I would possible need.How to know whether or not to add an undo stack is easy, I just checked if the user clicked in the text or moved using the arrow keys. As soon a previous marking was given for "next text change needs to be backed up", it was backed up. At that point I stored the RTF and selection start/length. What do I have to store of a RichTextbox control to be able to restore it to a previous state, and how can I reset it back to a previous state? See it as having a "RichTextBoxState" class:

Public Class RichTextBoxState
Sub New(ByVal RTB As RichTextBox)
Me.text = RTB.RTF
Me.selectionstart = RTB.SelectionStart

[code]....

After restoring it must display the EXACT same thing as when it was saved as a state.

View 8 Replies

Add Undo / Redo Feature To A Finished Database Application?

Mar 30, 2012

Just finished a database for stock management system in local terms and language. All according to their request and agreement. Now they need me to add undo/redo functionality to the application and I just dont know where to start. I am looking first for a general tip on where to begin:

I have one form, for e.g., that manages their stores. Then another for catagories...now they need the undo for all this things and am not sure if it is even possible cos datas are related.

View 4 Replies

Copy, Paste, Undo, And Redo Actions With Picturebox?

Jun 15, 2011

After getting the code below from here, I would like to learn how I can easily copy/paste and undo/redo actions. The code below allows a person to "draw" on the image.

[Code]...

View 7 Replies

Add Undo/Redo Function To An Icon/Picture Editor Application

Mar 30, 2009

i want to implement undo/redo function in icon editor, im try to use arraylist or Stack to hold current icon or picturebox image when mouse up and left mouse is not press. i dont know exact place to put the Stack for push.

View 2 Replies

Menu Strip - Make Ones Like 'Open' 'Exit' 'Undo' And Redo' Work When Start Debugging?

Aug 6, 2009

I have created a Form, added a MenuStrip to it and inserted the standard Items. My question is that I know some of the options won't work like 'Save' and 'Save As' but how do you make ones like 'Open' 'Exit' 'Undo' and Redo' work when start debugging?

View 9 Replies

Run A Loop Multiple Times?

Sep 28, 2009

I read the lines from a textfile into a string array and then I use a foreach loop on the string array. I want to go through the same string array again after the loop reach the end of the string array

View 1 Replies

WebBrowser1_DocumentCompleted Multiple Times?

Jul 29, 2011

Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted

[Code]...

View 4 Replies

.net - Singleton Initialized Multiple Times

Jun 27, 2012

So I took this from an example. GetInstance() is called from hundred different places in my program, and when I debug, the line "Prog = New Program" keeps getting hit for each of those calls. Which I thought was exactly what should NOT happen.. Or do I have some fundamental misunderstanding?

[Code]....

It seems the "New" sub triggers a number of calls to Program.GetInstance, before the first one completes. This is due to me earlier having lots of shared public objects in this class, which are no longer shared since the class was made singleton. And these objects, when initialized, calls the Program class for reference to other of it's objects.

View 2 Replies

Add Textbox Value To Datatable Multiple Times?

Jan 23, 2011

Here is my [code]...

My textbox (txtCopies) default value is 1 so naturally, as it is coded above, the datarow is added once into the Movies Table. But what I need to know is how to code if the txtCopies field has a greater integer value.

View 6 Replies

Attribute Cannot Be Applied Multiple Times?

Mar 26, 2012

I keep on getting errors for every line in the code below that tell me that the attributes cannot be applied multiple times. What does this mean and how can I fix it without changing what the code does?

Imports System.Reflection
Imports System.Runtime.CompilerServices
<Assembly: AssemblyTitle("")>

[Code]....

View 2 Replies

Call The Second Form Multiple Times?

Feb 29, 2012

I am doing a project for my company. In that i have to enter the number of items in the first form and in the second form i am going to enter the details of each items. So i have to repeat the second form to get the details number of times depending on the value i have given for number of items in the first form.From the home page i will be entering the values for the master file. after entering the values for the master file then i have to enter the details of the individual item details in a transaction file.

View 3 Replies

How To Loop InputBox Multiple Times

Feb 24, 2012

I'm trying to loop the inputbox 5 times but I'm not sure how.
Dim payroll1 As String
payroll1 = InputBox("What is the payrolls for store1", "Inc", , , )
Lblstore1.Text = payroll1
I can get it to loop till a specific amount but not 5 times exactly.

View 9 Replies

Multithreading - Running One Sub Multiple Times At Once

Jul 17, 2011

I have one Private sub that runs in a loop. I want the sub to run multiple times at once. For example the program runs, you press start; you run the program again and press start, again and again... the same program doing the job at once. now i just want one program do to it alone. But i would like it to be user defined. exp. run program. type in a text box 10. press start. and it works as if 10 of them work open working on the same thing.

[Code]...

View 1 Replies

Open Program Multiple Times?

Nov 5, 2010

Is there any way that I can tell if a second version of the same program is opened by the user.

View 5 Replies

Reuse Code Multiple Times?

Nov 13, 2010

How can I tell something to use a code without completely adding it in that sub again? I have some code that will be used alot within my program. I could write a DLL, but I don't know how to use those!

Here is my code:

Dim str1 As String = System.IO.File.ReadAllText(Me.OpenFileDialog1.FileName)
Dim s2 As String = str1.Replace(".[1gs5]", "a")
s2 = s2.Replace(".[u775]", "b")
s2 = s2.Replace(".[fsef]", "c")

[Code]...

View 4 Replies

VS 2008 - Getting Data From DB Multiple Times

Nov 25, 2010

I have a button where I get data from a database that matches a search string I enter. Everything works fine the first time the button is clicked. However, if I click it again with a different search string, I get the same results as the original search string. I've tried to dispose, clear, and reset my dataset before I load the data each time, but it still finds the original query. This is the code I use to get and request the data:

Private Sub btnCfind_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCfind.Click
mdbFile = "TCICUST.DBF"
mdbCond = " WHERE COMPANY LIKE '" & cbCust.Text & "%' ORDER BY COMPANY "
GetDB()
[Code] .....

View 11 Replies

Display (show) The Same Form Multiple Times?

Oct 28, 2009

How can i display (show) the same form multiple times? Lets say Form2. This code only shows the form once: Form2.Show()

View 10 Replies

EditingControlShowing Events Firing Multiple Times?

Feb 24, 2009

I have a DGV in VB.Net 2008 connected to an Access DB table. The DGV is not Read Only, but is full of read-only columns except for one, which contains a combo box. The combo box allows the user to select an outcome for that particular row, and then the program copies in a pre calculated value into the "Profit" column depending upon the item selected in the combobox. Then the user hits the Save button and the DB updates (currently via SQL methods in the XSD).

Easy enough so far.

Here is the code.

Private Sub DGUserBets_EditingControlShowing(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) Handles DGUserBets.EditingControlShowing

[Code]....

The problem I have is that it would seem that if a user selects the desired outcome from the combobox but does NOT hit Enter, and simply mouses on to a different combobox to again select the outcome for a different row, the first eventhandler is not disconnected and thus the events fire multiple times. This then causes various default MsgBox errors and brings up problems when the user tries to commit all changes to the DB/exit program etc etc.

What do I need to do? Do I need to .EndEdit somewhere appropriate to force the row to save the changes? And where should I call this?

View 5 Replies

Events - SelectedIndexChanged Firing Multiple Times

Apr 25, 2012

I am trying to programmatically add an unspecified amount of new UserControls to a form. One will be added every time an entry is selected in a ComboBox contained within the UserControl. Problem is, the SelectedIndexChanged event fires completely erratically. Sometimes twice, sometimes 3 times, etc., but never just once. No matter how many times I set the combobox's SelectedIndex to -1, it fires at least once with a SelectedIndex of 0. Sometimes the Itemselected event fires multiple times inbetween SelectedIndexChanged events.

InvoiceEntry.vb snippet:
Public Event ItemSelected As EventHandler
Private Sub cboItem_SelectedIndexChanged(sender As System.Object, _
e As System.EventArgs) Handles cboItem.SelectedIndexChanged
RaiseEvent ItemSelected(Me, EventArgs.Empty)
End Sub
[Code] .....

View 1 Replies

Multiple Forms With MenuStrip Can The Same Menu Be Used Several Times?

Aug 15, 2011

I have a number of forms which have a common menu strip rather than copy the control onto each additional form is it possible to just call the menu from another form ?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved