By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,417 Members | 835 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,417 IT Pros & Developers. It's quick & easy.

Dummy question

P: n/a
Hi,
I see System.Windows.Forms.SaveFileDialog but no LoadFileDialog. How do I
make button text to "Load" instead of "Save"
Thank you

Apr 3 '06 #1
Share this Question
Share on Google+
9 Replies


P: n/a
You probably want the OpenFileDialog

"Tanja Krammer" <ta***********@delay.nop> wrote in message
news:ey**************@tk2msftngp13.phx.gbl...
Hi,
I see System.Windows.Forms.SaveFileDialog but no LoadFileDialog. How do I
make button text to "Load" instead of "Save"
Thank you

Apr 3 '06 #2

P: n/a
Al
Try System.Windows.Forms.OpenFileDialog
--
Al
Systems Type
"Tanja Krammer" wrote:
Hi,
I see System.Windows.Forms.SaveFileDialog but no LoadFileDialog. How do I
make button text to "Load" instead of "Save"
Thank you

Apr 3 '06 #3

P: n/a
Tanja,

If you completely forget from your VB6 time that in that a form is loaded,
than direct a lot in VBNet becomes easier.

A form is instanced and after that showed.

I hope this helps,

Cor
Apr 3 '06 #4

P: n/a
"Tanja Krammer" <ta***********@delay.nop> schrieb:
I see System.Windows.Forms.SaveFileDialog but no LoadFileDialog. How do I
make button text to "Load" instead of "Save"


I have hardly ever seen a Windows application showing a "Load" menu item in
its "File" menu. Instead, "Open" and "Save" are used and the dialogs are
called accordingly in the .NET Framework: OpenFileDialog and
SaveFileDialog.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Apr 3 '06 #5

P: n/a
Herfried,
But ;-)

We have XmlDocument.Load & XmlDocument.Save, as well DataSet.Load,
DataTable.Load, Project.Load (MS Build), plus a plethora of other Load
methods...

True, the UI itself the action is commonly called Open, however it appears a
number of objects call the behavior Load...

NOTE: I *would* expect it to be OpenFileDialog, to match the UI. I would
also expect XmlDocument.Load as you are loading a file into an existing
object...

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uo**************@TK2MSFTNGP15.phx.gbl...
| "Tanja Krammer" <ta***********@delay.nop> schrieb:
| > I see System.Windows.Forms.SaveFileDialog but no LoadFileDialog. How do
I
| > make button text to "Load" instead of "Save"
|
| I have hardly ever seen a Windows application showing a "Load" menu item
in
| its "File" menu. Instead, "Open" and "Save" are used and the dialogs are
| called accordingly in the .NET Framework: OpenFileDialog and
| SaveFileDialog.
|
| --
| M S Herfried K. Wagner
| M V P <URL:http://dotnet.mvps.org/>
| V B <URL:http://classicvb.org/petition/>
|
Apr 5 '06 #6

P: n/a
Jay B. Harlow [MVP - Outlook] wrote:
Herfried,
But ;-)

We have XmlDocument.Load & XmlDocument.Save, as well DataSet.Load,
DataTable.Load, Project.Load (MS Build), plus a plethora of other Load
methods...

True, the UI itself the action is commonly called Open, however it
appears a number of objects call the behavior Load...


Open=>Close will be needed as a later operation.
Load=>Open, get data, close.

Andrew
Apr 5 '06 #7

P: n/a
Jay,

In my opinion should be the term in the menu for a file have been chosen as
"load" because we use as save for that and for a "view" show.

It is nicely to see when you look what translations are taken for those.

In a Dutch menu (where for years only English was used) we use now Openen as
a direct translation from the English. However for Save we use "Opslaan"
what is in English "Store".

I think that Load would have been much more proper for things like a word
document and an excel sheet. I can think about an Open for an Outlook view.

But we are used to it and it will probably never change any more.

I assume that you can remember you still the (temporaly) trouble in
documentation when

Mail (the server) became Exchange
and
Exchange the client became Outlook.

