dandan
dandan
CC#
Created by dandan on 6/17/2024 in #help
Problem with Updating Messages in Windows Forms (FlowLayoutPanel)
Description: I'm developing a chat application using Windows Forms in C#. The user interface consists of a FlowLayoutPanel (flpMessages) to display the messages, a TextBox (txtMessage) to type the messages, and a Button (btnSend) to send the messages. I'm also using a Timer to fetch new messages from the database every second. Problem: Messages are not appearing on the screen, even though the method that fetches messages from the database is being called correctly. I've already noticed that the GetMessagesAsync method is returning the expected messages, but they're not showing up in the FlowLayoutPanel.
2 replies