473,732 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Customize Common Dialog

Is there a way to customize the open file common dialog? I am trying to
modify the button text so I can create a delete file common dialog. I need
the same functionality of the open file common dialog but just need to
change the button text from "open" to "delete". Any ideas?

Thanks
Nov 16 '05 #1
23 7016
I guess you may inherit from FileDialog to create your "delete dialog" but I
think it's not recommended. So...changing your dialog box's title to
include "delete" seems to be the best option!

--
-----------------------------------------------------------------
Isaac Yuen
CEM
University of Alberta
iy***@ualberta. construction.ca
-----------------------------------------------------------------

| University of Alberta
| Phone: (780) 492-2276
| Fax: (780) 492-0249
"George" <ge****@yahoo.c om> wrote in message
news:O1******** *****@tk2msftng p13.phx.gbl...
Is there a way to customize the open file common dialog? I am trying to
modify the button text so I can create a delete file common dialog. I need the same functionality of the open file common dialog but just need to
change the button text from "open" to "delete". Any ideas?

Thanks

Nov 16 '05 #2
To extend Common dialog with additional option buttons, command buttons, and
check boxes, combo boxes calender, or preview options etc etc....follow
these steps

1. Create a dialog (or Form) seperately.
2. Align all the controls you want in the dialog to be displayed while
OpenFileDialog is displayed
3. Now attach this dialog at the bottom of the common dialog.

At runtime, you will feel that its part of common dialog. Same way you can
hide some of the buttons of Common dialog like "Open" for example, and keep
your button called "delete" there. Your form will overlap those controls.

Hope you understood it.

Shak.

"George" <ge****@yahoo.c om> wrote in message
news:O1******** *****@tk2msftng p13.phx.gbl...
Is there a way to customize the open file common dialog? I am trying to
modify the button text so I can create a delete file common dialog. I need the same functionality of the open file common dialog but just need to
change the button text from "open" to "delete". Any ideas?

Thanks

Nov 16 '05 #3
This step intrigues me:

'3. Now attach this dialog at the bottom of the common dialog.'

What incantations need to be performed to do this?

"Shakir Hussain" <sh**@fakedomai n.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
To extend Common dialog with additional option buttons, command buttons,
and
check boxes, combo boxes calender, or preview options etc etc....follow
these steps

1. Create a dialog (or Form) seperately.
2. Align all the controls you want in the dialog to be displayed while
OpenFileDialog is displayed
3. Now attach this dialog at the bottom of the common dialog.

At runtime, you will feel that its part of common dialog. Same way you can
hide some of the buttons of Common dialog like "Open" for example, and
keep
your button called "delete" there. Your form will overlap those controls.

Hope you understood it.

Shak.

"George" <ge****@yahoo.c om> wrote in message
news:O1******** *****@tk2msftng p13.phx.gbl...
Is there a way to customize the open file common dialog? I am trying to
modify the button text so I can create a delete file common dialog. I

need
the same functionality of the open file common dialog but just need to
change the button text from "open" to "delete". Any ideas?

Thanks


Nov 16 '05 #4
overlapping buttons? not sure about that one either.

"Steve Austin" <st**********@c apecanaveral.co m> wrote in message
news:Et******** ************@gi ganews.com...
This step intrigues me:

'3. Now attach this dialog at the bottom of the common dialog.'

What incantations need to be performed to do this?

"Shakir Hussain" <sh**@fakedomai n.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
To extend Common dialog with additional option buttons, command buttons,
and
check boxes, combo boxes calender, or preview options etc etc....follow
these steps

1. Create a dialog (or Form) seperately.
2. Align all the controls you want in the dialog to be displayed while
OpenFileDialog is displayed
3. Now attach this dialog at the bottom of the common dialog.

At runtime, you will feel that its part of common dialog. Same way you can hide some of the buttons of Common dialog like "Open" for example, and
keep
your button called "delete" there. Your form will overlap those controls.
Hope you understood it.

Shak.

"George" <ge****@yahoo.c om> wrote in message
news:O1******** *****@tk2msftng p13.phx.gbl...
Is there a way to customize the open file common dialog? I am trying to modify the button text so I can create a delete file common dialog. I

