private void MouseOnRect(RectInfo rectInfo, ref Pen pen, int i) { int x = rectInfo.x + formX; int y = rectInfo.y + formY; int w = rectInfo.w; mouseX = Cursor.Position.X; mouseY = Cursor.Position.Y; if (mouseX >= x && mouseX <= x + w && mouseY >= y && mouseY <= y + w) { pen = new Pen(Color.FromArgb(115, 55, 55, 255), 3); if (Control.MouseButtons == MouseButtons.Left) { String name; FSDK.GetAllNames(tracker, IDs[i], out name, 65536); if (name != "") { friendcognition.Profile profile = new friendcognition.Profile(Convert.ToInt32(name)); profile.Show(); } else { MessageBox.Show("User not registered", "", MessageBoxButtons.OK); } } } }