Implementing Copy - Cut And Paste In Drawing Program
May 21, 2009I want to implement copy, cut and paste in my drawing program (copy part of an image that is selected) I don't know how to start
View 5 RepliesI want to implement copy, cut and paste in my drawing program (copy part of an image that is selected) I don't know how to start
View 5 RepliesI want to implement copy, cut and paste in my drawing program (copy part of an image that is selected)I don't know how to start?
View 10 RepliesI have Searched all over but didnt find any rigid solution to implement the functionality of the edit menu items in case of both textboxbase and combo box.I have written some code but i am not sure if its the way to do this.
[Code]...
I also need to implement the enabling and disabling of the menu's when and if the activecontrol can undo,cut,copy,paste
I have a small copy/paste type of program. You put text in the boxes, click copy and it copies it to the clipboard. I have a text file attached to format the text when it is copied. what I want to accomplish is...If I don't fill in every single textbox with text, I don't want that particular field to show when I paste it. Example, I have the layout like below on the text document.
textbox1.
textbox2.
textbox3.
No matter what, when I click copy, the text document is going to copy textbox1,2,and 3. If I only put text in textbox 1 and 3, I don't want it to copy textbox2 if its empty.
In testing cut/copy/paste for my program, I realized that all forms that are a child of my MDIparent1 form lose their cut/copy/paste abilities.
Is there a common reason for this? Is this something that I need to implement?
I show the child forms by using something along these lines:
Form1.mdiparent = MDIparent1
Form1.show
I've found that the same Form1 does have cut/copy/paste in text boxes while not a MDIchild, by using the normal Ctrl+C, Ctrl+V.
I'm wanting to write a program where a user can copy text from a pdf file, paste it into my program and it can identify which file the text came from and where in the file the text was copied from. This is so that later on, the user can then select the pasted text, and the program can load up the source pdf and highlight the text section.Are there any components out there which I can use to accomplish this
View 2 Repliesin VB6 the Copy/Cut/Paste etc. feature could be setup with "AutoVerbMenu". In .net 2008 this feauture is not available as far as I know, thus I configured the functions manually.
Everything work so far as expected for my first RichtTextBox.
[Code]...
In my Sheet1, i will be having a data From column A to F and in Colunm D (The Red one) it will be empty, The data can be 10 rows or might be more the 60 rows sometimes and in Column I i will have some more Data.
Now i need a macro where in sheet 2, Automatically the Lines from Column A to F should get pasted and it shlould take the Column D from column I. Once the Total line are pasted the it should go for next list of Column I.
Exm: IF i have 50 lines in Column F and in Column I i have 5 lines Then i should get the result of (50x5=250 lines) 250 lines each of 50 as per Column I.
How do you copy (rightclick) some columns from a gridview (asp.net) and paste it in excel? When I try I get one line with all the data pasted in excel, and it should be in the same columns and rows as the gridview.
View 3 RepliesI have a form text box that populates a cell in the excel sheet.I then need to copy that value and paste it in the same column. I do not know how to define the end Range since it is varible.
This is how I am getting the info into the open Sheet.
Dim Maildate As String = maildatetx.Text
wbTemplateSAS = exTemplateSAS.ActiveWorkbook
wbTemplateSAS.Sheets("SAS").Range("G9") = maildatetx.Text
I have a datagridview and I would like to be able to select an entire row by clicking on the row header column, hit CTRL+C, then put the cursor in the next row, and hit CTRL+V to paste the contents.
Right now, it pastes all of the contents into the first cell of the new row. If I paste the contents to the clipboard, I see them correctly and they are tab delimited.
Once I get this working. I would like to be able to copy and past multiple rows at a time.
FYI, I am not using a data source at all. Most of the rows are combo boxes where a user is selecting values. There is no database connection.
I have an problem with copy and paste between 2 richtextboxes part of the problem is if I new the 2nd Richtextbox actual name I could paste it using rtf format because I have so many of them I use a loop to go through the controls until I find the right one using typeOf control. The problem is with that that it really doesn't act as a richtextbox. See code below.
Dim RTB As New RichTextBox
RTB.Name = sender.Tag
For Each itm As Control In EnumerateAllControls(Me)
[code]......
How do I access cut, copy, paste in a WebBrowser control?
View 4 RepliesI have a basic file explorer, which has a treeview and a listview
How can I add copy, cut & paste functions to my listview
How Can I Copy & Paste Lets Say Test.txt Or Test.exe From My.Resources To "C:\Temp\" ???
View 9 RepliesLets say I got two images in VB.NET. Both are 100x100.
Then I want to copy a section of the first image and paste it on the second image.
For example, lets say I want to pickup the rectangle (25,25,75,75) from the first image, and paste it at (25,25) point of the second image.
how to copy and paste a word document from one location to another
i wanted to copy a CV doc from one location say desktop to another default location where all the
CVs are located.
I have 300+ excel files that need to be combined. There are 4 different types and in 4 different directories on my network. I need to copy the data out of each one and combine the data into a new single workbook (1 for each type). I have come up with a solution that does MOST of what it is supposed to do. Only problem is I can't figure out how to have the paste operation go to the same single workbook. No matter what I have tried it opens a new copy of excel to paste into everytime. Here is what I have so far.[code]...
View 8 Repliesi am write a complaints form for work i am try the copy and paste with text boxes and rich text boxes i can get the text boxes to copy and paste but having a problem with figuring out how to do it with rich text boxes. I have a menu strip which controls the copy function (shown below)
[code]...
But i want to be able to copy from a rich text box as well, that where i am having the trouble i know this line below will get text from a rich text box:
Clipboard.SetDataObject(CType(ActiveControl, RichTextBox).SelectedRtf)but how to i check the form to see if it is trying to copy from a text box or a rich text box i mean something like this ( this not working code or in anyway right its just to show you what i mean.
[code]...
i want to be able to check what type of text/rich text box is be use so that i can copy from a text box or a rich text box
In my program I have a custom control that is a combination of a datagrid, labels and images.
My customer wants to be able to select the entire control, then copy it and paste it in another document as an image.
How can I copy text from web sites... lets say you're looking for a line of text...
You type the text you want in tb...and it searches on the link you provided?
Dim GainText as new system.net.webclient()
Dim TheLink as string = textbox1.text
gaintext.link ' and then show all the txt in richtextbox...or if none found then msgbox
I want to disable the copy paste functionality for a single text box in a windows form.
View 1 RepliesI'm writing a small app to collect IE command diag. The problem is it's not waiting till the process finishes and it's errors out in the next line. My goal is to copy the log and paste it under a folder in Desktop
Try
Process.Start("C:Program FilesInternet Exploreriediagcmd.exe")
My.Computer.FileSystem.CopyFile(USERPROFILE & "DesktopIEDiag.cab", USERPROFILE & "DesktopW8IEDiag.cab",
Microsoft.VisualBasic.FileIO.UIOption.AllDialogs,
[code].....
I'm having some problems with my copy,paste, and select all in my datagridview. Here is my
Private Sub PasteToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PasteToolStripMenuItem.Click
[Code]...
I'm really confused now, i really don't know why the copy, paste, cut, delete, undo, redo, select all, fontDialog, fontcolorDialog, don't work?
[Code]...
Im about practicing vb .net, manipulated different controls, im trying to createapplication like PAINT, Heres my problem at this point what controls should i choose? then i like to copy-paste-save the image to sql server, or save as jpg or bitmap, i have some syntax from vb classic but it didnt work, pls. help me with this kind of situation,
View 5 RepliesI am trying to copy/paste a structure to the clipboard the copy appears to work but the paste errors with "COMException crossed a native/managed boundary ErrorCode = -2147467259".The error occurs on the highlighted code line below. Is it possible to put a structure on the clipboard?
Public Structure Obstacle
Dim Type As obs
Dim Deleted As Boolean
[code].....
i have a richtextbox in a user control my user control is loaded into a program with a menu strip..when a user tries to copy and paste into my RTB the key commands do no get to me because they are grabbed by the parent application..is there a simple way when the RTB gets focus to make sure it recieves the ctrl+C command?
View 2 RepliesMy app displays a list of records in a DataGridView on the main form. I've developed code for cut/copy/paste for the selected records and have put the code behind Cut/Copy/Paste menu items under a classic 'Edit' menu design, with the standard shortcut keys(Ctrl + X, Ctrl + C, Ctrl + V).
The trouble is, I also want the shortcut keys to work on selected text when I'm editing inside text fields on a record in the DataGridView. So I need the shortcut behaviour to change depending on whether I'm editing a record or selecting record(s).
I'm using winforms and vb.net.When I right click on a textbox I get the copy/paste/etc popup menu. This is ok. But How can I add something to this menu, and where/how would I intercept the event when one would click on the Item I add to it?
View 2 Replies