Click here to Skip to main content
15,917,329 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi Fellaws,

I have a requirement to show three buttons in a dialogue box. I have the PDFStream with me and all I need to do is:

1. Click of "Open" button: Show the PDF and give an option to save it.
2. Click of "Save" button: Save the PDF to given path.
2. Click of "Close" button: Close the dialogue.

I am aware Save dialogue/Open dialogue boxes, but am I missing something?
Is there any other approach to this. Please suggest.


Regards,
Pramod V
Posted
Comments
Sinisa Hajnal 17-Mar-15 3:24am    
Make you own dialog that will do what you need?
Member 11503173 17-Mar-15 3:30am    
Like create your own dialogue using window.forms is it?
Sinisa Hajnal 17-Mar-15 3:39am    
Well, you didn't specify in which technology you're working with, but yes, since you mentioned dialogs I assumed winforms.
Member 11503173 17-Mar-15 3:43am    
Technology I am using is .NET C#. And yes you are right I am thinking of using System.Windows.Forms..

Will that be recommended?
Sinisa Hajnal 17-Mar-15 4:29am    
What do you mean "recommended"? That is what I would do with full control of how it looks and what it does. Open file, Save file etc dialogs are specifically created to handle windows files - if you need one to open file, you use OpenFileDialog, for saving you use SaveFileDialog...I'm not aware there is one that does both. Therefore you need to create it.

1 solution

Member 11503173 wrote:
I am thinking of using System.Windows.Forms


If i understand you well, you want to call open/save dialogs via button click. Please, see:
1. Click of "Open" button: Show the PDF and give an option to save it.
OpenFileDialog[^]
How to: Use the Open File Dialog Box[^]

2. Click of "Save" button: Save the PDF to given path.
SaveFileDialog[^]
How to: Save Files Using the SaveFileDialog Component[^]

3. Click of "Close" button: Close the dialogue.
I have no idea what you mean ;( There's nothing like "CloseDialog".
 
Share this answer
 
Comments
ChrisCreateBoss 17-Mar-15 15:29pm    
@MaciejLos I think that close dialogue is meant to be like the Are you sure you want to exit? Dialogue. However, that's what I understand.
Maciej Los 17-Mar-15 15:31pm    
It might meant that ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900