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

Dialogboxes

Could someone tell me the difference between a openfile dialogbox and a savefile dialogbox? Or is there even a difference? Thanks again!
May 29 '07 #1
5 962
SammyB
807 Expert 512MB
Could someone tell me the difference between a openfile dialogbox and a savefile dialogbox? Or is there even a difference? Thanks again!
The OpenFileDialog has Open in the title bar; the SaveFileDialog has SaveAs.
May 29 '07 #2
Plater
7,872 Expert 4TB
My guess would be some default dialog settings.
The title says "Save" vs "Open" and that Open requires the file to exist before allowing a successfull selection
May 29 '07 #3
Atran
319 100+
Could someone tell me the difference between a openfile dialogbox and a savefile dialogbox? Or is there even a difference? Thanks again!
Hello, I will give you an example:
---think to have in your form a picturebox, and make two buttons, one for opendialog and the second for savedialog, so when you click the opendialog button, then the opendialog will shown to you, so you can choose the image to open, choose an image and click ok, so the picturebox picture is the picture you choose it from the opendialog, no go to the savedialog button and click it then you will see hte savedialog and click save, then you will see your picture from the picturebox has been saved in your hadrdisk.
Bye.
May 29 '07 #4
SammyB
807 Expert 512MB
Hello, I will give you an example:
---think to have in your form a picturebox, and make two buttons, one for opendialog and the second for savedialog, so when you click the opendialog button, then the opendialog will shown to you, so you can choose the image to open, choose an image and click ok, so the picturebox picture is the picture you choose it from the opendialog, no go to the savedialog button and click it then you will see hte savedialog and click save, then you will see your picture from the picturebox has been saved in your hadrdisk.
Bye.
Sorry, Atran, this is not correct. The Open and SaveAs dialog boxes only give you a string, .FileName, which is the filespec that the user choose. They do not do any file operations, except that both of them have an Open() method that returns a Stream object. Even then you would still have to operate on these Stream objects.
May 29 '07 #5
I got it...thanx to u all
May 30 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: marco | last post by:
this week, i've seen a little GUI for python/win32 .. a little library which can use simple dialog (openfile, opendir, messagebox, progressbar ... and that's all) ... it worked only on win32...
1
by: fanbaly | last post by:
I find savefiledialog and other pre-established dialogboxes from toolbox. But how about a fully custom dialog like the about_click event in Help of all programes? I am fresh in VB.net...
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 =...
0
by: Olaf Baeyens | last post by:
The security related stuff of the .NET is a little bit too hard to learn for newcomers. So what would be nice is to have a small wizard like program that asks questions about what security you...
1
by: Kumarforg | last post by:
Hi, I need to simulate the Microsoft Word product functionality in my windows applications. Short of developing user controls for each office component like toolbar/dialogboxes etc., what...
2
by: Phoebe | last post by:
Hello, Can anyone tell when we need to use the function IsDialogMessage? What is the different between Code 1 and Code 2? Code 1: --------- while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {...
3
by: Jerry | last post by:
Hi, MessageBox can be localized? It's say, Can I set the language of "OK", "Cancel" button.
3
by: Jazzkt | last post by:
Hello, Folks, I am new to VC++ and I just added a form to my application. The GUI has a group of checkboxes, a combo box, a text box and two buttons. Will someone please walk me through...
5
by: Sebastian Santacroce | last post by:
Hello, I'm trying get a message box to show useing messagebox.show (...) and then checking what they chose. The only problem is that when it pops up it is locking all other windows until it the...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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.