Maybe this helps:
Mainform.listusers.Items.AddObject(SQL.Login, SQL);
Now you see the name in the list and have
access to the login instance.
BTW: '
SQL' is not a good name for an instance of your TLoginClass. You should not name neither a class nor an instance after its implementation details. It is unimportant how your login class verifies the user.
this will only show the text input , thats will not implement the tracking of online users i think i have to use
indy udp to allow the users see who is joind to the chat but i have no idea about how to store those user names who logged in
plus also i dont get the point on how to enable/disable some functionality of the application based on the specific user