need
the same functionality of the open file common dialog but just need to
change the button text from "open" to "delete". Any ideas?

Thanks



Nov 16 '05 #5
George,

don't customize a open file dialog to do something that doesn't involve
opening a dialog... Deleting a file still involves files though, so why not
do what the Open and Save dialog's do? Inherit from a dialog that deals with
files generally.

Create a new class, and inherit from the FileDialog class, then you can have
another class called "DeleteFileDial og".

If you need more help let me know.

Good luck!

Dan.

"George" <ge****@yahoo.c om> wrote in message
news:O1******** *****@tk2msftng p13.phx.gbl...
Is there a way to customize the open file common dialog? I am trying to
modify the button text so I can create a delete file common dialog. I need the same functionality of the open file common dialog but just need to
change the button text from "open" to "delete". Any ideas?

Thanks

Nov 16 '05 #6
Attach your dialog id to member of open file dialog.

m_ofn.lp_Templa teName = MAKEINTRESOURCE (ID_MYDIALOG)

m_ofn is the member of OpenFileDialog. After attaching it, you can position
whereever you want, like bottom, or side etc. To make it look nice you can
add a button saying "More details". On click of that, you can show the
custom dialog.

Shak.

"Steve Austin" <st**********@c apecanaveral.co m> wrote in message
news:Et******** ************@gi ganews.com...
This step intrigues me:

'3. Now attach this dialog at the bottom of the common dialog.'

What incantations need to be performed to do this?

"Shakir Hussain" <sh**@fakedomai n.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
To extend Common dialog with additional option buttons, command buttons,
and
check boxes, combo boxes calender, or preview options etc etc....follow
these steps

1. Create a dialog (or Form) seperately.
2. Align all the controls you want in the dialog to be displayed while
OpenFileDialog is displayed
3. Now attach this dialog at the bottom of the common dialog.

At runtime, you will feel that its part of common dialog. Same way you can hide some of the buttons of Common dialog like "Open" for example, and
keep
your button called "delete" there. Your form will overlap those controls.
Hope you understood it.

Shak.

"George" <ge****@yahoo.c om> wrote in message
news:O1******** *****@tk2msftng p13.phx.gbl...
Is there a way to customize the open file common dialog? I am trying to modify the button text so I can create a delete file common dialog. I

need
the same functionality of the open file common dialog but just need to
change the button text from "open" to "delete". Any ideas?

Thanks



Nov 16 '05 #7
Hmm, reading the documentation in the MSDN, this isn't the way to go about
it either...

Doh!

"Daniel Bass" <DanielBass TAKE at OUT CAPS WORDS Postmaster.co.u k> wrote in
message news:Ok******** ******@TK2MSFTN GP12.phx.gbl...
George,

don't customize a open file dialog to do something that doesn't involve
opening a dialog... Deleting a file still involves files though, so why not do what the Open and Save dialog's do? Inherit from a dialog that deals with files generally.

Create a new class, and inherit from the FileDialog class, then you can have another class called "DeleteFileDial og".

If you need more help let me know.

Good luck!

Dan.

"George" <ge****@yahoo.c om> wrote in message
news:O1******** *****@tk2msftng p13.phx.gbl...
Is there a way to customize the open file common dialog? I am trying to
modify the button text so I can create a delete file common dialog. I

need
the same functionality of the open file common dialog but just need to
change the button text from "open" to "delete". Any ideas?

Thanks


Nov 16 '05 #8
Looking at all the replies, I am confused. What should I do?

Thanks

"Daniel Bass" <DanielBass TAKE at OUT CAPS WORDS Postmaster.co.u k> wrote in
message news:ON******** ******@TK2MSFTN GP12.phx.gbl...
Hmm, reading the documentation in the MSDN, this isn't the way to go about
it either...

Doh!

"Daniel Bass" <DanielBass TAKE at OUT CAPS WORDS Postmaster.co.u k> wrote in message news:Ok******** ******@TK2MSFTN GP12.phx.gbl...
George,

