Dummy question

  • Thread starter Thread starter Tanja Krammer
  • Start date Start date
T

Tanja Krammer

Hi,
I see System.Windows.Forms.SaveFileDialog but no LoadFileDialog. How do I
make button text to "Load" instead of "Save"
Thank you
 
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
 
Tanja Krammer said:
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.
 
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


| > 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/>
|
 
Jay said:
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
 
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
 
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


| 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
|
|
 
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


message | 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
|
|
| || 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
||
||
|
|
 
Back
Top