The VB rich text format cannot be removed

Updated on workplace 2024-04-13
11 answers
  1. Anonymous users2024-02-07

    = 0= len(richtextbox2)

    sendkeys "^c", true '***= len(richtextbox1)

    sendkeys "^(v)", true 'Two places with stars are up for debate.

  2. Anonymous users2024-02-06

    = 0= len(richtextbox2)

    sendkeys "^c", true

    richtextbox1=richtextbox1 & vbcrlf 'Give it an extra carriage return before pasting the new content.

    len(richtextbox1)

    sendkeys "^(v)", true

  3. Anonymous users2024-02-05

    = 0= len(richtextbox2)

    sendkeys "^c", true '***= len(richtextbox1)

    sendkeys "^(v)", true 'Two places with stars are up for debate.

  4. Anonymous users2024-02-04

    ** Paste the excel data into a string variable first, and then add the string variable to the rich text box.

    If you want to do this, you can only use Notepad to make a mistake first, that is, paste the Excel data into Notepad first, and then copy it from Notepad to the rich text box.

    I can't think of anything else.

  5. Anonymous users2024-02-03

    private sub richtextbox1_change()dim s as string

    s == s

    end sub

    In this way, richTextBox1 will trigger the richTextBox1 change when pasted

    Take the text part of him and put it in the s

    Then turn the contents of richtextbox1 into s

    In this way, it becomes all plain text.

  6. Anonymous users2024-02-02

    You can also use ** to write it in a notepad and read it again.

  7. Anonymous users2024-02-01

    VB's rich text box widget itself has this function, and it's super easy to use:

    This is a plain text string.

    This is a rich text string.

  8. Anonymous users2024-01-31

    Is your menu in the same form as rtftext? If not, check if ActiveForm is the form where rtftext is located (break check required); Is there a choice for text?

    Double-check the individual properties of the control (if it can) and ** (interrupt, f8 run step by step) to check that the values of each variable are correct.

  9. Anonymous users2024-01-30

    ..The enter key is meant to be a line break.

    private sub text1_keypress(keyascii as integer)

    if keyascii = 13 then 'Press enter keyascii = 0'Go to the place pressed.

    vbcrlf

    len(end if

    end sub

  10. Anonymous users2024-01-29

    VB's rich text box widget has this function on its own, and it's super easy to use: this is a plain text string, and this is a rich text string.

  11. Anonymous users2024-01-28

    No, third-party controls are available.

    I don't know if you understand, for example, if you drag a textbox from the designer's toolbar onto your interface.

    Actually add an instance of the textbox type to your form (don't believe it, you can see the source in your designerThis textbox type is the text input box you want, and this type implements many methods, such as how to display it on the interface, what colors to display, what events it has, what effect you will have when you click on this input box, and so on.

    This textbox is actually a component that Microsoft encapsulates itself, so you can reference any third-party widget (if you install a full widget package, they'll be displayed in the designer's toolbox) and drag it onto your design interface, and they'll have the same functionality as the original component (just in a different way).

    c There are a lot of third-party widgets, such as devexpress, which not only fully implements all the official components, but also adds other widgets.

    The effect of the devexpress control you can see this:

Related questions
3 answers2024-04-13

Rich Text Format (RTF) is a cross-platform document format developed by Microsoft. Most word processors can read and save RTF documents. RTF is an abbreviation for Rich Textformat. >>>More

22 answers2024-04-13

The material is different. The base of the CR is cast iron, the other overflow parts are 304 stainless steel, the base and other overflow parts of the CRI are all 304 stainless steel, and the base and other overflow parts of the CRN are all 316.