- if ((ParentReadOnly == true) ||
- (ParentReadOnly == false && ReadOnly == true) ||
- (ParentReadOnly == false && _ro == true)) {
- textbox.ReadOnly = true;
- } else {
- textbox.ReadOnly = false;
- }
-
- textbox.Location = new Point (bounds.X + offset_x, bounds.Y + offset_y);
- textbox.Size = new Size (bounds.Width - offset_x, bounds.Height - offset_y);