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.
Obtain reference to Parent object during instantiation
I have a situation where a custom class is a property of another class.
Datagridview to text file, possible to place text in front of each specific column?
I am working on a project to where a datagridview is populated by text boxes. This information contains Name, DOB, Phone number, address, etc. I am then writing the data to a text file.
How do I handle having so many SQL queries?
I have an MVC3 project that uses SQL Server.
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
i dont know why my absolute value still has a negative sign when i run this [closed]
Closed 2 days ago.
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.
DOTNET – Why are my dynamic labels being corrupted when I try to send an email with screenshot of the Form as an Image?
I’m experimenting on VB.NET Email Sending with Attached Imaging. The image is automatically captured from a Form. However, some of the labels that are dynamically loaded through data fetched from other Forms, are corrupted when I view the email. Any idea how?
Introducing Fowler’s Table Data Gateway to refactor poorly designed systems
I am developing an application, which currently has about 150,000 lines of code. The previous developer didn’t really use any discipline when writing code. Application is in production but is continually developed.
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.