Click here to Skip to main content
15,867,308 members
Articles / Programming Languages / C#

Zeta .NET Base Libraries

Rate me:
Please Sign up or sign in to vote.
4.41/5 (44 votes)
30 Mar 2007CPOL3 min read 151.2K   2.4K   147   35
A small set of general-purpose classes for using in .NET applications

Image 1

Image: Folder structure of the library.

(For the latest changes, see the history section below.)

Introduction

In my zeta HelpDesk article, I've used a library I developed for our internal projects and customer projects to use as a slim thin base library. This article quickly introduces that library.

Originally I did not intend to provide the source or to provide an article at all about this library, but since nice people asked me to do so, here it is.

The library exists and is constantly enhanced since approximately 3 years. Therefore you can expect it to be rather stable and hopefully rather bug-free. But because of the fact that I never planned to release the library and that the library is mostly used by myself only (few exceptions), probably the design and documentation (through comments, only) isn't as good as it could be.

Goals of this Article and the Library

Probably you don't find any usage for all of the functions of the library. But maybe the one or the other class is something you looked for in the past. If this is true for you, you could either use the whole library with the DLL files, or you could extract the source code and compile it with your own projects.

Background

The library requires the .NET Framework 1.1 to be installed. It also runs on the .NET Framework 2.0 (any beta/RC versions) on my test systems.

The library consists of three parts:

  • "Core": Classes and functions that can be used from within Windows Forms applications, console applications and Web applications.
  • "Windows": Classes and functions that are intended to be used from within Windows Forms applications. This library uses the "Core" library.
  • "Web": Classes and functions that are intended to be used from within Web applications. This library uses the "Core" library.

The library uses the following third party libraries which are included as binaries (DLLs):

The Code

In this first article, please excuse that I don't provide any deep information about the library. I wrote this first version of the article mainly to respond to the requests in the zeta HelpDesk article.

Therefore, for now please see the following three screenshots from Lutz Roeder's Reflector for the classes of the library.

Image 2

Image: "Core" library classes.

Image 3

Image: "Web" library classes.

Image 4

Image: "Windows" library classes.

Annotation for the "Core" library: When .NET 2.0 is released, I plan to rewrite the classes inside the "ZetaLib.Core.Data" namespace by using Generics in order to dramatically reduce the amount of duplicated code (e.g. the AdoNetOleDBHelper class and the AdoNetSqlHelper class have lot of duplicate code which could be reduced by the use of Generics).

Using the Code

To get working examples of how to use the library, for now please refer to the zeta HelpDesk article. The zeta HelpDesk applications makes heavy use of the ZetaLibNet libraries.

History

  • 2007-03-30
    • Added several minor features/classes/functions
    • Did some minor refactoring
    • Started commenting using GhostDoc
    • Started optimizing using FxCop
  • 2006-10-26
    • Maintenance release
  • 2006-07-07
    • The most notable additions are two Windows Forms controls that allow for tree views and list views with tri-state check boxes ("checked", "unchecked" and "indeterminate") beside the items:

      Image 5

      Image: Tree view control with checkboxes with three states.

      Image 6

      Image: List view control with checkboxes with three states.
  • 2006-03-31
    • Some minor enhancements and fixes
    • Nothing special, just the newest version
  • 2005-10-22
    • First release of the article

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer Zeta Software GmbH
Germany Germany
Uwe does programming since 1989 with experiences in Assembler, C++, MFC and lots of web- and database stuff and now uses ASP.NET and C# extensively, too. He has also teached programming to students at the local university.

➡️ Give me a tip 🙂

In his free time, he does climbing, running and mountain biking. In 2012 he became a father of a cute boy and in 2014 of an awesome girl.

Some cool, free software from us:

Windows 10 Ereignisanzeige  
German Developer Community  
Free Test Management Software - Intuitive, competitive, Test Plans.  
Homepage erstellen - Intuitive, very easy to use.  
Offline-Homepage-Baukasten

