postion of form

D

Doug

Hi

I am using a form in an application that i have attached to the context menu
using a program called right click configurator. The position of the
applicaiton when called through the context menu is important.

Is it possible for a form's load position to be made relative to the context
menu? I see that there are several options such as center, and windows
default, but I would like to be able to have more control over the initial
location relative to the context menu.

Thanks

Doug
 
O

Olie

The form will load wherever you tell it to load in the Location
properties. That is unless it is overriden by another property.

Just set the location before calling Show().
 
D

Doug

thanks for your advice but my question was how to get it to load in a
positon relative to the context menu if I use that to lauch the application.

Doug
 
M

Marc Gravell

Probably not. Perhaps a question for the maker of the context-menu
program? Or write your own shell extension (not easy).

Marc
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,


That is rather difficult, unless that the context menu app provide that info
when loading the app (which I doubt).

Thinking now, a possible solution would be if you know the name of the
context menu window you could try to get its properties, I'm pretty sure
that tehre is an API call in win32 that let you know the position of a
window (if you know the hWnd).
So you best shot is exploring the win32 API and try to find a way through
there.
The first step is to get the hWnd of the context menu though, without that
you will get nowhere
 

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