just starting to get into the habit of writing comments. What do think about my comment writing? any suggestions!
Private Sub btnAddUser_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddUser.Click
Dim objUser As User
'Gets user index from...
:rolleyes:
Sorry I wasn't sure what to write in question.
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim someproc As Process
someproc = Process.Start("d:\vypress.msi")
End Sub
Private...
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim obj As New Minimal
Dim userAge As Integer
userAge = CType(InputBox("Please enter your age"), Integer)
MessageBox.Show(obj.Age.ToString)
End Sub
Public...
when we create an instance of a class we also provide its state so are these both same and if not same what's the difference?
And also what's the difference when we use equals method for instance or for state?
I have listBox control of user objects where each object has userName and Password.
What I want to do is when a user enters userName and Password a method goes through the listBox checks for whether userName exists or not and if userName exists then matches the password.
What I have in my...
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim ts As TimeSpan
ts = New TimeSpan(9, 0, 0)
MessageBox.Show(ts.Hours.ToString)
End Sub
Suppose I want to add 2 hours to this timespan what would be the...
I have added two checkbox controls chkBox1 and chkBox2.
What I want to do is that when both the chkbox are same meaning checked or unchecked the label should be On and if both are not same label should be Off.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As...
I have two textbox Controls
txtbox1 with useSystemPasswordChar property on
txtbox2
Private Sub btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn1.Click
txtBox2.Text = txtBox1.Text
End Sub
after this subroutine the text entered in...
Option Strict Off
Public Class Form1
Private Sub CapTureScreenShot(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
SendKeys.Send("{%}({PRTSC})")
Me.Show()
'code for saving this file to hard drive.
PictureBox1.Image =...
Public Class Form1
Private Sub btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn1.Click, btn2.Click, btn3.Click
txtResult.Text = txtResult.Text + CType(sender.text, String)
End Sub
End Class
Error due to sender.
I don't want to turn off option...
Public Class Customer
Private m_CID As Integer
Private m_FirstName As String
Private m_LastName As String
Private m_EmailAddress As String
Private m_Balance As Decimal
Private m_Password As String
'want to add Order ID to create relation with orders.
Private m_OID As...
Whats the difference between multidimensional array and creating object and adding it to a 1 dimensional array or creating a structure and adding them to an array.
please tell the pros and cons of doing this.
Dim TwoDArray(1, 3) As Integer
For i As Integer = 0 To ThreeDArray.Length - 1
TwoDArray(i, i) = i + 1
ListBox1.Items.Add(ThreeDArray(i, i))
Next
This adds 1 and 2 to list. My question is why does the first element in the 2d array...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.