windows forms text box
im new to c# and even newer to windows forms im trying to make a box that displays text from a file in real time how would i go about this
8 Replies
- Create a text component (or whatever visual component you want)
- Create a FileSystemWatcher (https://learn.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcher?view=net-8.0)
- Change text upon event call
text component = text box right?
No, Label.
oh ok
Depends on what you want
and what text it is
the text is inputted in a seperate section of the form then stored in a txt file then i want it to display in the box once its sent to the file it will be a name(string) + message(string) + date time
Do whatever you want to display it, the logic remains the same
okay thanks ill try this hopefully ill work it out