473,473 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Displaying an instantiated control

Hi,

I don't want to be a pain by reposting, but this has been bothering me for
months. Sorry if I am being a nuisance.

I have a set of classes, each associated with a row of a DB. I want to
embed within each class a form to display the row and associated subordinate
rows. Also, I want to use VS to maintain the forms.

The classes will be instanitated as required for possible data
manipulation/retrieval, but not displayed unless explicitly directed.

I thought I could develop each class as a Windows Control library. Then I
could instantiate the appropriate class as needed, manipulate it and then
display it if necessary.

Here's my problem.

I do not know how to display the control without adding it to the Controls
container. I could instantiate each and every class (hidden) at BOJ and
Show them when needed, but I don't like this approach since there is only a
subset of classes required for any one execution.

I really would like to keep everything contained, including the display
capability, within each class. Is there a better way to do this? Is it
possible for me to implement my idea?

Thanx,
Bill


Nov 16 '05 #1
2 1017
Have you tried inheriting your classes from System.Windows.Forms.Form?

DalePres
MCAD, MCDBA, MCSE
"web1110" <we***@comcast.net> wrote in message
news:oK********************@comcast.com...
Hi,

I don't want to be a pain by reposting, but this has been bothering me for
months. Sorry if I am being a nuisance.

I have a set of classes, each associated with a row of a DB. I want to
embed within each class a form to display the row and associated
subordinate
rows. Also, I want to use VS to maintain the forms.

The classes will be instanitated as required for possible data
manipulation/retrieval, but not displayed unless explicitly directed.

I thought I could develop each class as a Windows Control library. Then I
could instantiate the appropriate class as needed, manipulate it and then
display it if necessary.

Here's my problem.

I do not know how to display the control without adding it to the Controls
container. I could instantiate each and every class (hidden) at BOJ and
Show them when needed, but I don't like this approach since there is only
a
subset of classes required for any one execution.

I really would like to keep everything contained, including the display
capability, within each class. Is there a better way to do this? Is it
possible for me to implement my idea?

Thanx,
Bill

Nov 16 '05 #2

"DalePres" <don-t-spa-m-me@lea-ve-me-a-lone--.com> wrote in message
news:ez*************@TK2MSFTNGP15.phx.gbl...
Have you tried inheriting your classes from System.Windows.Forms.Form?

DalePres
MCAD, MCDBA, MCSE
"web1110" <we***@comcast.net> wrote in message
news:oK********************@comcast.com...
Hi,

I don't want to be a pain by reposting, but this has been bothering me for months. Sorry if I am being a nuisance.

I have a set of classes, each associated with a row of a DB. I want to
embed within each class a form to display the row and associated
subordinate
rows. Also, I want to use VS to maintain the forms.

The classes will be instanitated as required for possible data
manipulation/retrieval, but not displayed unless explicitly directed.

I thought I could develop each class as a Windows Control library. Then I could instantiate the appropriate class as needed, manipulate it and then display it if necessary.

Here's my problem.

I do not know how to display the control without adding it to the Controls container. I could instantiate each and every class (hidden) at BOJ and
Show them when needed, but I don't like this approach since there is only a
subset of classes required for any one execution.

I really would like to keep everything contained, including the display
capability, within each class. Is there a better way to do this? Is it
possible for me to implement my idea?

Thanx,
Bill


Nov 16 '05 #3

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

Similar topics

1
by: Yoshitha | last post by:
hi I have datalist control in my ASP.NET application the problem here is i have used a textbox with multiline true propertly when i enter data like "fdjsfhjksdhfjsdfhsdjhfsdfhsdjfhsd...
5
by: Tomaz Koritnik | last post by:
Hi I have many short HTML files stored in a binary stream storage to display descriptions for various items in application. HTML would be display inside application using some .NET control or...
2
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
1
by: AndrewMBaldwin | last post by:
Ok, this is going to be a long post, so I apologize in advance, but if it was an easy question I would have probably found an answer somewhere out here by now... The short story of this is that...
1
by: buzz | last post by:
How do I get to the form events such as sizeChanded of an instantiated form? for example: My main form has a pictureBox control, when I double click it, it will open a new form and show the image...
4
by: Jason Chan | last post by:
How can I get the month and year a calendar control current displaying? My problem is I want to load a list of event to a calendar so that it display difference style if there a event for a day....
3
by: Richard Carpenter | last post by:
I understand how to use a dropdown list control to display the associated description value for a foreign key in a parent rather than the key itself, but I don't like having to disable the control...
3
by: vijishoba | last post by:
i call webpage from my windows application,the following error will occur,so i include to dlls namely SHDocVw.dll and AxSHDocVw.dll, ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot...
7
by: RichB | last post by:
I am trying to get to grips with the asp.net ajaxcontrol toolkit, and am trying to add a tabbed control to the page. I have no problems within the aspx file, and can dynamically manipulate a...
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...
1
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,...
1
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...
0
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...
0
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 ...
0
muto222
php
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.