Ok, I'll see what happens. BTW, Form1, in the previous example is actually a MDI form child and Form2 is not. Does that make a difference? Thanks alot.
Form2 is already manual. I will add the code to detect the proper cell to align with later.
My problem is: With the above code, Form2 is near the top left corner of the screen, not anywhere close to the grid control on Form1. If I could just get Form2.Top and .Left the same as the grid...
Form1 contains the grid control. Form2 is borderless and contains the treeview control and will be used as the popup menu to select data for the selected cell.
Code is simply:
Private Sub Grid_BtnClick(ByVal Row As Long, ByVal Col As Long)
'Insert positioning code here
Form2.Show...
Hi,
I'm trying to use a borderless form as a popup menu containing a treeview control. I'd like to display the form modally directly under the currently selected cell in a grid control when the cell is clicked. I've got it mostly figured out except for how to get the form positioned as desired...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.