Allowing User To Copy / Paste PictureBox?
Jan 14, 2011
I have a program in which the user should be able to copy and paste picturebox. So there is a drawing panel in which the user puts a Picturebox and then the user can select the picturebox by double clicking on it and after that the user can copy and paste it.
The copy code is as followed:
Private Sub Bcopy_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Bcopy.Click
Cheight = PB.Height
Cwidth = PB.Width
Cname = PB.Name
Casname = PB.AccessibleName
[Code] .....
View 7 Replies
ADVERTISEMENT
Apr 8, 2009
I'm try to save image from pictureobx where the image is bmp pool from my database. I create a contextmenu for rightclick function to copy the image but cannot make it.....
View 1 Replies
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
Dec 11, 2011
I'm writing an Excel file recovery program with VB.Net that tries to be a convenient place to gather and access Microsoft's recommended methods. If your interested in my probably kludgy, error filled, and lacking enough cleanup code it's here: http:[url]..... The basic functionality seems to work although I haven't tested graph macro table recovery yet.
It occurred to me that Vista and Windows 7 users could benefit from being offered a list of previous versions of the file within my application if the Shadow Copy Service is on and there are previous copies. How do I do this?I looked at a lot of web pages but found no easy to crib code. One possibility I guess would be to use vssadmin via the shell but that is pretty cumbersome. I just want to display a dialogue box like the Previous Versions property sheet and allow users to pick one of the previous versions. I guess I could just display the previous version property sheet via the shell by programmatically invoking the context menu and the "Restore previous versions choice", however I also want to be able to offer the list for Vista Home Basic and Premium Users who don't have access to that tab even though apparently the previous versions still exist. Additionally if it possible I would like to offer XP users the same functionality although I'm pretty sure with XP only the System files are in the shadow copies.
I looked at MSDN on the Shadow Copy Service and went through all the pages, I also looked at AlphaVSS and AlphaFS and all the comments. I'm kind of guessing that I need to use AlphaVss and AlphFS and do the following?Find out the list of snapshots/restore points that exist on the computer.Mount those snapshots.Navigate in the mounted volumes to the Excel file the user wants to recover and make a list of those paths.With the list of paths handy, compare with some kind of diff program, the shadow copies of the files with the original.Pull out the youngest or oldest version (I don't think it matters) of those shadow copies that differ from the recovery target.List those versions of the files that are found to be different.This seems cumbersome and slow, but maybe is the fastest way to do things. I just need some confirmation that is the way to go now.
View 2 Replies
May 14, 2012
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 Replies
Dec 28, 2010
I need to know the time elapsed during this copy paste operation and then show it to the user
[Code]...
View 11 Replies
May 8, 2009
I wanted to know how to enable the user to copy and paste the text in a message box, how can I do this?
View 8 Replies
Feb 28, 2009
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 Replies
Nov 20, 2011
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.
View 7 Replies
Apr 17, 2010
I can't find a basic thing: how to enable a picturebox to be dragged inside a form? I'd need to be able to drop it inside a listbox so that listbox would get the picturebox's name-value in it. But I'm having trouble even getting started.
View 4 Replies
Jul 15, 2009
i would like to allow the user to play around with the size of the trackbar in vb.net. is there an easy way to do this?
View 1 Replies
Feb 13, 2012
I am using a text box to display a list of items in which I want to be for reading only. Is there any way that I can not allow user input into this text box? Right now I have the text changed set to show an error message, that works but the text entered before the message box appears, still shows.
View 6 Replies
Oct 6, 2011
I am using the code from the following link. Basically I am using the built in functions in visual basic for encryption (Cryptography). Seeing as there is a lot of code for it, I posted a link to the code I am using.
[URL]
I get what this is doing and how it is doing it...for the most part. My question is how do you let the user set the key to be used instead of it randomly generating one? One of the reasons I want this over the random key is that the user will be able to remember it easier and the key generated sometimes has weird characters in it that not everyone will no how to use. I have tried everything I can think of.
The encryption works good, all I am using it for is to encrypt/decrypt a text document. If this is not too good of an encryption, that does not matter as I am not using it to encrypt any highly sensitive information. All I need is a way to be able to allow the user to set the key, but every time I try to pass a string through the encryption() method instead of a generated key (in the generateKey() method) it will give me an error.
View 2 Replies
Oct 27, 2010
My user needs to be able to cut an image from another application and paste it into somthing (Picturebox) in my application. I just dont know where to start with this one so
View 4 Replies
Mar 19, 2009
I have a list view with 2 columns. I want the user to be able to add there own values to the listview and have them save so that they will always stay there.I would also like users to be able to delete specific items from the saved list.
View 21 Replies
Mar 27, 2010
I'm wondering how would I go about allowing a user to set up an account on a program and as button whn they click on asking their log details? And when they do log On. A pop up saying their name welcome to this program?
View 34 Replies
Jun 3, 2011
I am developing a science application on VB.NET. I want the controls to be edited, resized, and drag & dropped (like in Visual Studio IDE) by the user during runtime. How to achieve this functionality?
View 4 Replies
Jun 30, 2009
I have a function which searches a folder for text files and adds each text file's name to a listbox. I want to allow the user to rename each item in the listbox while still letting the program know the original name of the file. (I dont want a rename in the box to rename the file itself)
View 7 Replies
Jun 17, 2010
in 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]...
View 10 Replies
Aug 5, 2010
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.
View 1 Replies
Dec 31, 2010
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 Replies
Sep 20, 2009
I 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
View 9 Replies
Nov 3, 2008
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.
View 11 Replies
Dec 30, 2010
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]......
View 2 Replies
Aug 14, 2011
How do I access cut, copy, paste in a WebBrowser control?
View 4 Replies
Jul 1, 2010
I have a richtextbox and an other form with a picturebox and I would like to paste the image from picturebox to rtb.
View 1 Replies
Jul 31, 2009
How do I give the user a color chooser for the background of a form or anything else? I would like to be able to give him all colors in vb.net.
View 2 Replies
Jan 21, 2010
Is it possible to disable a form from moving still allowing the user close it? How?
View 10 Replies
Oct 9, 2009
I'm trying to make a form that allows users to register new tools with the database. I know how to update the sql server with that information, but there's quite a bit of code that accompanies specific tools (which alter labels on textboxes, etc.) Is it possible to programmatically update the software according to information put into a 'add new tool' form without touching the source code?
View 4 Replies
Feb 25, 2009
Any way to change the case of a string using the String.Format command. For example, you can do this:
String.Format("{0,50}","My Info")
And it gives it a fixed width string output, I need to allow the user to change the case. All they can pass in is the format "{0,50}" so NO .net functionality, we wrap it up for them. In VB6 you could use a ">" "<" to change the case, surely M$ must have added a way to do this?
View 10 Replies