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

Customizing OpenFileDialog component, changing GUI of Dialogbox

Hi
I need an OpenFileDialog with my own gui of the dialog box. i want to use the functionality given
by the object of the OpenFileDialog component with my own dialogbox....have any ideas...
Is it possible to override the ShowDialog() method so that i can induce my own windows form dialog..?

--need help
-----seash
Nov 16 '05 #1
3 4821
Hi,
Hi
I need an OpenFileDialog with my own gui of the dialog box. i want to use the functionality given
by the object of the OpenFileDialog component with my own dialogbox....have any ideas...
Is it possible to override the ShowDialog() method so that i can induce my own windows form dialog..?


"OpenFileDialog" class seems to be *sealed*, so You cannot
inherit from it...

Look at abstract "FileDialog" class in .NET docs.

Regards

Marcin
Nov 16 '05 #2


----- Marcin Grzębski wrote: ----

Hi
H
I need an OpenFileDialog with my own gui of the dialog box. i want to use the functionality give
by the object of the OpenFileDialog component with my own dialogbox....have any ideas..
Is it possible to override the ShowDialog() method so that i can induce my own windows form dialog.. "OpenFileDialog" class seems to be *sealed*, so You canno
inherit from it.. Look at abstract "FileDialog" class in .NET docs Regard Marci

hi Marcin
i created a class[windows form] somthing like thi
public class MyDialogForm: System.Windows.Forms.FileDialo

but when i run the object of the above class like thi
MyDialogForm objDialog = new MyDialogForm()
objDialog.ShowDialog()

Iam getting an compile error like thi
C:\Source\MyDialogForm .cs(13): 'MyDialogForm does not implement inherited abstract member 'System.Windows.Forms.FileDialog.RunFileDialog(Sys tem.Windows.Forms.NativeMethods.OPENFILENAME_I)

Regards
Seash.
Nov 16 '05 #3
Hi,
hi Marcin
i created a class[windows form] somthing like this
public class MyDialogForm: System.Windows.Forms.FileDialog
{
}

but when i run the object of the above class like this
MyDialogForm objDialog = new MyDialogForm();
objDialog.ShowDialog();

Iam getting an compile error like this
C:\Source\MyDialogForm .cs(13): 'MyDialogForm does not
implement inherited abstract member
'System.Windows.Forms.FileDialog.RunFileDialog(Sy stem.Windows.Forms.NativeMethods.OPENFILENAME_I)'


"FileDialog" is an abstract class which means that is contains one or
more abstract methods/properties. So, you've go to impements
those abstract members ("RunFileDialog(...)")

....But it looks that Microsoft does not include that method's
description in docs. There's no info about "NativeMethods"
class/structure??

I'm sorry but it looks that i drive You in the dead-end.
I was hoping that "FileDialog" was designed to extends its
functionality... but i was wrong. It looks like internal-sealed
class. :(

Marcin

PS: If anybody has any practise with inheriting FileDialog,
don't be afraid of post.
Nov 16 '05 #4

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

Similar topics

1
by: Job Lot | last post by:
How can embed company logo in title section of setup dialog box?
4
by: Michael Grosse | last post by:
I've conquered a very strange behaviour that I cannot account for logically and therefore seek help in this Discussion Group. I'm currently developing 2 applications and intend to use the standard...
2
by: stand__sure | last post by:
I have noticed that many apps control the icons in the left-side pane of the OpenFileDialog (to show folders like "My Documents" or "My Pictures"), but I see no way to control this through the...
1
by: Curious | last post by:
Hi, I am trying to use the PropertyGrid component. I am showing properties of an object. Such properties that I added include simple data types: int string. Now I would like one of the...
8
by: marcus.kwok | last post by:
I am having a weird problem and I have can't figure out why it is happening. I create an OpenFileDialog and set a filename filter. When the dialog first opens, the filter works correctly, and...
7
by: Adam Honek | last post by:
Given I have problems with using OpenFileDialog as explained in another thread here, what other options are there? All I need is for the user to be able to browse for files and select one or...
0
by: Gregaz | last post by:
I have a form in my project, which I open as a DialogBox. On that that form there are 3 TextBoxes. To one of them I want to write in a file path. To have it easier I have an OpenFileDialog control...
6
by: Mike | last post by:
Hello all, I'm trying to work with the openfiledialog and being new to vb and vb.net I'm having some problems. Wherever I have Me.OpenFileDialog1 I keep getting the following error: C:\Visual...
2
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...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...
0
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...
0
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...
0
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...

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.