public void HandleAnswer(QAAnswer msg)
        {
            int selected_index = 0;

            try
            {
                for (int i = 0; i < listQuestions.Items.Count; i++)
                {
                    if (((AnswerObject)listQuestions.Items[i].Tag).QID == msg.QID)
                    {
                        listQuestions.Items[i].Selected = true;
                        selected_index = i;
                        AnswerObject answer = (AnswerObject)listQuestions.Items[i].Tag;
                        answer.answersArray.Add(msg.Answer);
                        answer.answersByArray.Add(msg.senderProfile.Name);
                        break;
                    }
                }
                showQuestionsAnswers(selected_index);
                //listQuestions.Items[selected_index].Selected=true;
            }
            catch (Exception exp)
            {
                WebMeeting.Client.ClientUI.getInstance().ShowExceptionMessage("QuestionAnswerAttendee.cs line==> 496", exp, null, false);
            }
        }
        private void button1_Click(object sender, System.EventArgs e)
        {
            try
            {
                QAQuestion qa = new QAQuestion(NetworkManager.getInstance().profile);
                textQuestion.Text = textQuestion.Text.Replace("\r", " ");
                textQuestion.Text = textQuestion.Text.Replace("\n", " ");
                if (textQuestion.Text.Trim() == "")
                {
                    return;
                }
                qa.Question = textQuestion.Text;
                qa.QID      = QuestionID;
                NetworkManager.getInstance().SendLoadPacket(qa);
                QuestionID++;
                AnswerObject answer = new AnswerObject(qa.QID);
                answer.Question = qa.Question;
                lv = listQuestions.Items.Add(qa.QID.ToString());

                qa.Question = qa.Question.Replace("\r", " ");
                qa.Question = qa.Question.Replace("\n", " ");
                qa.Question = qa.Question.Trim();
                if (qa.Question.Length > 150)
                {
                    qa.Question = qa.Question.Substring(0, 150) + "...";
                }
                lv.SubItems.Add(qa.Question);
                lv.Tag            = answer;
                textQuestion.Text = "";
                textAnswer.Text   = "";
                //ClientUI.getInstance().tabBody.SelectedTabEx = ClientUI.getInstance().tabBody.TabPages[ClientUI.getInstance().nLastSelectedIndex];
            }
            catch (Exception exp)
            {
                WebMeeting.Client.ClientUI.getInstance().ShowExceptionMessage("QuestionAnswerAttendee.cs line==> 473", exp, null, false);
            }
        }
        private void button1_Click(object sender, System.EventArgs e)
        {
            try
            {
                QAQuestion qa = new QAQuestion(NetworkManager.getInstance().profile);
                textQuestion.Text=textQuestion.Text.Replace("\r"," ");
                textQuestion.Text=textQuestion.Text.Replace("\n"," ");
                if(textQuestion.Text.Trim()=="")
                    return;
                qa.Question = textQuestion.Text;
                qa.QID = QuestionID;
                NetworkManager.getInstance().SendLoadPacket(qa);
                QuestionID++;
                AnswerObject answer = new AnswerObject(qa.QID);
                answer.Question = qa.Question;
                lv = listQuestions.Items.Add(qa.QID.ToString());

                qa.Question = qa.Question.Replace("\r"," ");
                qa.Question = qa.Question.Replace("\n"," ");
                qa.Question=qa.Question.Trim();
                if(qa.Question.Length > 150)
                    qa.Question = qa.Question.Substring(0,150) + "...";
                lv.SubItems.Add(qa.Question);
                lv.Tag = answer;
                textQuestion.Text="";
                textAnswer.Text="";
                //ClientUI.getInstance().tabBody.SelectedTabEx = ClientUI.getInstance().tabBody.TabPages[ClientUI.getInstance().nLastSelectedIndex];
            }
            catch(Exception exp)
            {
            WebMeeting.Client.ClientUI.getInstance().ShowExceptionMessage("QuestionAnswerAttendee.cs line==> 473",exp,null,false);
            }
        }