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. …
Blogs / Programming Tutorial On The Way free online programming resource on dotnet, csharp, web related topics
Programming Tutorial On The Way free online programming resource on dotnet, csharp, web related topics
Csharp programming tutorial with simple article, sample, code
Latest posts
-
Use Boolean Variables For CheckBox Values
http://funcode.org/article/visual-basic/use-boolean-variables-for-checkbox-values.aspx -
Display Horizontal Scrollbar in ListBox
http://funcode.org/article/visual-basic/display-horizontal-scrollbar-in-listbox.aspxUnlike 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. …
-
Get the True Member of An Option Array
http://funcode.org/article/visual-basic/get-the-true-member-of-an-option-array.aspxSetting 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. …