Chris Abate asked 2017-02-02 21:52:30 UTC
Hi all,
So still working on my little IRC chat application on and off, and I found that if I create controls at runtime via a user action like a button press or on a form load, that works just fine, but if they are created when an IRC message comes in (like a new channel label for an incoming query), the controls do not show up on the form. This also seems to be a problem with the DataGridView, since it won't display rows added this way either, and doing so will stop even the user-driven changes from being displayed in the grid/on the form afterwards. I do have an Application.Update in there, but it does not seem to make a difference.
Any way for me to fix that?
Thanks,
Chris
Chris Abate asked 2017-02-02 21:52:30 UTC
Hi all,
So still working on my little IRC chat application on and off, and I found that if I create controls at runtime via a user action like a button press or on a form load, that works just fine, but if they are created when an IRC message comes in (like a new channel label for an incoming query), the controls do not show up on the form. This also seems to be a problem with the DataGridView, since it won't display rows added this way either, and doing so will stop even the user-driven changes from being displayed in the grid/on the form afterwards. I do have an Application.Update in there, but it does not seem to make a difference.
Any way for me to fix that?
Thanks,
Chris