Recent content by gayamantra

  1. G

    Getting next clicked value from combo box

    A bit long pls bear with it. Dim memName AsString 'Code to bind data to the text boxes PublicSub BindData(ByVal mname AsString) conn = New SqlConnection() selectcmd = New SqlCommand() selectda = New SqlDataAdapter() conn.ConnectionString = strng 'Selecting member id selectcmd.CommandText =...
  2. G

    Getting next clicked value from combo box

    Hi, I understand that I can use the following code to get the value of the chosen item from a combo box (windows application) i.e Dim memName as String = cmbMembers.Text But if the user chooses another value after his first choice the above code doesn't work. I have 2 text boxes which...
  3. G

    Trouble connecting to northwind

    Sorry just found out the problem. I didn't use northwind.mdf. Instead I just copied it off the filename. Thanks anyway :)
  4. G

    Trouble connecting to northwind

    Hi, I am new to VB and I am trying to create a simple program in VB.NET in VS.NET 2005. I am just trying to retrieve some details from the Products Table in the Northwind database. But i keep hitting the following error "An attempt to attach an auto-named database for file C:\Program...
Top Bottom