473,769 Members | 2,103 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dummy question

Hi,
I see System.Windows. Forms.SaveFileD ialog but no LoadFileDialog. How do I
make button text to "Load" instead of "Save"
Thank you

Apr 3 '06 #1
9 1349
You probably want the OpenFileDialog

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

Apr 3 '06 #2
Al
Try System.Windows. Forms.OpenFileD ialog
--
Al
Systems Type
"Tanja Krammer" wrote:
Hi,
I see System.Windows. Forms.SaveFileD ialog but no LoadFileDialog. How do I
make button text to "Load" instead of "Save"
Thank you

Apr 3 '06 #3
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
"Tanja Krammer" <ta***********@ delay.nop> schrieb:
I see System.Windows. Forms.SaveFileD ialog 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
Herfried,
But ;-)

We have XmlDocument.Loa d & XmlDocument.Sav e, 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.Loa d 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******** ******@TK2MSFTN GP15.phx.gbl...
| "Tanja Krammer" <ta***********@ delay.nop> schrieb:
| > I see System.Windows. Forms.SaveFileD ialog 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
Jay B. Harlow [MVP - Outlook] wrote:
Herfried,
But ;-)

We have XmlDocument.Loa d & XmlDocument.Sav e, 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
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******** ******@TK2MSFTN GP03.phx.gbl...
Herfried,
But ;-)

We have XmlDocument.Loa d & XmlDocument.Sav e, 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.Loa d 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******** ******@TK2MSFTN GP15.phx.gbl...
| "Tanja Krammer" <ta***********@ delay.nop> schrieb:
| > I see System.Windows. Forms.SaveFileD ialog 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
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.inv alid> wrote in message
news:OP******** ******@TK2MSFTN GP02.phx.gbl...
| Jay B. Harlow [MVP - Outlook] wrote:
| > Herfried,
| > But ;-)
| >
| > We have XmlDocument.Loa d & XmlDocument.Sav e, 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
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******** ********@TK2MSF TNGP05.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.inv alid> wrote in message
| news:OP******** ******@TK2MSFTN GP02.phx.gbl...
|| Jay B. Harlow [MVP - Outlook] wrote:
|| > Herfried,
|| > But ;-)
|| >
|| > We have XmlDocument.Loa d & XmlDocument.Sav e, 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1304
by: Jonathan Fine | last post by:
I'd appreciate comments on what I'm doing. Please be kind, I'm a new kid on the block. Here's my application. I'm writing some test code. (I'm a recent convert to unit testing.)
2
5155
by: JohnnyOnTheSpot | last post by:
If I select from a table and, for example, group by the month or day to determine how much activity there is day to day or month to month, it will only return months and days with a record and leave out any month or day without any records making it apear at a glance that every day or month has activity which forces me or whoever to have to look at the date column and actively look for spots where a day or more elapses without a single row...
4
2917
by: wireless | last post by:
I've written code that dynamically builds an sql query based on various constraint possibilities. The problem is the code would have been very complex had I not come up with a dummy constraint as a kind of place holder in the statement. To avoid complex logic that determines if there was another constraint before any other constraint and hence the need to add, say, AND or not, I came up with a dummy constraint so that every subsequent...
1
1549
by: CSDunn | last post by:
Hello, I am working with a vb6 Windows application that runs on Tablet PC's. There are about five SQL Server 2000 databases that tie into the application. SQL Server MSDE runs on the tablets, and currently there is only one instance running. There are efforts underway to upgrade the application to a .NET SmartClient. One enhancement that needs to be made to the current application will be to provide a 'training mode' in the...
15
3129
by: glenn | last post by:
Hi folks, I have a DropDownList in a DataGrid that is populated from records in a database. I want to add a value that might be a string such as "Select a Company" for the first item since an OnSelectedIndex event is not fired if you select the first item. Does anyone know of an easy way to do this?
13
2319
by: jtric | last post by:
Very new to XML/XSL, so please forgive me if this is an incredibly simple question. I've been pulling my hair out over this for several days now. I'm working on an internal application that takes the output from a custom Excel spreadsheet, and creates a Final Cut Pro sequence in XML. Due to the way Excel handles nested repeating elements, I need to find a way to replace a dummy element I have created with a whole series of repeating elements....
3
4242
by: Simon Brooke | last post by:
As various people will have noticed, I've been having a lot of trouble with XSL lately. Brief history: I wrote myself an XML toolkit back in 2000, and it worked well enough for me, so it's been little changed since. However, it works only with an obsolete version of Saxon (6.2.2 I think), and it has a number of small bugs; and I've at last got to the point where I need to fix it. And I'm finding it, frankly, absurdly frustrating and...
35
21575
by: erik gartz | last post by:
Hi. I'd like to be able to write a loop such as: for i in range(10): pass but without the i variable. The reason for this is I'm using pylint and it complains about the unused variable i. I can achieve the above with more lines of code like: i = 0 while (i != 10): i += 1 Is there a concise way to accomplish this without adding extra lines
2
1673
by: korean_dave | last post by:
Hi. I need a dummy's explanation to utilizing the win32com component to access Microsoft Excel. So far, I have this code. import win32com.client xl = win32com.client.Dispatch("Excel.Application") xl.Visible = 1 workbook = xl.Workbooks.Open("C:\test.xls")
0
9579
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9416
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10199
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10032
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9979
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9849
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7393
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5433
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2810
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.