AUTOMATED TELLER MACHINE(ATM)
- Read more about AUTOMATED TELLER MACHINE(ATM)
- 71 comments
- Log in or register to post comments
- 3911 views
In my tutorial “How to Pass Value from One Form to another Form” I discussed how the other form received a value by using a Public Variable.
There are so many discussions on the Internet that argues whether Public Variable is a good programming practice compare to Property. Well, IMHO public variable is an option for simplicity. You do not need to waste line of code just to get the same result.
If you are new to VB.NET most likely you encounter a problem with events like TextChanged or ValueChanged events.
In VB 6.0, change event is not fired when changing a value programmatically. However, in the .NET version this has been changed.
In order to avoid this problem you need to call a RemoveHandler Statement.
The following code is an example of this.