C
C#5mo ago
DRILLER

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
Buddy
Buddy5mo ago
- 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
DRILLER
DRILLER5mo ago
text component = text box right?
Buddy
Buddy5mo ago
No, Label.
DRILLER
DRILLER5mo ago
oh ok
Buddy
Buddy5mo ago
Depends on what you want and what text it is
DRILLER
DRILLER5mo ago
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
Buddy
Buddy5mo ago
Do whatever you want to display it, the logic remains the same
DRILLER
DRILLER5mo ago
okay thanks ill try this hopefully ill work it out