Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
if anybody know testing will u give me reply on how to write testcases for checkboxes
Posted

1 solution

C#
private:
   void checkBox1_CheckedChanged(System::Object ^ sender,
      System::EventArgs ^ e)
   {
      // Determine the CheckState of the check box.
      if (checkBox1->CheckState == CheckState::Checked)
      {
         // ..implement something here
         
      }
   }


This is how You test it in VS2010 ..dunno what kind of "testcases" are You trying to implement through checkboxes.
 
Share this answer
 
Comments
Albert Holguin 24-Oct-11 10:35am    
Although his question is not clear, this is not C++.
RKnGl 25-Oct-11 3:58am    
Well... Although this is not C++ , he posted it as C++ question and my best guess was that he was referring to visual component , not any actual code :D . Maybe it was too banal from me or , even worse , too "PRO" by You, Sir :D . My guess was made due to the fact that I found him on several other sites, asking same question and he was discussing Visual Component properties !?!?!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900