473,394 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How can I Centre the location of fileopendialog

I am using the following code to open file. Now I want to position the fileopen dialog to the centre of screen. Can someone tell me how can I acheive this?

code:
--------------
OpenFileDialog fileDialog = new OpenFileDialog();

if (fileDialog.ShowDialog() == DialogResult.OK)
{
//do something
}

I want to position the dialog to the centre of screen.

How can I position the FileOpenDialog to the centre of desktop?
Jul 17 '08 #1
0 1052

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Robster | last post by:
I'd to postion a pop up windown to appear in a position relevtive to the centre of the screen, rather than top=200, left=200. Is there any way i can do this? Alternatively i need a script that...
0
by: kayodeok | last post by:
Another Link from my web travels for you to take apart ;) Dead Centre http://www.wpdfd.com/editorial/thebox/deadcentre4.html From the site: "This text is DEAD CENTRE and stays there!" --...
3
by: CJM | last post by:
I want to create a footer with 3 items, one of which will always stay to the left, one will be in the centre, and the 3rd will be at the right. As you might imagine, I want the Right & Centre items...
1
by: a_rybicki | last post by:
"Hi - I'm experiencing something strange when I call a FileOpenDialog from a dialog box in my application (Borland C++ 6). Basically, here's the scenario: - Open my own child dialog from the...
7
by: Alex | last post by:
Hi all, I am trying to install a java stored procedure via the windows development centre. The linux box is running 8.1 FP4 as is the windoze platform. If I am on the linux box i can install...
3
by: gregma | last post by:
I hope this hasn't been covered a million times!! I have searched for alternatives to selecting a directory or multiple directories using FileOpenDialog, and haven't found anything like I need. I...
1
by: Anita C | last post by:
I am trying to follow the Ms sample in the .Net SDK/Technologies/Interop/PlatformInvoke/WinAPIs/CS- to click on a button on a webform to bring up the fileopendialog. But it does not seem to work...
1
by: jan.gezels | last post by:
Hi We're use DB2 with Data propagator. When I open Replication Centre no config is shown (no capture or apply servers) but everything is still working like it should. If I try to reconfigure, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.