Link to home
Start Free TrialLog in
Avatar of vipin072998
vipin072998

asked on

Commondialog Positioning

How can I position the Commondialog Control on the screen?Becuase there are no properties by which i can move it at some particular position..
Also if we use MoveWindow API call then it requires hwnd as one of its parameter...

So please help me out
ASKER CERTIFIED SOLUTION
Avatar of Dr. Kamal Mehdi
Dr. Kamal Mehdi
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Did it work fine?
Avatar of caraf_g
caraf_g

Good idea, kamall, but a slightly cheaper option is to place the common dialog on a container, for example a picture box. Set the picture box's border style to None, and its height and width to 0. Also make sure it has no tab stop, otherwise the user could tab into it, and their cursor will "dissappear". No major deal but annoying.

Apart from that the idea is the same. Position the picture box to the desired location before showing the common dialog.
Although I didn't test your solution, it seems pretty though.
Happy new year.
Regards.
HNY (&M)!
please drag and keep the dialog box to the position where u want it , on its first execution .then it will be placed there...
That's a great suggestion if you want to display the common dialog in the same position all of the time, but totally useless if you want to implement a more dynamic positioning. Which is, quite obviously, what vipin intended to do all along.

Which reminds me..

vipin, what's up buddy? Kamall put in some effort to answer your question. He deserves at least the courtesy of a response. Don't be an arsehole. Thank you.
caraf_g,
thanks for your kind comment.
Best regards.
:-(

It didn't help though.

I have some further bad news for you. Just check vipin's record:

Last 10 Grade(s) Given:
D C C C C C C C C C  
You can draw your own conclusions from this. I'm sure everyone gets a less than satisfactory answer sometimes, but it can't be as bad as this all the time..

Question Grading Record:
13 / 17
This speaks volumes. At least four of vipin's questions were answered and vipin never bothered to acknowledge the answers, let alone grade them.

Lesson of the day: before you answer any questions, check the asker's profile and make a point of never helping someone like this.

It's not easy though. As you can see, I commented too. I forget to check.

And that's how people like vipin can keep getting away with it.

What can *we* do?

Keep a link to this URL. Whenever you spot another question by vipin, post a comment to warn other experts and to ask them NOT to answer the question. And post this URL so they can read why.

I will.
Thanks caraf_g.
You are absolutely right.

vipin,
Please, go ahead and and answer the q.
kamall, some people have no decency and no shame. vipin obviously is one of these people. I think you'll be waiting in vain for vipin to grade this question.
"I told you so"....

:-(