473,395 Members | 1,941 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.

Organize Forms

Is it possible to organize forms so that their Code is seperated in
several classes?

What I would like to do is to have the code of the content for each tab
page in seperate classes.
Example:
A tabpage contains some facilities to view/update company data from a
database. Those facilities should be encapsulated in one class, so that
I can reuse this class at several points of the software.

What possibilities are there to implement this?

Regards
Stephan
Nov 18 '05 #1
3 1673
Stephan,

The easiest way to do this would be to encapsulate the logic in separate
controls, one for each page. Then, you can embed each control on a separate
page.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Stephan Zaubzer" <st*************@schendl.at> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Is it possible to organize forms so that their Code is seperated in
several classes?

What I would like to do is to have the code of the content for each tab
page in seperate classes.
Example:
A tabpage contains some facilities to view/update company data from a
database. Those facilities should be encapsulated in one class, so that I
can reuse this class at several points of the software.

What possibilities are there to implement this?

Regards
Stephan

Nov 18 '05 #2
A Form is a class, just like any other class. The methods & properties
of an separate object are as available in a Form as they are in any other
class.

--
Truth,
James Curran
[erstwhile VC++ MVP]

Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
"Stephan Zaubzer" <st*************@schendl.at> wrote in message
news:#4*************@TK2MSFTNGP10.phx.gbl...
Is it possible to organize forms so that their Code is seperated in
several classes?

What I would like to do is to have the code of the content for each tab
page in seperate classes.
Example:
A tabpage contains some facilities to view/update company data from a
database. Those facilities should be encapsulated in one class, so that
I can reuse this class at several points of the software.

What possibilities are there to implement this?

Regards
Stephan

Nov 18 '05 #3
http://www.c-sharpcorner.com/Code/20...harp%201.0.asp

--

Derek Davis
dd******@gmail.com

"Stephan Zaubzer" <st*************@schendl.at> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Is it possible to organize forms so that their Code is seperated in
several classes?

What I would like to do is to have the code of the content for each tab
page in seperate classes.
Example:
A tabpage contains some facilities to view/update company data from a
database. Those facilities should be encapsulated in one class, so that I
can reuse this class at several points of the software.

What possibilities are there to implement this?

Regards
Stephan

Nov 18 '05 #4

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

Similar topics

10
by: Bruce W...1 | last post by:
I've been learning about PHP for a couple of weeks. With includes, PHP scripts, and HTML I can see where a large and complex website could easily turn in to a big hairy mess with files all over...
3
by: _andrea | last post by:
I'd like to write a web-application with other people. It is the first time I write code together other person. I'd like to ask you some advices: 1)have an advice? 2)wich program to use for VCS...
2
by: bstrike | last post by:
I am certain, this question was asked plenty of times before, but I could not find a satisfying answer. So please apologyze my lack of knowledge. We are fairly new to .NET and C#. We would like...
1
by: Greg Cyrus | last post by:
"How to organize a Web-Project with DLL-Projects and Forms-Authentication" Hi, i would like to create a multi-tier solution with many projects using ASP.NET such like presentation, biz-logic,...
17
by: ljlevend2 | last post by:
I'm implementing the WebBrowser control in my app and I would like to be able to show the Add to Favorites and Organize Favorites dialogs that are used in Internet Explorer. Is this possible? ...
0
by: Paul Williams | last post by:
I'm working on an MDI app with several dozen forms, it's ready for white box testing. Is it better style to keep all the test code for each form inside the form class itself or put it all in a...
1
by: Rudderius | last post by:
Hey, I'm working on a winform app in VS 2005. I'm wondering if someone knows some best practices on how to organize the toolstrips. I have a menuToolStrip and some other toolstrips. As in many...
1
by: ASP Developer | last post by:
I have a user control with exposed properties. I have about 100 properties. I would like to organize them so they are easier for other programmers to peruse. Is it possible to organize the misc...
1
by: Thomas Wittek | last post by:
Hi! Is there any possibility/tool to automatically organize the imports at the beginning of a module? I don't mean automatic imports like autoimp does as I like seeing where my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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.