473,382 Members | 1,329 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,382 software developers and data experts.

Q: Startup Location of OpenFileDialog

Hi

Can anybody tell me how to specify the startup location of an
OpenFileDialog?

Thanks in advance

Geoff
Nov 16 '05 #1
2 3613
Try this one:
OpenFileDialog MyDlg = new OpenFileDialog();

MyDlg.Filter = "*.doc";

MyDlg.IntialDirectory = "\\temp";

Yonas
"Geoff Jones" <ge***@NODAMNSPAM.com> wrote in message
news:41**********************@news.dial.pipex.com. ..
Hi

Can anybody tell me how to specify the startup location of an
OpenFileDialog?

Thanks in advance

Geoff

Nov 16 '05 #2
Hi Yonas,

Sorry, I didn't make myself clear; rather than the file "location" I was
talking about the physical location of the window e.g. the center of the
screen.

Geoff

"Yonas hagos" <y_*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Try this one:
OpenFileDialog MyDlg = new OpenFileDialog();

MyDlg.Filter = "*.doc";

MyDlg.IntialDirectory = "\\temp";

Yonas
"Geoff Jones" <ge***@NODAMNSPAM.com> wrote in message
news:41**********************@news.dial.pipex.com. ..
Hi

Can anybody tell me how to specify the startup location of an
OpenFileDialog?

Thanks in advance

Geoff


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Mr. B | last post by:
If you can set the 'initial' path of an OpenFileDialog box by something like the following: Dim FilesPath As String ' Files Path FilesPath = "P:\Projects\" FilesPath =...
3
by: cider123 | last post by:
Everything I've read so far states you can't inherit or extend these dialogs because they're "sealed". I considered building my own custom control, but I haven't been able to find: 1) How to...
11
by: Mr. B | last post by:
If you can set the 'initial' path of an OpenFileDialog box by something like the following: Dim FilesPath As String ' Files Path FilesPath = "P:\Projects\" FilesPath =...
11
by: Mr. B | last post by:
If you can set the 'initial' path of an OpenFileDialog box by something like the following: Dim FilesPath As String ' Files Path FilesPath = "P:\Projects\" FilesPath =...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.