VB.NET Tutorial - Mass Property Changes on Form Controls

preview_player
Показать описание
In this intermediate Visual Basic .NET tutorial I will show you how to create a reusable method that can easily update any number of form control properties across your Windows application. This is useful for, but not limited to, clearing, enabling / disabling TextBoxes, CheckBoxes, or any other form controls.

This strategy can also help to greatly reduce the amount of redundant code within your project environment when dealing with large numbers of controls.

Thank you for supporting this channel! :-)
Рекомендации по теме
Комментарии
Автор

I thank - you for youre well knoledge interventions. sinceres salutations.

hamidazzouzi
Автор

All your videos are amazing dude, you have helped me a lot!, suscribed!

BestiaBronceada
Автор

Excellent tutorial ! appreciating their efforts in the tutorials greetings from Tijuana

nestorcosio
Автор

I had been wondering if there was a more efficient way of editing objects in code without that 'wall of text' that you end up getting. Usually I just stick it in a method and hide it away at the bottom of my code! This is a much better way to do it, good effort!

OMcsTwosComplement
Автор

In the ControleType how would you make it any control that has a specific property rather then typing the line of code for each control type?

samuelholmes
Автор

Thanks for your tutorials, always informative.

How would you modify this code to be used with a Custom Control?

The problem that I have run across is that not all of the control's properties are available, since the control "c" is cast as a generic control. So properties such as Backcolor, Text, Enabled and other common properties are available, but custom properties and methods are not.
To access those Properties, the control needs to be cast into its specific control type.

example: directcast(c, cc_TextBox). StoreValue()
(cc_Textbox is my custom control and StoredValue is my custom method)

But I'm having trouble modifying the code to accomplish this.

jeffr
Автор

are all your videos complete for vb.net and thats all vb.net can do ? btw thank you for making this tutorial

jherkhristnioda
Автор

I am trying to use your code in VS2013 and the statement if is Nothing Then Exit Sub Keeps giving me an error: Conversion from string "Controls" to type 'Integer' is not valid.
I have tried correcting this but have not been able to find the correct Syntax. Could you please help.
The same error happens here if I just comment out the above statement: If IsNot Nothing Then
TIA. It is exactly the code I need.

terrybottorff
Автор

Great tutorials but why are you checking booleans like a noob?

TheVideoVolcano
visit shbcf.ru