Display a TextBox over an MSFlexGrid Control

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
 
G

Guest

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
 
S

Stephen Lebans

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top