don't customize a open file dialog to do something that doesn't involve
opening a dialog... Deleting a file still involves files though, so why

not
do what the Open and Save dialog's do? Inherit from a dialog that deals

with
files generally.

Create a new class, and inherit from the FileDialog class, then you can

have
another class called "DeleteFileDial og".

If you need more help let me know.

Good luck!

Dan.

"George" <ge****@yahoo.c om> wrote in message
news:O1******** *****@tk2msftng p13.phx.gbl...
Is there a way to customize the open file common dialog? I am trying to modify the button text so I can create a delete file common dialog. I

need
the same functionality of the open file common dialog but just need to
change the button text from "open" to "delete". Any ideas?

Thanks



Nov 16 '05 #9
Looking at all the replies, I am confused. What should I do?

Thanks

"Daniel Bass" <DanielBass TAKE at OUT CAPS WORDS Postmaster.co.u k> wrote in
message news:ON******** ******@TK2MSFTN GP12.phx.gbl...
Hmm, reading the documentation in the MSDN, this isn't the way to go about
it either...

Doh!

"Daniel Bass" <DanielBass TAKE at OUT CAPS WORDS Postmaster.co.u k> wrote in message news:Ok******** ******@TK2MSFTN GP12.phx.gbl...
George,

don't customize a open file dialog to do something that doesn't involve
opening a dialog... Deleting a file still involves files though, so why

not
do what the Open and Save dialog's do? Inherit from a dialog that deals

with
files generally.

Create a new class, and inherit from the FileDialog class, then you can

have
another class called "DeleteFileDial og".

If you need more help let me know.

Good luck!

Dan.

"George" <ge****@yahoo.c om> wrote in message
news:O1******** *****@tk2msftng p13.phx.gbl...
Is there a way to customize the open file common dialog? I am trying to modify the button text so I can create a delete file common dialog. I

need
the same functionality of the open file common dialog but just need to
change the button text from "open" to "delete". Any ideas?

Thanks



Nov 16 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5550
by: smjmitchell | last post by:
Hi All, I am using the common dialog color pallete and open forms in VB6.0. I have two questions: 1. How can the position of these forms on the screen be specified when they are loaded. By default they always seem to be located with their upper left corner coinciding with the upper left corner of the form that they are loaded from. I would prefer them to have an initial
3
6800
by: S.W. Rasmussen | last post by:
With the risk of being accused of multi-posting I would like to draw the attention to a serious visual basic/windows issue discussed in the microsoft.public.vb.bugs newsgroup. As pointed out below by Norman Diamond the bug may result in loss of data when saving files with the standard common dialog control. Norman Diamond describes the problem as follows: ---------- In VB6 SP6, VB6 SP5, and possibly others, the common dialog box...
2
6683
by: Robin | last post by:
I need to add a checkbox to the common dialog control for opening files. I know it is possible to customize the common dialog thru API. But the sample codes I have seen were too long and elaborate. One was for adding a preview pane for images to show thumbnails. All I want is a simple checkbox. Heck, I will settle for the built-in "open as read only" checkbox if I could just change its caption.
3
4136
by: CaribSoft | last post by:
I want to create my own common dialog to use in an application . How do I show a custom dialog (form) in a class based on the common dialog class?
0
1373
by: Bo Gusman | last post by:
A curious problem, one that I think I've seen before. I have a .250 MLOC vb6 app that uses the common dialog control. If I select File/Open in my app to display the file open dialog and then alt-tab to another running app, when I try to alt-tab back to my app, the common dialog box and my apps main window is gone (can't see it in the task bar, or in the alt-tab window). If I then maximize another window and minimize it again, my app and...
6
1917
by: Steve Barnett | last post by:
I need to include a wizard in my application that will, as one of the steps, ask the user to select a file to open and (later) a file to save it as. The naff way to do this would be to have a button on the form that pops-up the common dialog. The cool way to do this would be to have the common dialog embedded in the wizard. I know it's possible, as I've seen other apps do this kind of thing, but I have no ideas how it can be achieved and...
0
8946
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
8774
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
9307
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...
0
9181
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
6735
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
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
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.