Here the Username and Password entered by the user is passed to the stored procedure and its status is captured and if the value is not -1 (Username or password incorrect) or -2 (Account not activated) then the user is redirected to the Home page using Hi, This is Mudassar Khan. Net Question Answer site, specially started to allow visitors of this site ask their doubts and queries. Just click the Ask Now button and ask your question now.

Now you can ask questions directly to me on my new site ASPForums.

For example: the combobox has a list of dog breeds such as (pug, boxer, pitbull). So how do I not allow the user to enter "pug" when they type that into the combobox? You also might look into the auto complete list with the mode set to Append. That way if they type "pug" and pug is in the list, they will get as far as "pu" and the g will already be there. Private Sub Combo Box1_Validating(sender As Object, e As System. To Lower) Then Msg Box("Duplicate value: there's already '" & item & "' in the list. Microsoft has not direct from the box a newer Data Grid that can show relational datatables in one Grid. After draging a Datagrid on the form , pasting in this code below and changing in the code below the Server name for yours. For that the Windows Forms Data Grid can still be used in Framework 4.