C
C#10mo 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
Buddy10mo 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
DRILLEROP10mo ago
text component = text box right?
Buddy
Buddy10mo ago
No, Label.
DRILLER
DRILLEROP10mo ago
oh ok
Buddy
Buddy10mo ago
Depends on what you want and what text it is
DRILLER
DRILLEROP10mo 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
Buddy10mo ago
Do whatever you want to display it, the logic remains the same
DRILLER
DRILLEROP10mo ago
okay thanks ill try this hopefully ill work it out
Want results from more Discord servers?
Add your server