Click here to Skip to main content
11,410,379 members (54,070 online)
Click here to Skip to main content

PallaControls for Windows forms

, 21 Aug 2003
Rate this:
Please Sign up or sign in to vote.
Approximately 35 controls for Windows Forms. Some ideas for visual composition and classes of general use.

Sample Image - menulistbox.jpg


I program in Delphi since the version 1.0, and in this time, I did create some controls that has given form to how I develop my "programs". They help enough in typical tasks of Windows forms applications (Example: validation). Besides, together with some friends of the university of São Paulo, I developed a pattern of "very private visual" identity (combination of colors, sources and forms).

When I began "to play" with the .NET platform, the first thing that I thought was: " I have to do something similar here". This article is exactly a collection of controls that I developed to use in my Windows forms applications. There are approximately 35 controls!

The .NET community all over the world

Sincerely, if the community formed around the .NET platform didn't exist, I would not know where to begin. Actually, a lot of code was just adapted to do part of this collection. In the section of credits, I mention all developers (that I rememeber ; -)) of whom I took advantage of some thing. To publish this library is the form that I have to thank and to return to the community what I could learn.


The inspiration, kept the due proportion, it is Money of Microsoft. There is a lot to talk about the controls and the intention.

  • StyleGuide – This control serves as base for the style of most of the other ones. The property PlansOfColors contains the existent patterns.
  • Button – A normal button if not for the property Radius (to round the corners).
  • ImageButton – Another normal button; allows the choice of an image.
  • CheckBoxCheckBox reminds a little of that vineyard in a Borland library that came with Borland C.
  • RadioButton – normal radio button.
  • TextBox – Normal textbox with some interesting properties for validation of the entrance of data:
    • Mask- it presents the validation possibilities; some especially useful to Brazil... (17options).
    • NotAcceptChars - together with Mask.TextWithNotAcceptChars it doesn't allow the entrance of disabled characters.
    • DecimalPlaces
    • DecMaxValue
    • DecMinValue

      The last three are for validation and formation of numbers.

    • Required - the completion of the field is indicated, it is of obligatory completion.
    • ShowErrorProvider - the control is indicated it should exhibit the mistake indication.

    input sample

  • ButtonEdit – Textbox with button on the right side that contains the same properties of TextBox.
  • DatePicker - Component for entrance of dates.
  • ComboBox – Normal combobox if not for the following properties:
    • JustAcceptItems- it only accepts the completion with items of the combo.
    • Mask, Required, ShowErrorProvider - Same as TextBox.
    • AutoFill - it fills out the list with pré-defined items (months, states and etc...) Obs: I am almost sorry for having placed this in the control. Its escapes a lot from the defined patterns for the bind mechanism...
  • GroupBoxPanel, with borders in the extremities, title and possibility of rounding of the corners.
  • MenuListBox – Inspired list box in Money99 that allows shortcut keys, description of the items and definition of an image for the items.
  • InfiniteProgress - infinite progress with gradient effects (pretty good).
  • MessageBox – Component that "imitates" MessageBox contained in System.Windows.Forms. The good thing here is the possibility to use a CheckBox together with the message.

    MessageBox sample

  • DateTimeVisualize – Control "idiot" that I needed for a very private occasion.
  • Label – Normal label if not for the fact of working with StyleGuide.
  • ListBox – Normal list box if not for the fact of working with StyleGuide.
  • OptionButton – Button that works like a RadioButton.
  • SpinEdit – Control for entrance of numbers.
  • XpLine – Line with gradient effects. It "imitates" the lines used in some parts of Windows XP.

    input sample

  • TaskPanelBar – A control that allows the creation of windows in the style of Money99, also...
  • TabbedGroups econtroles “Docking” – Save some adaptations, works exactly as in the library "MagicLibrary of Crownwood Consulting Limited". In fact, what I learned with this library, it was worth books that I bought more than some...; -)
  • Panel – A normal panel, if not for the following properties:
    • PanelType - It says to the control, like him it should be "colored", following the established patterns.

    Message sample

Possible memory leaks

In general, as I have been evidencing in some tests (basically it is true) there are not problems with memory leaks. However, MessageBox.ShowProgressDialog seems, that is draining some thing. My suggestion, in case you want to use this: Test before!!

Bindable controls

Independent in the way like me, I did (I think can quite still get better, nannies that you see the listbox to understand it that phallus), most of the controls work well the bind mechanism.

Credits and gratefulness

