473,569 Members | 2,466 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help with OpenFileDialog StartPosition / Location settings

Everything I've read so far states you can't inherit or extend these
dialogs because they're "sealed".

I considered building my own custom control, but I haven't been able to
find:

1) How to add a "Places Bar" to a form
2) How to hook a Combo Box into System locations like the existing
OpenFileDialog / SaveFileDialog offer (ie. "My Recent Documents",
"Desktop", etc.)
3) A Directory List control that displays Folders and Files, as found
in the OpenFileDialog / SaveFileDialog

In my research, I did discover a web site that sells a Framework that
claims to allow you to "dock" dialogs, specify Start Position, etc.
http://www.componentage.com

They claim you can extend both Open/Save as well as Print, Font, etc.
dialogs. Everything I've read so far contradicts this though, not to
mention the last thing I want to do is add bloatware to my project.

Is there any way to hook / override / interface somehow the
OpenFileDialog / SaveFileDialog controls and specify a Location to be
displayed on the screen when they're launched ?

Kinda like the "Point" member, where you can specify the "X" and "Y"
Coordinates and then assign the Point variable to the .Location member
of most controls.

Nov 17 '05 #1
3 4026
"ci******@hotma il.com" wrote:
In my research, I did discover a web site that sells a Framework that
claims to allow you to "dock" dialogs, specify Start Position, etc.
http://www.componentage.com

They claim you can extend both Open/Save as well as Print, Font, etc.
dialogs. Everything I've read so far contradicts this though, not to
mention the last thing I want to do is add bloatware to my project.


at a guess they're p/invoking the base win32 dialogs which aren't sealed.
Nov 17 '05 #2
You might want to check out Shell MegaPAck at http://www.ssware.com for
Explorer GUI components.

<ci******@hotma il.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
Everything I've read so far states you can't inherit or extend these
dialogs because they're "sealed".

I considered building my own custom control, but I haven't been able to
find:

1) How to add a "Places Bar" to a form
2) How to hook a Combo Box into System locations like the existing
OpenFileDialog / SaveFileDialog offer (ie. "My Recent Documents",
"Desktop", etc.)
3) A Directory List control that displays Folders and Files, as found
in the OpenFileDialog / SaveFileDialog

In my research, I did discover a web site that sells a Framework that
claims to allow you to "dock" dialogs, specify Start Position, etc.
http://www.componentage.com

They claim you can extend both Open/Save as well as Print, Font, etc.
dialogs. Everything I've read so far contradicts this though, not to
mention the last thing I want to do is add bloatware to my project.

Is there any way to hook / override / interface somehow the
OpenFileDialog / SaveFileDialog controls and specify a Location to be
displayed on the screen when they're launched ?

Kinda like the "Point" member, where you can specify the "X" and "Y"
Coordinates and then assign the Point variable to the .Location member
of most controls.

Nov 17 '05 #3
So I guess nothing but bloatware exists, how unfortunate. Was looking
for something more down to coding conventions or tricks that might
work.

Anyone know of any API hooks to move dialog boxes that are sealed?

Nov 17 '05 #4

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

Similar topics

11
2280
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 = OpenFileDialog1.InitialDirectory HOW can you set a 'current' path? For example:
3
6984
by: Ed P. | last post by:
Hello, I have an application that uses an access database that is stored in my computer. I would like to set up a OpenFileDialog object to be able to select the source of this database (i.e. c:\database.mdb). If I move the database to another location I would like to change the path to that other location. Once I change the location, I would...
3
360
by: bobrad | last post by:
MAYBE SOMEBODY CAM HELP I AM USING THE FOLLOWING CODE TO GET A LOCATION OF A FILE IN A WINFORM DIALOG OpenFileDialog openFileDialog = new OpenFileDialog(); OpenFileDialog.Filter = " Access (*.mdb)|*.mdb|All files (*.*)|*.*"; if (openFileDialog.ShowDialog() == DialogResult.OK) DataBaseLocation.Text = openFileDialog.FileName;
5
2378
by: MFC | last post by:
Ok, after three C# books, (C# How to Program, Programming in the Key of C#, and C# Weekend Crash Course) and three weeks, I believe I have tried everything to make a certain form function correctly. I am trying to learn C# after playing around for a bit with procedural programming with PHP, not OOP, and believe I have learned quite a bit in...
2
3628
by: Geoff Jones | last post by:
Hi Can anybody tell me how to specify the startup location of an OpenFileDialog? Thanks in advance Geoff
3
2786
by: Terry Olsen | last post by:
I'm trying to add a domain user to a local group using the code below: Dim LCL As New DirectoryEntry("WinNT://" + Environment.MachineName + ",computer") Dim DOM As New DirectoryEntry("WinNT://us.ups.com") Dim DOMUSR As DirectoryEntry = DOM.Children.Find("USERID", "user") Dim LCLGRP As DirectoryEntry = LCL.Children.Find("LOCAL_GROUP",...
14
2350
by: pamela fluente | last post by:
I want to use the ordinary OpenFileDialog to choose a folder instead of a file. Is it possible? And how? -P
3
3242
by: Martijn Mulder | last post by:
It strikes me that System.Windows.Forms.OpenFileDialog seems te 'remember' which directory it was in last, even when a new OpenFileDialog-object is created for every access to the file system. This 'persistence' also holds between different invocations of the same program. Even when the .cs file is re-compiled, the OpenFileDialog again opens...
2
4711
by: MikeY | last post by:
Hi everyone, I"m having a problem with the OpenFileDialog() changing my path to save to my .resources file. I'm a bit baffled why this is happening, even when I set the OpenFileDialog back to the inital directory where the .resource file resides. What I am trying to do is get the location of my database and save it to string format in...
0
7703
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...
0
7618
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...
0
7926
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. ...
1
7678
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...
1
5514
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...
0
3656
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3644
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1226
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.