473,399 Members | 2,278 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,399 software developers and data experts.

How to display a list of user objects

I am creating a Windows application using C# in .NET.
In one of the windows, I have to show a scrollable list of user objects.
Those user objects contain various controls themselves (textbox, buttons,
etc) and are all of the same type of user object - just showing different
data. In this case, each one is a "question" being presented that needs to be
answered, and the requirement is to be able to show all the questions for a
given "section" of questions on one window in a scrollable control.
What is the best "container" control to show those? That container needs to
be scrollable, and it too will be on a window with other controls. Ideally,
whateverthat container control is, it will allow me to dynamically hide/show
questions because there are "conditional" questions that don't show unless
their condition is met. Example, I may show questions 1, 2, 3. If the
response to question 1 is YES, then questions 1a, 1b, and 1c need to now
show. Otherwise, they don't show in the list of questions in the container.
I tried using a panel, but it requires me to calculate the X,Y for each
object before I add it. And if that "condition" is met, I'll have to re-do
the whole thing to get the questions in there in the proper order or monkey
around with the Locations property for all of them and insert between them.
Can anyone suggest the best container? Thanks.
Nov 22 '05 #1
3 2312
Hi,

I think what would benefit you the most is creating your user controls as
Windows Controls. Create a new project and choose the Windows Control
Library as the project. I'm a VB.Net programmer but if you inquire in the
C# newsgroup for links on tutorials you'll probably get a good response.
Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"RCCNH" <RC***@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
I am creating a Windows application using C# in .NET.
In one of the windows, I have to show a scrollable list of user objects.
Those user objects contain various controls themselves (textbox, buttons,
etc) and are all of the same type of user object - just showing different
data. In this case, each one is a "question" being presented that needs to be answered, and the requirement is to be able to show all the questions for a given "section" of questions on one window in a scrollable control.
What is the best "container" control to show those? That container needs to be scrollable, and it too will be on a window with other controls. Ideally, whateverthat container control is, it will allow me to dynamically hide/show questions because there are "conditional" questions that don't show unless
their condition is met. Example, I may show questions 1, 2, 3. If the
response to question 1 is YES, then questions 1a, 1b, and 1c need to now
show. Otherwise, they don't show in the list of questions in the container. I tried using a panel, but it requires me to calculate the X,Y for each
object before I add it. And if that "condition" is met, I'll have to re-do
the whole thing to get the questions in there in the proper order or monkey around with the Locations property for all of them and insert between them. Can anyone suggest the best container? Thanks.

Nov 22 '05 #2
that seems complicated, i think the best container is an aspx page..

"RCCNH" wrote:
I am creating a Windows application using C# in .NET.
In one of the windows, I have to show a scrollable list of user objects.
Those user objects contain various controls themselves (textbox, buttons,
etc) and are all of the same type of user object - just showing different
data. In this case, each one is a "question" being presented that needs to be
answered, and the requirement is to be able to show all the questions for a
given "section" of questions on one window in a scrollable control.
What is the best "container" control to show those? That container needs to
be scrollable, and it too will be on a window with other controls. Ideally,
whateverthat container control is, it will allow me to dynamically hide/show
questions because there are "conditional" questions that don't show unless
their condition is met. Example, I may show questions 1, 2, 3. If the
response to question 1 is YES, then questions 1a, 1b, and 1c need to now
show. Otherwise, they don't show in the list of questions in the container.
I tried using a panel, but it requires me to calculate the X,Y for each
object before I add it. And if that "condition" is met, I'll have to re-do
the whole thing to get the questions in there in the proper order or monkey
around with the Locations property for all of them and insert between them.
Can anyone suggest the best container? Thanks.

Nov 22 '05 #3
Complicated - but is the requirement. And it is a Windows Forms, desktop
appication - so aspx isn't an option. But thanks for the input.

"[Alan Flores]" wrote:
that seems complicated, i think the best container is an aspx page..

"RCCNH" wrote:
I am creating a Windows application using C# in .NET.
In one of the windows, I have to show a scrollable list of user objects.
Those user objects contain various controls themselves (textbox, buttons,
etc) and are all of the same type of user object - just showing different
data. In this case, each one is a "question" being presented that needs to be
answered, and the requirement is to be able to show all the questions for a
given "section" of questions on one window in a scrollable control.
What is the best "container" control to show those? That container needs to
be scrollable, and it too will be on a window with other controls. Ideally,
whateverthat container control is, it will allow me to dynamically hide/show
questions because there are "conditional" questions that don't show unless
their condition is met. Example, I may show questions 1, 2, 3. If the
response to question 1 is YES, then questions 1a, 1b, and 1c need to now
show. Otherwise, they don't show in the list of questions in the container.
I tried using a panel, but it requires me to calculate the X,Y for each
object before I add it. And if that "condition" is met, I'll have to re-do
the whole thing to get the questions in there in the proper order or monkey
around with the Locations property for all of them and insert between them.
Can anyone suggest the best container? Thanks.

Nov 22 '05 #4

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

Similar topics

3
by: RCCNH | last post by:
I am creating a Windows application using C# in .NET. In one of the windows, I have to show a scrollable list of user objects. Those user objects contain various controls themselves (textbox,...
3
by: Iain Hallam | last post by:
Hi. I've been using display:none on the style property of some <option> elements in my forms, which works fine with Mozilla - as expected it removes the option from my dropdown (although it...
18
by: Alpha | last post by:
Hi, I'm working on a Windows applicaton with VS 2003 on windows 2000. I have a listbox that I have binded to a dataset table, "source" which has 3 columns. I would like to display 2 of those...
5
by: Little | last post by:
I have this program and I need to work on the test portion, which tests if a Val is in the list. It returns false no matter what could you look at the part and see what might need to be done to fix...
2
by: Rob Banfield | last post by:
Hi all, I'm building an app which allows a user to create an ordered list containing sometimes many thousands of objects, each of which he chooses from a set of objects pre-defined within the...
13
by: cz | last post by:
Hi there, I'm sure there is a very simple solution for my question, I just didn't find it up to now. I'm using a badly documented module and therefore need to find out about how to access the...
10
by: Jeff Williams | last post by:
How can I get a list of the Groups both Local and Domain groups a User belongs to.
10
by: AZRebelCowgirl73 | last post by:
This is what I have so far: My program! import java.util.*; import java.lang.*; import java.io.*; import ch06.lists.*; public class UIandDB {
5
by: Academia | last post by:
(If you've seen this in the drawing NG, sorry. I inadvertently sent it there.) I have a listbox populated with Objects. The Class has a String field that ToString returns. I assume that...
1
by: =?Utf-8?B?Q2hhcmxlcw==?= | last post by:
I'm running VS2008 & attempting to solve a problem I've encountered while developing some software for our business. Here's the basic idea...I've created a class that represents a file (with...
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: 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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.