Reputation: 956
I want to insert a textbox into a window form so I chose FastColoredTextbox(this). It's a user-control which can be used to make a textblock component that's very similar to the one in a text editor.
I've been trying to get it to work and have done everything I could with my limited knowledge (started winforms a few days ago)
After installing the NuGet package, I tried getting it to work but I am not even able to start. I need help getting started.
If you need anymore details please let me know.
Help is greatly appreciated :)
Upvotes: 3
Views: 1580
Reputation: 125277
Since you are using a nuget package (Install-Package FCTB
), the control is in this dll:
Solution Directory → packages → FCTB.2.16.11.0 → lib → FastColoredTextBox.dll
You can add the control to Toolbox
and drop in on the form and simply assign some text to Text
property of control.
To add the control to toolbox, just right click on a group in Toolbox
and click Choose Items ...
, then from .NET Framework Components
tab use Browse...
button to choose FastColoredTextBox.dll
from this path:
Solution Directory → packages → FCTB.2.16.11.0 → lib → FastColoredTextBox.dll
After choosing the dll, press OK to add FastColoredTextBox
control to the toolbox. Then simply drop an instance on form and in code, assign a text to it's Text
property:
this.fastColoredTextBox1.Text = "Some Text";
Upvotes: 3