Click here to Skip to main content
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

Introduction

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.

Controls

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 www.desenvolvendo.net, 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.

History

  • 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)

License

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

Share

About the Author

Palladino
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 5:56 
GeneralErro de Ressource PinmemberRICROCH25-Feb-06 7:56 
GeneralRe: Erro de Ressource PinmemberPalladino25-Feb-06 8:38 
GeneralRe: Erro de Ressource PinmemberRICROCH25-Feb-06 9:14 
GeneralRe: Erro de Ressource PinmemberPalladino19-Mar-06 8:19 
GeneralMuchas Gracias....Good Stuff Pinmembergc-13-Jan-06 4:59 
GeneralResources problem PinmemberDUMITRU Guraliuc13-Dec-05 4:16 
GeneralRe: Resources problem PinmemberDUMITRU Guraliuc14-Dec-05 2:25 
GeneralAutocomplete in Combobox solution PinmemberRichard Bourque1-Oct-04 5:11 
GeneralNot Compiling in VS.NET 2003 Pinmemberimpro29-Sep-04 6:27 
GeneralRe: Not Compiling in VS.NET 2003 Pinmembervvvkkkggg12-Jan-05 16:25 
GeneralRe: Not Compiling in VS.NET 2003 PinmemberRoman Tarasov24-Mar-09 3:05 
GeneralResource file not found Pinmembersend2tusharp@yahoo.com20-Aug-04 23:53 
GeneralRe: Resource file not found PinmemberPalladino23-Aug-04 1:16 
GeneralMENULISTBOX Error PinsussAlessandro19-May-04 23:48 
Generalpls Help : Can't compile Pinmemberkrishnadevank25-Apr-04 19:44 
GeneralRe: pls Help : Can't compile Pinmemberdxben30-Apr-04 6:59 
GeneralSelect the control text on GotFocus PinmemberBoban Stojanovski29-Dec-03 21:32 
GeneralEmail PinmemberOliverMCP26-Dec-03 2:05 
GeneralProblem with Color changing to default Pinmemberilya lozovyy18-Dec-03 11:06 
GeneralComboBox Problem PinsussAhmed Mohsen22-Nov-03 18:13 
GeneralComboBox problem Pinmemberclu197819-Nov-03 4:26 
GeneralRe: ComboBox problem PinmemberPalladino1-Dec-03 23:21 
GeneralRe: ComboBox problem Pinsussclu19783-Dec-03 19:52 
QuestionAny new updates? PinmemberRichard Bourque14-Nov-03 4:57 

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 | Mobile
Web02 | 2.8.141015.1 | Last Updated 22 Aug 2003
Article Copyright 2003 by Palladino
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid