|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Dummy questionHi,
I see System.Windows.Forms.SaveFileDialog but no LoadFileDialog. How do I make button text to "Load" instead of "Save" Thank you You probably want the OpenFileDialog
Show quoteHide quote "Tanja Krammer" <tanja_kram***@delay.nop> wrote in message news:eyRWiEzVGHA.4608@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 > > > Try System.Windows.Forms.OpenFileDialog
-- Show quoteHide quoteAl 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 > > > > 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" <tanja_kram***@delay.nop> schrieb: I have hardly ever seen a Windows application showing a "Load" menu item in > I see System.Windows.Forms.SaveFileDialog but no LoadFileDialog. How do I > make button text to "Load" instead of "Save" 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/> 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... -- Show quoteHide quoteHope this helps Jay B. Harlow [MVP - Outlook] ..NET Application Architect, Enthusiast, & Evangelist T.S. Bradley - http://www.tsbradley.net "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message news:uoXOJa1VGHA.2040@TK2MSFTNGP15.phx.gbl... | "Tanja Krammer" <tanja_kram***@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/> | Jay B. Harlow [MVP - Outlook] wrote:
> Herfried, Open=>Close will be needed as a later operation.> 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... Load=>Open, get data, close. Andrew 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. -- Show quoteHide quoteHope this helps Jay B. Harlow [MVP - Outlook] ..NET Application Architect, Enthusiast, & Evangelist T.S. Bradley - http://www.tsbradley.net "Andrew Morton" <a**@in-press.co.uk.invalid> wrote in message news:OPlUEAMWGHA.3972@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 | | 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... -- Show quoteHide quoteHope this helps Jay B. Harlow [MVP - Outlook] ..NET Application Architect, Enthusiast, & Evangelist T.S. Bradley - http://www.tsbradley.net "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_***@tsbradley.net> wrote in message news:%235wMsYQWGHA.5012@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" <a**@in-press.co.uk.invalid> wrote in message | news:OPlUEAMWGHA.3972@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 || || | | 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 Show quoteHide quote "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_***@tsbradley.net> schreef in bericht news:e9wzqpKWGHA.3740@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]" <hirf-spam-me-here@gmx.at> wrote in message > news:uoXOJa1VGHA.2040@TK2MSFTNGP15.phx.gbl... > | "Tanja Krammer" <tanja_kram***@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/> > | > >
Trying to "display" control characters in a text box
Getting the selected item from a listview WMI script to get Win32_Product Where to do the Loading tasks for application ? Foreign Language Names Getting DataGrid row X, Y position and Changing Column Width (2003) Using PLink interactively as a Telnet process with VB.Net 2003 Joining files error line number Generate a text/binary file during installation |
|||||||||||||||||||||||