private void lstUsers_MouseClick(object sender, MouseEventArgs e) { if (lstUsers.Items.Count == 0) { return; } selected_user = true; //last selected index //AddMsgToChat("lstUsers_MouseClick"); ChatUser selectedUser = lstUsers.SelectedItem as ChatUser; selectedUser.HasMessageForYou = false; //lblChatWith.Text = "Chatting With " + selectedUser.UserHeb + "(" + selectedUser.UserAd + ")"; lblChatWith.Text = " מתכתב עם " + selectedUser.UserHeb + " (" + selectedUser.UserAd + ")"; if (selectedUserAdName != selectedUser.UserAd) { try { chatServerProxy.AksUsersChatHistory(me, selectedUser); } catch (Exception ex) { AddMsgToChat(errorMsg); } } selectedUserAdName = selectedUser.UserAd; //drawitem fires b4 everything, this causes re-draw lstUsers.Invalidate(); }