Relative Content

Tag Archive for vb.net

How get and set accessors work

The standard method of implementing get and set accessors in C# and VB.NET is to use a public property to set and retrieve the value of a corresponding private variable. Am I right in saying that this has no effect of different instances of a variable? By this I mean, if there are different instantiations of an object, then those instances and their properties are completely independent right? So I think my understanding is correct that setting a private variable is just a construct to be able to implement the get and set pattern? Never been 100% sure about this.

VB.NET: Two tiers for three layers or three tiers for three layers

I asked a question on StackOverflow in November about separating a very large application into layers and tiers: https://stackoverflow.com/questions/13342626/net-divorcing-layers. The previous developer included data logic and business logic in the business logic layer

Not using SQL Transactions

I am looking at a codebase where a developer never uses SQL transactions i.e. each update/insert into the SQL database is an atomic operation.

Read data from external biometric fingerprint device in zkemkeeper

I have this code working properly. i can able to connect & call the number of log from the device but cant able to read Enroll number. when ever the code reaches mesagbox(“2”) & after display it cant able to see mesagebox(“2.5”). it keeps error message “Conversion from string”” to type ‘Integer’ is not valid.”.
when i put this code
“If String.IsNullOrEmpty(dwEnrollNumber) Then
MessageBox.Show(“Error: Empty or invalid User ID”)
Else”
it shows me where it have issue but i cant able to escape this “” value.
Below is the code in general.
I think i make this question clear.