Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2004

Tip: Looking for answers? Try searching our database.

Setting coomon dialog initial position

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Shen - 12 Oct 2004 04:23 GMT
Hi,

Can anyone please post working sample codes in C# to show how to set the
initial position for common dialog box?

I tried to search all over the web without much luck. I did find some
reference to use windows hooks but could not get it to work to change dialog
position.

Any help will be greatly appreciated.

Thanks.
Joey Callisay - 12 Oct 2004 04:58 GMT
StartPosition = Manual, then set the Location property

> Hi,
>
[quoted text clipped - 8 lines]
>
> Thanks.
Ansil MCAD - 12 Oct 2004 07:25 GMT
hi
as joey said
form1.StartPosition = FormStartPosition.Manual;
then set the location

FormStartPosition has other four enumerations ,take a look at them also

regards
ansil

> Hi,
>
[quoted text clipped - 8 lines]
>
> Thanks.
David Shen - 12 Oct 2004 17:29 GMT
Sorry, my fault. What I was asking is related to the common dialog such as
open/save file dialog, folder browser dialog, MesssageBox dialg etc. (Not
custom dialog I created).

I do not think those system created dialogs have the "FormStartPosition"
property. For example, one will bring up the MessageBox just by calling
MessageBox.Show.

I found on the web that this question has been asked many times (in regard
to how to do it in .NET) but no clear answers for it and very often people
get it confused with user created dialog and suggested the approaches
mentioned here by the other two posts in this thread.

Any help is greatly appreciated. Thanks.

> hi
> as joey said
[quoted text clipped - 18 lines]
> >
> > Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.