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

Partial Class for a Form

I have a form named frmDetails which host numerous tab controls. There’s
bunch of code written to make each tab perform specific task. With the amount
of code sitting behind, isolating code into Regions is not making it better.
How can I isolation code into various Partial Classes for the form?

I tried adding a class and adding Partial Public Class frmStockDetails, but
it create a separate node for it and also creates a form for it as well.
Please help.

Thanks

Dec 22 '05 #1
1 1206
create a code file or a class file (not a form file)
then name the class inside public partial frmDetails.

It will be a different node (it;'s a different file after all) but it will
compile into 1 class.
Currently you use a different class name for the other part, that's the
problem!!

--
Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
"Job Lot" <Jo****@discussions.microsoft.com> wrote in message
news:23**********************************@microsof t.com...
I have a form named frmDetails which host numerous tab controls. There's
bunch of code written to make each tab perform specific task. With the
amount
of code sitting behind, isolating code into Regions is not making it
better.
How can I isolation code into various Partial Classes for the form?

I tried adding a class and adding Partial Public Class frmStockDetails,
but
it create a separate node for it and also creates a form for it as well.
Please help.

Thanks

Dec 22 '05 #2

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

Similar topics

10
by: ptass | last post by:
Hi In asp.net 2.0 an aspx files .cs file is a partial class and all works fine, however, I thought I’d be able to create another class file, call it a partial class and have that compile and...
3
by: Rene | last post by:
VS 2005 uses the Partial Class & <form>.Designer.cs for its windows forms generated code. When upgrading from 2003 the project wizard did not break the form, it left it the old way. I would like...
2
by: Christopher | last post by:
Greetings, By default Visual Studio 2005 starts each new project up with the code in partial class form. Is there anyway I can change this behavior so that the code is not split amongst...
4
by: Brett Romero | last post by:
I have a .NET 1.1 form that was migrated into 2.0. Its class file is in form1.cs. I've created another "code" file named form1.designer.cs and with this code: partial class form1 in the...
3
by: erich | last post by:
In VS2005, creating a new form creates the form class and a partial (frm*.designer.vb) class file and displays the partial class beneath the main form frm*.vb, which is great. However, when...
2
by: Sebastian | last post by:
Hi Everyone, we're currently developing an web-app for insurance company. We've got a long form-flows and view-classes (MVC) of about 2000 lines of code. Is there any possibility to split...
2
by: Joseph Geretz | last post by:
When I create a Form, the VB IDE creates the following files in the following hierarchy: Form1.cs Form1.Designer.cs Form1.resx Both Form1.cs and Form1.Designer.cs are partial implementations...
2
by: Gary Brown | last post by:
Hi, I have moved some of the implementation of a form into a second file and enclosed it with "partial class ..." VS wants to give the second file its own designer form. How do I prevent that...
2
by: pihentagy | last post by:
Hi all! Is it possible to have a bindingsource in a partial class? Well it is possible, but I have the following issues: - this.components is defined in the .designer.cs file. If I call my own...
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?
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
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,...

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.