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

Cntrol Creation

Hello.. I want to create a control that resembles the "Properties"
window in Visual Studio. What is the best control I can use for that ?
I am using .NET 1.1 and winforms. Any help would be appreciated.
Thanks in advance.
Oct 17 '08 #1
3 1022
"Vivek" <vi******@gmail.comwrote in message
news:ac**********************************@n33g2000 pri.googlegroups.com...
Hello.. I want to create a control that resembles the "Properties"
window in Visual Studio. What is the best control I can use for that ?
I am using .NET 1.1 and winforms.
Use a System.Windows.Forms.PropertyGrid control. This looks exactly the
same as the Properties window (and has the same capabilities) and is very
easy to use: just assign to the property SelectedObject a reference to the
object whose properties you want to show, and they appear in the control.
You can decorate with attributes the properties in your object to control
the way that they are displayed in the PropertyGrid.

Oct 17 '08 #2
Thank you very much for your reply. My requirement is I need to have a
control with three columns, where the first column is a CheckBox,
second is normal column and third is a column which will have controls
based on the value in the second column
eg: chekbox Question1 CheckBox
checkbox Question2 TextBox
checkbox Question3 ComboBox
and so on... Can I create controls inside a ListBox or a ListView? How
can I do it..? Thanks in advance....
Oct 17 '08 #3
"Vivek" <vi******@gmail.comwrote in message
news:76**********************************@r37g2000 prr.googlegroups.com...
Thank you very much for your reply. My requirement is I need to have a
control with three columns, where the first column is a CheckBox,
second is normal column and third is a column which will have controls
based on the value in the second column
eg: chekbox Question1 CheckBox
checkbox Question2 TextBox
checkbox Question3 ComboBox
and so on... Can I create controls inside a ListBox or a ListView? How
can I do it..? Thanks in advance....
Ah, no, you can't the PropertyGrid for this purpose. It always displays
two columns, and the first one is always the name of each property.

If I have understood what you are describing, I think that a DataGrid
control would be the best for you, but you will have to do quite a bit of
work to sublass the DataGridColumnStyle for the third column, which needs to
host different controls depending on the value of another column.

Oct 17 '08 #4

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

Similar topics

5
by: [ EuGeNe ] | last post by:
Hi all, I would like to write a script that downloads one file from a ftp server if the file creation date satisfy a condition. I can't figure out how to find from a ftp server what is the...
3
by: SK | last post by:
I have a file. i get the creation time using File.GetCreationTime. then i go and delete that file. and then create it again and print the File.GetCreationTime. It is giving me the old creation...
6
by: | last post by:
I have a class with overloading operator new. (Because, if an identical object exists, return a pointer to existed object instead of a new pointer) It has no sense (it is dangerous) to allocate an...
2
by: David Fickbohm | last post by:
People, I am trying to determine the creation date of files in a folder. I am using the following code to find the folder and confirm that files exist in the folder. If someone could give me an...
5
by: Tompa | last post by:
Hi, I would like to create images on the fly as a response to an http request. I can do this with PIL like this (file create_gif.py): from PIL import Image, ImageDraw print 'Status: 200 OK'...
1
by: chettiar | last post by:
Hi, I am dropping an index and recreating it to lower the high water mark. The index creation is taking a lot of time. I am stuck as to why it does so. Is there any way that I can find out why...
0
by: Pluton | last post by:
Hello, I would like to know if you are informed of one (or several!) good book, document (memory, tutorial, etc...) or site concerning the creation of controls? I am rather interested in...
3
by: Steven Blair | last post by:
Hi, I have a trace log file for a system I am writing. If the creation date is older than 14 days, I have to rename that file (File.Move). The next time a trace message is required a new file is...
8
by: Anthony Munter | last post by:
I have a web application with impersonate=”true” in Web.config and on my own logon page I allow the user to either - specify a userid/password for the app to impersonate when calling legacy...
3
by: Nick Dreyer | last post by:
I was quite surprised to notice that Sub New() gets called twice, once at declaration time and once at creation time. I can't figure out why it would be called at declaration if there is no class...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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?
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:
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...
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...

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.