MSFlexGrid & TextBox issue

MSFlexGrid & TextBox issue

Anonymous
Not applicable
376 Views
4 Replies
Message 1 of 5

MSFlexGrid & TextBox issue

Anonymous
Not applicable
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
0 Likes
377 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
i figured out w/ coordinate system which should like:
TextBox1.Left = MSFlexGrid1.Left + MSFlexGrid1.CellLeft / 20
TextBox1.Top = MSFlexGrid1.Top+ MSFlexGrid1.CellTop / 20
TextBox1.Width = MSFlexGrid1.CellWidth / 20
TextBox1.Height = MSFlexGrid1.CellHeight / 20

but i cannot set focus which i used:
TextBox1.Visible = True
TextBox1.SetFocus

i tried TextBox1.ZOrder & MSFlexGrid1.ZOrder but didn't work, any ideas?
0 Likes
Message 3 of 5

Anonymous
Not applicable
Use tab index.
0 Likes
Message 4 of 5

Anonymous
Not applicable
doesn't work Rashlak.
it happens only at VBA, seems AutoDesk guys doesn't care much of full VBA implementation model, no topology, no this, no that, ...
thanks anyway.
0 Likes
Message 5 of 5

Anonymous
Not applicable
It has nothing to do with Autodesk. You are not legally allowed to use the
MSFlexGrid in VBA per Microsoft.

-- Mike
___________________________
Mike Tuersley
___________________________
the trick is to realize that there is no spoon...
0 Likes