Message 1 of 5
MSFlexGrid & TextBox issue

Not applicable
01-22-2006
09:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
how to align these 2 controls?
seems the coordinate system of these 2 controls are not the same, how to solve it?
normally, it should be coded like this:
TextBox1.Left = MSFlexGrid1.Left + MSFlexGrid1.CellLeft
TextBox1.Top = MSFlexGrid1.Top+ MSFlexGrid1.CellTop
TextBox1.Width = MSFlexGrid1.CellWidth
TextBox1.Height = MSFlexGrid1.CellHeight
seems the coordinate system of these 2 controls are not the same, how to solve it?
normally, it should be coded like this:
TextBox1.Left = MSFlexGrid1.Left + MSFlexGrid1.CellLeft
TextBox1.Top = MSFlexGrid1.Top+ MSFlexGrid1.CellTop
TextBox1.Width = MSFlexGrid1.CellWidth
TextBox1.Height = MSFlexGrid1.CellHeight