I'm asking to much but I'm new and I have to learn new things, whatever here comes my problem;
I am using a richtextbox to paste long text in it. I can't use 'right mouse click >> paste' that menu doesn't exist. I only can paste with CTRL+V. What can I do to enable right mouse click to use paste?
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.
Is it possible to paste an image in VB's richtextbox like we can do with Word or Wordpad? I have tried all the tutorials I can find online and am still having no success getting an image from the clipboard to the RTB. I can accomplish it if I already know the image and path etc. and do it through code, but that will not allow someone to simply click an image, copy, and paste it into the rtb.
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)
I'm working on a simple form that has multiple RTBs which should be capable of saving images from clipboard into the same .rtf file.The below code works for one RTB but not multiple RTBs
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
I have a class library with a component class in it. Everything is in VB.NET. It's only one file so you can see it here [URL] . On line 92, there is the OnTextChanged Sub. I was thinking about adding ProcessAllLines() (as on line 128) to the end of that Sub, and it worked. However when I was typing in code to the RichTextBox (source which I used is here [URL] after each text change it was checking and processing ALL the lines. So I deleted ProcessAllLines() in the OnTextChanged Sub.I'm thinking about running ProcessAllLines() when the user pastes something to the SyntaksRichTextBox. However I do not know how to do that. I know that it should be something like:
If [CTRL Pressed] And [V Pressed] Then ProcessAllLines() End If
I also want it to be in the class library, not the application (Syntaks Demo).
I've made a Rich Text Box in VS 2008, how ever when I try to actually paste data in to it, either by right clicking it or by using the short cut CTRL + V, nothing will actually paste in to the RTB.
Create a new project & works perfectly. Add a new RTB to my current project & works perfectly. If i try this with the RTB that is already on my form and all i get is that BEEP by windows. Could there be a setting that is refusing the pasting?
I want to copy some information (formatted text) from outlook express email body to my apps, Rich text box control. But when I do that, some hyperlinks and some boxes going here and their. I just want to copy the content as it is.
control Paste (Ctrl+P) Image size in RichTextBox I can do an context menu with a item of Paste, and in it I can control what image type is (width, height, resolution, format...), then for example I can msgbox when the user try to paste (using contextmenu) a too big image. but if the user uses Control+P the paste occurs whitout my code.
I am creating a text editor like notepad. Well its an advance type because it is a tabbed notepad type. It saves html files.
I only created tabcontrol on the design time named TabControl1. the tabpages and the richtextbox are created on the form load and when adding tabs. [code]...
Is it possible to take certain text from a web page and paste it into a Rich Text Box in Visual Basic? I'm going to use this http://google.com/complete/search?output=toolbar&q=mlb to generate a bunch of keywords and I want to highlight just the keyword paste it into the Rich Text Box. How can I do this? Also a better way to describe this is almost scraping the keywords through all that code and putting them into the richtextbox.
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.
I'm looking for a way to copy and paste (or drag and drop) an image from the web into a text box within a VB.NET application. However, I'd like the URL of the image to appear, not the image itself.To be able to copy and paste (or drag and drop) an image from the web into a picturebox within a VB.NET application, and then have the URL appear in a text box.Possible at all? You could say this is quite similar to iTunes, when adding custom artwork (basically pasting an image into a picturebox).Also, I'm currently using Visual Studio 2010 to build my application.
i 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
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
" So what i am trying to do is query from two databases and get results from both, but i want the querys to spit out a text file on my desktop, what imports or dim would i need, any help or samlpes, and i am wanting the code within the if statments below and then what i want to really do is stick in as a special format like so which i have from a previous person
I added a rich text box to an activex project.when my active X control is running in a 3rd party application my rich text box ignores the keyboard shortcuts for
Ctrl+C Ctrl+V Ctrl+X
the key down event triggers for the control key going down but not the Ctrl+something.it works fine for text boxes, so it is a richtextbox issue
In the key down event for a text or rich text box:If (e.Control) And (e.KeyCode = Keys.V) Then e.SuppressKeyPress = TrueTo prevent pasting for all text boxes on your form, set form KeyPreview to true and add the above code to form key down event.
I have a webbrowser control which I have created a contextmenu for. I have added a paste button and do docbrowser.body.inner.body = clipboard.gettext. The problem with this is when I copy text from a word document and paste it I loose all the formatting. If I remove my context menu and use the default and paste I keep my formatting.
I have a 150 page word file for work that i need to go through. What i would like to do is automate this since i rather not copy and paste all 150 pages.There are headings 1 2 and 3 in this file. Both Headings 2 and 3 may have body text.What i need to do is copy the Heading 2 and the body text that follows it and paste it in an excel document for some comparison.
I am having a hard time find out a way to paste the content from a text file into excel.I am able to read the entire content from a text file and put it into a string. After retrieving the info from the text file,I would like to open an excel template and paste the text file content into the excel sheet.