Comments and Discussions

 
QuestionTrying to add a BackGround Image to the TriStateCheckBoxTree Pin
Tim8w22-Nov-21 6:00
Tim8w22-Nov-21 6:00 
GeneralAbout to host on Google Code and CodePlex Pin
Uwe Keim19-Jul-09 9:28
sitebuilderUwe Keim19-Jul-09 9:28 
GeneralHost It Somewhere Please! Pin
Lex Li22-Feb-08 22:55
professionalLex Li22-Feb-08 22:55 
GeneralRe: Host It Somewhere Please! Pin
Uwe Keim22-Feb-08 23:38
sitebuilderUwe Keim22-Feb-08 23:38 
GeneralRe: Host It Somewhere Please! Pin
Lex Li23-Feb-08 0:56
professionalLex Li23-Feb-08 0:56 
GeneralRe: Host It Somewhere Please! Pin
Uwe Keim19-Jul-09 9:23
sitebuilderUwe Keim19-Jul-09 9:23 
GeneralGreat! Pin
adrianmarinescu16-Sep-07 4:30
adrianmarinescu16-Sep-07 4:30 
GeneralRe: Great! Pin
Uwe Keim16-Sep-07 5:31
sitebuilderUwe Keim16-Sep-07 5:31 
GeneralRe: Great! Pin
adrianmarinescu16-Sep-07 5:42
adrianmarinescu16-Sep-07 5:42 
GeneralRe: Great! Pin
Uwe Keim16-Sep-07 5:45
sitebuilderUwe Keim16-Sep-07 5:45 
GeneralRe: Great! Pin
adrianmarinescu20-Mar-08 16:07
adrianmarinescu20-Mar-08 16:07 
It perfectly works for months and now I have another question:
Will it work in a Webservice?

-Global.asax -> add "Initialize()"
-Web.config -> add nodes
Something else to keep in mind?

Thanks and Goodnight!
GeneralRe: Great! Pin
Uwe Keim20-Mar-08 21:01
sitebuilderUwe Keim20-Mar-08 21:01 
GeneralThanks Pin
tranbagu1-Aug-07 16:32
tranbagu1-Aug-07 16:32 
GeneralGreat Code Pin
coolboyx10-Jul-07 9:34
coolboyx10-Jul-07 9:34 
GeneralRe: Great Code Pin
Uwe Keim10-Jul-07 9:39
sitebuilderUwe Keim10-Jul-07 9:39 
GeneralProblem building zeta library core Pin
Richard Guion31-Mar-07 18:06
Richard Guion31-Mar-07 18:06 
GeneralRe: Problem building zeta library core Pin
Uwe Keim31-Mar-07 20:07
sitebuilderUwe Keim31-Mar-07 20:07 
GeneralRe: Problem building zeta library core Pin
Richard Guion4-Apr-07 6:50
Richard Guion4-Apr-07 6:50 
GeneralNice Pin
FZelle31-Mar-07 1:15
FZelle31-Mar-07 1:15 
JokeRe: Nice Pin
Uwe Keim31-Mar-07 1:35
sitebuilderUwe Keim31-Mar-07 1:35 
GeneralToo good Pin
bhaskar_priya30-Mar-07 22:46
bhaskar_priya30-Mar-07 22:46 
GeneralRe: Too good Pin
Uwe Keim30-Mar-07 22:51
sitebuilderUwe Keim30-Mar-07 22:51 
GeneralExcellent - wish I could give a 5 again. Pin
Grav-Vt30-Mar-07 13:50
Grav-Vt30-Mar-07 13:50 
GeneralRe: Excellent - wish I could give a 5 again. Pin
Uwe Keim30-Mar-07 21:23
sitebuilderUwe Keim30-Mar-07 21:23 
GeneralIndeterminate state to checked state Pin
Laurent Muller30-Oct-06 22:44
professionalLaurent Muller30-Oct-06 22:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.