Login
...or Sign up
Home
Search
Search Code Snippets
Search People
Search
Code Snippets
People
16 Code Snippets found matching VB .NET
Dim sqlConn as new SqlConnection("Data Source={0};Initial Catalog={1}; UserID={2};Password={3}") Dim sqlda As New SqlDataAdapter Dim sqlcomm As New SqlClient.SqlCommand With sqlcomm .Connection = sqlConn .CommandText = "stored_Name" .CommandType = CommandType.StoredProcedure .Parameters.AddWithValue("@Param1", value1) .Parameters.AddWithValue("@Param2", value2) End With sqlda.SelectCommand = sqlcomm sqlConn.Open() Try sqlda.Fill(ds, TableName) Catch ex As SqlException Throw ex Finally sqlConn.Close() End Try
fill Dataset calling stored procedure
Uploaded on
6/20/2007 3:42:33 AM
Programming Language:
VB .NET
By:
Carlos
See more code snippets of
Carlos
.NET Stored procedure SqlDataAdapter
Private Sub txtHorasSemanales_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtHorasSemanales.KeyPress If e.KeyChar.ToString() = "." Then e.KeyChar = "," End If End Sub
Ejemplo para reemplazar un punto por una coma en un TextBox
Uploaded on
3/28/2008 6:28:57 AM
Programming Language:
vb.net
By:
vela
See more code snippets of
vela
coma
punto
reemplazar
Private Sub ListView1_DragEnter(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles ListView1.DragEnter If e.Data.GetDataPresent(DataFormats.FileDrop) Then e.Effect = DragDropEffects.Copy Else e.Effect = DragDropEffects.None End If End Sub
Manejador del evento DragEnter sobre un control de la clase ListView
Uploaded on
4/27/2008 4:06:11 PM
Programming Language:
vb.net
By:
vela
See more code snippets of
vela
Drag and drop
Private Sub ListView1_DragDrop(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles ListView1.DragDrop Dim ficheros() As String ficheros = e.Data.GetData(DataFormats.FileDrop) Dim i As Integer For i = 0 To ficheros.Length - 1 ListView1.Items.Add(ficheros(i)) Next End Sub
Manejador del evento DragDrop sobre un control de la clase ListView
Uploaded on
4/27/2008 4:10:01 PM
Programming Language:
vb.net
By:
vela
See more code snippets of
vela
Drag and drop
Public Function ejemploCase(num as Integer) as String Select Case num Case 1 Return "uno" Case 2 Return "dos" Case 3 Return "tres" Case 4 Return "cuatro" Case 5 Return "cinco" Case Else Return "error" End Select End Function
Select case en vb.net
Uploaded on
4/30/2008 2:53:39 PM
Programming Language:
vb.net
By:
vela
See more code snippets of
vela
select case
1
2
3
4
Help
Help by email
What is Naslu?
|
About Naslu
|
Contact
|
Terms of Use
|
Downloads
|
Webprogramacion.com
|
Blog
|
Top
Links
Select language:
Español
|
English
© 2009 naslu.com