Answer the question
In order to leave comments, you need to log in
How to hide table in RichTextBox (Visual Studio)?
Good day. Just started to learn programming, as well as VS. Faced a problem. When transferring the copied part of the table from Excel to the RichTextBox, the table remains. In more detail:
A program is required into which a column of numbers is entered, and it performs actions on them (replaces "-" with ",", etc.). I wrote a program with RichTextBox and Button. It was supposed to copy ( Ctrl + C ) a column from an Excel spreadsheet, paste ( Ctrl + V ) into a RichTextBox. And by clicking on the Button, actions will be performed. The problem is that when pasted into a RichTextBox, the table (frames) is also copied. Rummaged through the settings, but found nothing in the tables. Is there any way to disable table input or something like that? Thank you in advance.
Answer the question
In order to leave comments, you need to log in
I advise you to look for how to make the textbox accept only plain-text when pasting. Not sure if there is such a setting, but essentially this is what needs to be achieved. Depending on the type of content that the program is ready to accept, Excel will return the desired content.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question