[visual studio 2005]

bonjour
à chaque fois que je compile ma solution j'obtient cette érreur
"Error 18 Unable to copy file "obj\Debug\UserControls.dll" to "bin\Debug\UserControls.dll". The process cannot access the file 'bin\Debug\UserControls.dll' because it is being used by another process. UserControls
"

Usercontrols est un projet de ma solution

2 réponses

  1. j ai un mld de bibioteque ,
    et j ai creer la base de donnee sous sql server ,
    mai j arrive pa a rialiser les form en vs 2005
    aidez moi par des idees et merci d avance
    0
    1. Imports System.Data
      Imports System.Data.SqlClient

      Dim cn As SqlConnection
      cn = New SqlConnection ()

      Dim a As String
      a = "Data Source = localhost ; Integrated Security = SSPI ; Initial Catalog = Northwind "

      cn.ConnectionString = a

      Dim cmd As SqlCommand
      cmd = New SqlCommand()
      cmd.Connection = cn
      cmd.CommandText = "SELECT * FROM Fournisseur"

      cn.Open()

      Dim adapt As SqlDataAdapter
      adapt = New SqlDataAdapter(cmd)

      Dim st As New DataSet
      st = New SqlDataSet
      adapt.Fill(st,"Fournisseur")

      Dim table As DataTable
      table = st.Tables("Fournisseur")

      Dim indice As Integer
      indice = 0

      Dim ligne As DataRow
      ligne = table.Rows(0)

      TextBox1.Text = ligne(0).Tostring
      TextBox2.Text = ligne(1).Tostring
      TextBox3.Text = ligne(3).Tostring
      TextBox4.Text = ligne(5).Tostring
      TextBox5.Text = ligne(6).Tostring
      0