Hi, In the following code (Class & Form1), I'm trying to figure out the following: - Create an array that stores the 'Clients' (first name, last name, account number) - 'Button List' the array with the (First Name , Last Name , Array Value , Account Balance) I attached the output and the code to make it more clear and I appreciate the help. Thank you. This is the Class code: [CODE]Public Class BankAccountClass 'Private "Protected" variable Private FName As String Private LName As String Private AcctNum As String Private Bal As Decimal Public Property FirstName As String Get Return …

Member Avatar
Member Avatar
+0 forum 4

Hi, I am trying to "Show" an error message for the user in two cases: 1. If he/she did not enter a correct value for a String. 2. If he/she did not enter a correct value for a Decimal. I know I have to use Try & Catch but each time I use them I get an error. [CODE] Private Sub ButtonAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonAdd.Click Dim AClient As New BankAccountClass AClient.LastName = InputBox("Enter last name", "Enter") AClient.AccountNumber = InputBox("Depost Amount", "Enter") End Sub[/CODE] And this what I used for the Decimal [CODE]Try AClient.AccountNumber Catch …

Member Avatar
Member Avatar
+0 forum 5

This is my first time to do visual basic program Please help me about this problem... When I run the program with maximum attempt of 3 with correct username and password, Illegal user will pop up,,,i really dont know what to do..illegal user must be pop up when i already attempt " try again " then another "3attempt" then the username or password are wrong....pls help me [CODE] Imports System.Data.OleDb Public Class SignIn Dim ctr As Integer = 0 Dim crr As Integer = 0 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ctr += 1 …

Member Avatar
Member Avatar
+0 forum 3

Hi, I am learning about the search capability in an array. I wrote a code that stores three names (first & last) and I want to: - Make the user select a number (from 1-3) by using a (combobox) - If the user select the proper number then a message will appear that the name is there. - If not then an error message will appear. I did all I could by creating this but my main problem is in the (ButtonFind). I went through lots of tutorials and this is what I came up with and I hope that …

Member Avatar
Member Avatar
+0 forum 3

Hi, I am totally lost and I went through a lot of sites about searching within an array, but I could not find any clues. I created the following array : Private LetterArray() As String = {"A", "B", "C"} and I don't know how to get the target letter from a "Textbox" and search "SearchButton" for it ? I have to do the following: - Get the TargetLetter from the textbox - Set a Boolean for Found to False (which I did) - Use for loop For Each Letter in the Array (LetterArray) - If the Word = the Target …

Member Avatar
Member Avatar
+0 forum 4

Hi, I am having a problem with the if statement that I created in my code. The condition should be: - Select Both Comboboxes (1&2) to print out a text in TextBox1 - If only One Combobox or No Combobox was selected, an error message appears and Nothing is printed in TextBox1. The code I wrote did not function as I wanted. It prints out a text after I select Combobox1 which isn't the way it should be. Please advise and thanks in advance. [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If ComboBox1.SelectedIndex = …

Member Avatar
Member Avatar
+0 forum 3

hi i am new to vb.net i need to know how to display a database data on listbox

Member Avatar
Member Avatar
+0 forum 1

Hi guys! Any one have an idea of how to create a sub category in vb.net? well I'm thinking of building a sales and inventory system of computer parts and peripherals and here's the logic. I'll be assigning each of them category like for example: Componenets[INDENT]Peripherals[/INDENT][INDENT]Networking[/INDENT] - Processor[INDENT]- Chasis[/INDENT][INDENT] - Router[/INDENT] - Memory [INDENT]- keyboards[/INDENT][INDENT] - Bridge[/INDENT] - Storage[INDENT]- Speakers[/INDENT][INDENT] -Hub[/INDENT] - Optical Drive[INDENT]- Flash Drives[/INDENT][INDENT] - Switch[/INDENT] - Graphics Card There you go. and the main categories are: Componenets, Peripherals, Networking and the Subcategories are with the -(dash) on their names if you have an idea also on the …

Member Avatar
Member Avatar
+0 forum 2

The End.