As I said before, a lot of things were removed off the community; Here I will mention those that I remember:

  • “MagicLibrary" - "CrownwoodConsulting Limited" (this collection of controls is spectacular and the code is a class on how to write controls for Windows forms)
  • “FlatControls" - "Ivar Lumi" (the first light...; -))
  • "Marcelo Soares" - for the creation of the style "AssGreen" and several critics and suggestions to the library. (Man, sometimes almost hill of rage in our discussions, but I have to recognize, your critics strengthen me and you are very competent).
  • "James T. Johnson" –"TSWizard"
  • “Clovett" - "InfiniteProgress"
  • "Ingo Rammer" –“RemotingHelpers"

I think that is it! I might have forgotten somebody, after all, there are nights after nights in the google, reading posts, articles, lowering sources, testing and etc. In case you see something in this library that seems it was adapted and don't have the due credit, please send me an e-mail so that the mistake can be corrected.

Thanks also to MSDN Brazil's personnel; a community truly strong and disposed to help, whenever necessary. A hug for the personnel of, especially to Fábio Galuppo and Rogério Wagner. You don't know the importance about having people like you so "accessible" and always disposed to help. Congratulations for your work!

A special hug for a teacher whom I had more than ten years, "Nilson Nihomatsu" from "Paralelo school". Among other things, he taught me something that I maintained during this whole time: TO LIKE LEARNING!

Finally, if you improve any part of these controls or wants to discuss something related to the sources, feel free to contact me by e-mail.


  • Version 1.0 - 07/27/03
    • Initial version
  • Version 1.1 - 07/30/03
    • Corrections
      • RadioButton - Generation of event CheckedChanged. (thanks Stray Bullet)
      • MessageBox (Show method) - Coordinates of the buttons (YesNo, OKCancel)
      • ComboBox - Added property SelectedValue and event SelectedValueChanged. (thanks toticow)
      • GroupBox - Code of the interface IFlashabledControl
    • Improvements
      • ControlBase, PanelBase - Creation and code of the interface IHasStyleControl to facilitate the configuration of style in child controls.
      • Translation of constants' names in the class ResourceLibrary. (thanks Olaf Herrmann, next step is translate the messages)
  • Version 1.2 - 07/31/03
    • Corrections
      • TextBox - Bug with DecimalPlaces property. (thanks Stray Bullet)
      • DatePicker - LostFocus and PopupWindow bug (null ref...). (thanks Piotr Ozaist)
      • InfiniteProgress - Code of the interface IHasStyleControl.
    • Improvements
      • SpinEdit - "Hold the mouse over the arrow button with pressed key does not continue counting" (thanks Olaf Herrmann)
  • Version 1.3 - 08/05/03
    • Corrections
      • TextBox, DatePicker, ButtonEdit, ComboBox, ListBox, MenuListBox - Use DisableColor when the Enabled property is same, the false in designer. (thanks Stray Bullet)
      • GroupBox - Fittings in the drawing of the title. (thanks Stray Bullet)
    • Improvements
      • PallaControls.Resources - (at last!) translation of the messages for English (culture "en"). Still lacks other aspects of individual cultures. (Example: validation of the social insurance number and etc.)
  • Version 1.4 - 08/07/03
    • Corrections
      • Button, CheckBox, RadioButton, GroupBox, OptionButton - Correction of the problem that inverted the colors of the border (BorderHotColor, BorderColor). (thanks JeffGreen)
      • TextBox, DatePicker, ButtonEdit, ComboBox, ListBox, MenuListBox - KeyUp, KeyDown and KeyPress events. (thanks JeffGreen)
      • TextBoxBase - DecMinVal and DecMaxVal bug. (thanks Geri Wolters)
    • Improvements
      • TextBoxBase, Date and Time handlers and validations - "Made it more culture aware and let validation be handled by the DateTime class". (thanks Geri Wolters)
  • Version 1.5 - 08/10/03
    • Improvements
      • TextBoxBase, TextBox, ButtonEdit - Added for Geri Wolters. Custom validation with RegularExpression.
      • StyleGuide - Added for Geri Wolters. Capacity to save and load styles in XML files.
      • StyleGuide - Added style "TweakGreen" created by Stray Bullet.
  • Version 1.6 - 08/23/03
    • Corrections
      • "When adding an Object to the ListBox (Text and Value), I can't get the text to display. I think this is a bug as the MS control worked fine with my code". (thanks JeffGreen)
    • Improvements
      • TextBoxBase, TextBox, ButtonEdit - Added for Geri Wolters. Custom error messages.
  • Version 1.7 - 08/25/03
    • Corrections
      • ControlBase, TextBox, ButtonEdit - GotFocus and LostFocus bugs. (thanks Hzi)


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Web Developer
Brazil Brazil
To develop software is the best work of the world!

Comments and Discussions