Jut my thought,

Cor

"Jay B. Harlow [MVP - Outlook]" <Ja************@tsbradley.net> schreef in
bericht news:e9**************@TK2MSFTNGP03.phx.gbl...
Herfried,
But ;-)

We have XmlDocument.Load & XmlDocument.Save, as well DataSet.Load,
DataTable.Load, Project.Load (MS Build), plus a plethora of other Load
methods...

True, the UI itself the action is commonly called Open, however it appears
a
number of objects call the behavior Load...

NOTE: I *would* expect it to be OpenFileDialog, to match the UI. I would
also expect XmlDocument.Load as you are loading a file into an existing
object...

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
.NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uo**************@TK2MSFTNGP15.phx.gbl...
| "Tanja Krammer" <ta***********@delay.nop> schrieb:
| > I see System.Windows.Forms.SaveFileDialog but no LoadFileDialog. How
do
I
| > make button text to "Load" instead of "Save"
|
| I have hardly ever seen a Windows application showing a "Load" menu item
in
| its "File" menu. Instead, "Open" and "Save" are used and the dialogs
are
| called accordingly in the .NET Framework: OpenFileDialog and
| SaveFileDialog.
|
| --
| M S Herfried K. Wagner
| M V P <URL:http://dotnet.mvps.org/>
| V B <URL:http://classicvb.org/petition/>
|

Apr 5 '06 #8

P: n/a
Andrew,
My point exactly!

"File - Open" commonly does an open, read, followed by a close. While
"File - Save" commonly does an open, write, followed by a close.
--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Andrew Morton" <ak*@in-press.co.uk.invalid> wrote in message
news:OP**************@TK2MSFTNGP02.phx.gbl...
| Jay B. Harlow [MVP - Outlook] wrote:
| > Herfried,
| > But ;-)
| >
| > We have XmlDocument.Load & XmlDocument.Save, as well DataSet.Load,
| > DataTable.Load, Project.Load (MS Build), plus a plethora of other Load
| > methods...
| >
| > True, the UI itself the action is commonly called Open, however it
| > appears a number of objects call the behavior Load...
|
| Open=>Close will be needed as a later operation.
| Load=>Open, get data, close.
|
| Andrew
|
|
Apr 5 '06 #9

P: n/a
Doh!

Actually my point was that the UI "standard" is to show Open & Save, while
object's behavior is to have Load & Save

All the OpenFileDialog is doing is getting the name of the file to open. Its
not performing the Load operation per se...

Yes Cor from a User perspective File Open really does a "Load", however I'm
not going to debate what the UI standard should have been verses what the
standard is...

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Jay B. Harlow [MVP - Outlook]" <Ja************@tsbradley.net> wrote in
message news:%2****************@TK2MSFTNGP05.phx.gbl...
| Andrew,
| My point exactly!
|
| "File - Open" commonly does an open, read, followed by a close. While
| "File - Save" commonly does an open, write, followed by a close.
|
|
| --
| Hope this helps
| Jay B. Harlow [MVP - Outlook]
| .NET Application Architect, Enthusiast, & Evangelist
| T.S. Bradley - http://www.tsbradley.net
|
|
| "Andrew Morton" <ak*@in-press.co.uk.invalid> wrote in message
| news:OP**************@TK2MSFTNGP02.phx.gbl...
|| Jay B. Harlow [MVP - Outlook] wrote:
|| > Herfried,
|| > But ;-)
|| >
|| > We have XmlDocument.Load & XmlDocument.Save, as well DataSet.Load,
|| > DataTable.Load, Project.Load (MS Build), plus a plethora of other Load
|| > methods...
|| >
|| > True, the UI itself the action is commonly called Open, however it
|| > appears a number of objects call the behavior Load...
||
|| Open=>Close will be needed as a later operation.
|| Load=>Open, get data, close.
||
|| Andrew
||
||
|
|
Apr 6 '06 #10

This discussion thread is closed

Replies have been disabled for this discussion.