I have problem in a c# windows form application. It has a tab control with 3 tabs. Each of the tabs contains a richtextbox control. I have a toolbar button to "toggle wrap". The richtext box properties are exactly identical in the 3 tabs. The following code for toggling wrap will "hide" the rictext control ONLy in the 3rd tab. Other tabs works find. I used the spy++ to "locate" the window. Th richtextbox window seems to be in a minimized state based on what I understand from the MSDN doc that says the "rectangle" and the "Restored Rect" values differ only when the window is in maximized/minimized state. ANy ideas ? Thanks,
private void MsgWordWrapToggle_Click(object sender, EventArgs e)
{
if (tabMsg.SelectedIndex == 0)
rtb1.WordWrap = !rtb1.WordWrap;
else if (tabMsg.SelectedIndex == 1)
rtb2.WordWrap = !rtb2.WordWrap;
else if (tabMsg.SelectedIndex == 2)
rtb3.WordWrap = !rtb3.WordWrap;
}//eom