GeneralLicense for PallaControls for Windows forms Pinmemberabugeja30-Aug-10 6:56 
GeneralErro de Ressource PinmemberRICROCH25-Feb-06 8:56 
GeneralRe: Erro de Ressource PinmemberPalladino25-Feb-06 9:38 
GeneralRe: Erro de Ressource PinmemberRICROCH25-Feb-06 10:14 
GeneralRe: Erro de Ressource PinmemberPalladino19-Mar-06 9:19 
GeneralMuchas Gracias....Good Stuff Pinmembergc-13-Jan-06 5:59 
GeneralResources problem PinmemberDUMITRU Guraliuc13-Dec-05 5:16 
GeneralRe: Resources problem PinmemberDUMITRU Guraliuc14-Dec-05 3:25 
GeneralAutocomplete in Combobox solution PinmemberRichard Bourque1-Oct-04 6:11 
GeneralNot Compiling in VS.NET 2003 Pinmemberimpro29-Sep-04 7:27 
GeneralRe: Not Compiling in VS.NET 2003 Pinmembervvvkkkggg12-Jan-05 17:25 
GeneralRe: Not Compiling in VS.NET 2003 PinmemberRoman Tarasov24-Mar-09 4:05 
GeneralResource file not found Pinmembersend2tusharp@yahoo.com21-Aug-04 0:53 
GeneralRe: Resource file not found PinmemberPalladino23-Aug-04 2:16 
GeneralMENULISTBOX Error PinsussAlessandro20-May-04 0:48 
Generalpls Help : Can't compile Pinmemberkrishnadevank25-Apr-04 20:44 
GeneralRe: pls Help : Can't compile Pinmemberdxben30-Apr-04 7:59 
GeneralSelect the control text on GotFocus PinmemberBoban Stojanovski29-Dec-03 22:32 
GeneralEmail PinmemberOliverMCP26-Dec-03 3:05 
GeneralProblem with Color changing to default Pinmemberilya lozovyy18-Dec-03 12:06 
GeneralComboBox Problem PinsussAhmed Mohsen22-Nov-03 19:13 
GeneralComboBox problem Pinmemberclu197819-Nov-03 5:26 
GeneralRe: ComboBox problem PinmemberPalladino2-Dec-03 0:21 
GeneralRe: ComboBox problem Pinsussclu19783-Dec-03 20:52 
QuestionAny new updates? PinmemberRichard Bourque14-Nov-03 5:57 
AnswerRe: Any new updates? PinmemberPalladino2-Dec-03 0:13 
GeneralRe: Any new updates? PinmemberRichard Bourque9-Dec-03 10:29 
GeneralCombobox Qs PinmemberWilsonTeo15-Oct-03 17:28 
GeneralRe: Combobox Qs PinmemberPalladino2-Dec-03 0:25 
GeneralSpinEdit Pinmembertoticow8-Oct-03 14:32 
GeneralRe: SpinEdit PinmemberPalladino8-Oct-03 15:22 
GeneralUtilizando o PallaControls Pinsussleandromacielalmeida3-Oct-03 5:13 
GeneralRe: Utilizando o PallaControls PinmemberPalladino5-Oct-03 3:36 
Generali coulnt get it started Pinmemberraifserkan18-Sep-03 1:04 
GeneralRe: i coulnt get it started PinmemberPalladino18-Sep-03 4:01 
GeneralRe: i coulnt get it started Pinmemberraifserkan19-Sep-03 1:54 
GeneralRe: i coulnt get it started PinmemberPalladino20-Sep-03 2:09 ? PinmemberGRATPAIN5-Sep-03 20:21 
AnswerRe: ? PinmemberPalladino7-Sep-03 3:34 
GeneralGotFocus problem PinmemberHzi25-Aug-03 0:35 
GeneralRe: GotFocus problem PinmemberPalladino25-Aug-03 14:43 
GeneralListBox Pinmemberjeff green19-Aug-03 13:10 
GeneralRe: ListBox PinmemberPalladino20-Aug-03 3:15 
GeneralRe: ListBox Pinmemberjeff green20-Aug-03 11:51 
GeneralRe: ListBox PinmemberPalladino22-Aug-03 8:48 
GeneralRe: ListBox PinmemberronGramann30-Sep-03 1:49 
GeneralRe: ListBox PinmemberPalladino8-Oct-03 15:16 
GeneralComboBox Problem PinmemberJeffGreen8-Aug-03 4:49 
GeneralRe: ComboBox Problem PinmemberPalladino8-Aug-03 9:52 
GeneralOnly on control Pinmemberkrazitchek8-Aug-03 4:40 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150414.5 | Last Updated 22 Aug 2003
Article Copyright 2003 by Palladino
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid