Display a TextBox over an MSFlexGrid Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to display a TextBox over a Flexgrid control. In the an event for the FlexGrid, I set the focus to the TextBox but it does not display on top but rather is hidden behind the FlexGrid. Any ideas on how to make it display over the Flexgrid would be greatly appreciated
 
More Info: The TextBox has the focus as you can type into it and then read the data out. But it remains behind the FlexGrid control. So Setting the focus is not the issue. I have also tried setting the tab order -- just a try but no effect

Thank
CharlieB
 
Access does not expose a Z order for control's as many of the native
controls are lightweight(without a permanent hWnd).
My only suggestion would be to use the Window API's to try and force the
TextBox to the front( or conversely the FlexGrid to the back) whenever
it has the focus. Try the SetWindowPos API with the HWND_TOP flag.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


CharlieB said:
I am trying to display a TextBox over a Flexgrid control. In the an
event for the FlexGrid, I set the focus to the TextBox but it does not
display on top but rather is hidden behind the FlexGrid. Any ideas on
how to make it display over the Flexgrid would be greatly appreciated
 
Back
Top