Blogs / Programming Tutorial On The Way free online programming resource on dotnet, csharp, web related topics

View all »

Latest posts

  1. Use Boolean Variables For CheckBox Values

    http://funcode.org/article/visual-basic/use-boolean-variables-for-checkbox-values.aspx

    Visual Basic specifies a Boolean’s default values as zero for False and -1 for True. You may save and set the value of a check box, based on the absolute value of a Boolean variable, as these correspond to the intrinsic constants vbUnchecked and vbChecked: Dim bBool as Boolean bBool = True '//If bBool = 0 the checkbox will be '//unchecked, if it is anything else it will '//be checked. …

    31 days ago
  2. Display Horizontal Scrollbar in ListBox

    http://funcode.org/article/visual-basic/display-horizontal-scrollbar-in-listbox.aspx

    Unlike the Windows 95 common controls, the standard list box doesn’t have a horizontal scrollbar when list items are too wide to fit within the list box. Fortunately, it’s not hard to direct a listbox control to display a horizontal scrollbar. Add this code to a form’s Load event. …

    31 days ago
  3. Get the True Member of An Option Array

    http://funcode.org/article/visual-basic/get-the-true-member-of-an-option-array.aspx

    Setting an element in an array of option buttons to True is easy. Click on the option button, or use this code: OptionArray(ThisOne) = True ThisOne is the Index of the member you want to be selected. Getting the True member of an option array is not so simple. …

    31 days ago