473,396 Members | 1,852 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.

Looking for a specific control

9
hi,

I am a c# student and we just started to learn about winform's.

we learned about open and save filedialog() recently,

I want to make my own openfiledialog, but i searched every where for this control and i could not find thing that was helpfull, i uploaded a picture with the control that i am looking for to rapidshare, if someone can help me it will be great.

http://rapidshare.com/files/159279329/control.jpg.html

thank's
idan
Oct 31 '08 #1
6 1102
cloud255
427 Expert 256MB
Hi

If you just want to create an instance of the open/save file dialog control you just do the following:

OpenFileDialog openFileDialog1 = new OpenFileDialog();

Or

SaveFileDialog saveFileDialog1 = new SaveFileDialog();

Please use more descriptive names than these.

To create your own one, i suggest you look into inheriting from one of its parent controls such as the CommonDialog, it will require a bit of playing around to see just what to inherit from (judging from you are currently learning, i doubt that you will be using inheritance)

good luck
Oct 31 '08 #2
tlhintoq
3,525 Expert 2GB
hi,

I am a c# student and we just started to learn about winform's.

we learned about open and save filedialog() recently,

I want to make my own openfiledialog, but i searched every where for this control and i could not find thing that was helpfull, i uploaded a picture with the control that i am looking for to rapidshare, if someone can help me it will be great.

http://rapidshare.com/files/159279329/control.jpg.html

thank's
idan
Are you looking for a control that is *just* the file listing box, as outlined in red on your uploaded graphic?

Do you think the file list box is something already built and part of Visual Studio, that you could just drop on to your form, like you would a TextBox or a RadioButton?
Oct 31 '08 #3
djidan
9
hi

thank's for the quick reply.

cloud255: we learned already inheritance and i know how to do it,
but when i looked on msdn about openfiledialog class property it's saying that it's a seald class, and it's "father" filedialog class, it's not seald but there is a private method's that you need to override but you can't because they are in private, about inherite from commondialog it's not usefull because i don't want to make a all new windows i just want to use the control i have posted.

tlhintoq: yes, fix me if i am wrong, i assumed that it's a control that you can just drag and drop from the toolkit, if not> how can i do it?
beause when i searched the web the only thing's i found that are almost what i need are: "DirListBox","DriveListBox", "FileListBox", and that's not what i want, i want exactly what i uploaded on rapidshare.

thanks

idan
Oct 31 '08 #4
Plater
7,872 Expert 4TB
You could create your own with a TreeView and using System.IO.Directory (and .File) probably?
Oct 31 '08 #5
joedeene
583 512MB
...i want exactly what i uploaded on rapidshare.

thanks

idan
If you want EXACTLY what you have uploaded on the rapidshare site, then why not use the OpenFileDialog? You'd spend forever trying to create graphics for the personal dialog that you make, that compare to Vista's. Are you not allowed to use this control? Do you HAVE to create your own dialog?

joedeene
Oct 31 '08 #6
tlhintoq
3,525 Expert 2GB
hi

thank's for the quick reply.

cloud255: we learned already inheritance and i know how to do it,
but when i looked on msdn about openfiledialog class property it's saying that it's a seald class, and it's "father" filedialog class, it's not seald but there is a private method's that you need to override but you can't because they are in private, about inherite from commondialog it's not usefull because i don't want to make a all new windows i just want to use the control i have posted.

tlhintoq: yes, fix me if i am wrong, i assumed that it's a control that you can just drag and drop from the toolkit, if not> how can i do it?
beause when i searched the web the only thing's i found that are almost what i need are: "DirListBox","DriveListBox", "FileListBox", and that's not what i want, i want exactly what i uploaded on rapidshare.

thanks

idan
Idan. Nope. Sorry to break that bad news to you. But that area you outlined in red is not a control you can D-n-D onto a form.

But as Plater suggests you could build one.
  • Open your project.
  • In Solution Explorer, right-click on your Project
  • From the context menu choose "Add..."
  • from the submenu choose "User Control"

Then start adding methods, properties and events to create a control that does everything you want.

Plater Today 06:43 AM
Moderator - 5,750 Posts
#5: Re: Looking for a specific control

You could create your own with a TreeView and using System.IO.Directory (and .File) probably?
The beauty of such things is that once you have created these custom controls you can use them over and over just like any other tool in the toolbox pallet.

A search on Google for "C# user controls" will get you lots of good results and how-to tutorials such as this one .
Nov 1 '08 #7

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

Similar topics

1
by: Angie | last post by:
Hello, My name is Angela Mastrodonato. I'm a web designer who would like the assistance of a php programmer. Some of my clients have requested more dynamic web sites, and I am in the beginning...
0
by: Matan Holtzer | last post by:
Hello I'm looking for a replacement for the imgedit.ocx control. Up untill now, I was using this control in my application for displaying and annotating scanned tiff images (both single and...
0
by: Nunya D. Bidness | last post by:
If anyone is interested in testing these components goto http://www.vibrantinnovations.com/vibrantlayouttools.asp The Vibrant Layout Tools ActiveX component is a suite of tools that allow...
4
by: Xah Lee | last post by:
while programing in Python, one can lookup syntax or info for keywords or modules within Python. In the command line, type python to get into the python interactive program. then type...
12
by: Charles Law | last post by:
Hi guys A bit of curve ball here ... I have a document (Word) that contains a series of instructions in sections and subsections (and sub-subsections). There are 350 pages of them. I need to...
1
by: Johann Blake | last post by:
I am looking for a good solution on how to implement data access in an application so that there is a clean separation between the data access layer, the business layer and the GUI layer. I am...
3
by: Shapper | last post by:
Hello, Could someone point me a good validation control for ASP.Net? Thank You, Miguel
2
by: Matt | last post by:
Hi, I am looking for a control that will allow me to host other controls inside it but have a method of showing and hiding. I have seen plenty of horizontal controls for doing this but I am looking...
2
by: lxrocks | last post by:
I am looking for comparitive performance information for C-Compilers. More especially in the area of Float/Integer computes. Any information would be appreciated. tks
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
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.