2,383 Posted Topics
Re: alternative, you use WindowsMediaPlayer to play media file. | |
Re: See this tutorial : - [URL="http://www.windowsdevcenter.com/pub/a/windows/2005/04/26/create_dll.html"]http://www.windowsdevcenter.com/pub/a/windows/2005/04/26/create_dll.html[/URL] - [URL="http://www.vb-helper.com/howto_make_standard_dll.html"]http://www.vb-helper.com/howto_make_standard_dll.html[/URL] - [URL="http://www.boondog.com/tutorials/dlltutor/dlltutor.htm"]http://www.boondog.com/tutorials/dlltutor/dlltutor.htm[/URL] Just do some googling. | |
Re: See this example : [code=vb]Private Sub checkenq() Dim cmdTest As New OleDb.OleDbCommand Dim daTest As New OleDb.OleDbDataAdapter Dim dsTest As New DataSet Dim dtTest As New DataTable conn = GetConnect() Try conn.Open() cmdTest = conn.CreateCommand cmdTest.CommandText = "SELECT * FROM Customer where IDCustomer = '" & Trim(txtId.Text) & "'" daTest.SelectCommand … | |
Re: >> Does ne one knw how to create an uneditable text file ? - Set text file attribute as ReadOnly. >> check box in datagrid.... - I don't know about checkbox on datagrid, but you can use listview, there are check box option on listview properties. | |
Re: add this function : [code=vb] Function FileExists(FileName As String) As Boolean On Error GoTo ErrorHandler ' get the attributes and ensure that it isn't a directory FileExists = (GetAttr(FileName) And vbDirectory) = 0 ErrorHandler: ' if an error occurs, this function returns False End Function [/code] [code] Private Sub btnAccept_Click() … | |
Re: >> who can give me the code for hangman ! [URL="http://www.google.co.id/"]Google will give it to you![/URL] | |
Re: ... Pork Tenderloin with Pepper Jelly and Gorgonzola for main dishes and Fresh French Baguettes with Butter Roses for side dishes and then for the dessert she ordered.... | |
Re: what u mean in Vb.net?? I guess u means in Visual Studio.Net... If yes then Vb.net and C# is the most popular. | |
Re: There are not difficult to start program with vb.net. If u know vb 6 then its will so easily cause there are not much different about vb.net and vb6. | |
Re: [URL="http://planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=866&lngWId=10"]See this[/URL] | |
Re: Refresh Datagrid. | |
Re: Try This : [code=vb.net] Public Sub GenerateNotaId() Dim myReader As SqlDataReader conn = GetConnect() conn.Open() Dim temp As String Try Dim sql As String = "SELECT MAX(IDNOTA) AS 'KODE' FROM Nota " Dim comm As SqlCommand = New SqlCommand(sql, conn) myReader = comm.ExecuteReader If myReader.HasRows Then While myReader.Read() temp = … | |
Re: [QUOTE=dillen;682395]Hi, I would like to start a sub in 5 seconds from now. The sub will need to perform only once. Should I use the timer event or there better way ? Thank Dillen[/QUOTE] If u didn't want to use timer, u can use sleep... [B]System.Threading.Thread.Sleep(milliseconds)[/B] Ex : System.Threading.Thread.Sleep(5000) -> … | |
Re: [code] 'In Module 'Declare outside of class Imports System.Data Imports System.Data.SqlClient Module Koneksi Public conn As SqlConnection Public Function GetConnect() conn = New SqlConnection("server = MyServerName;database = MyDatabaseName;Trusted_Connection = yes") Return conn End Function End Module [/code] Ex : load data in datagrid [code=vb.net] 'In Form 'Declare outside of class … | |
Re: This an example : [code=vb.net] Dim conn As SqlConnection Dim cmdCustomer As New SqlCommand Dim daCustomer As New SqlDataAdapter Dim dsCustomer As New DataSet Dim dtCustomer As New DataTable conn = GetConnect() conn.Open() Try dsCustomer.Clear() dtCustomer.Clear() cmdCustomer = conn.CreateCommand cmdCustomer.CommandText = "SELECT * FROM Customer where IDCustomer = '" & … | |
Re: [code] On Button Click Event : Dim a As New Form2 a.Show [/code] | |
![]() | |
Re: Hi...Welcome to Daniweb Friend :) >> Looking forward to learn You just on the right place >> share my learning whenever possible. Many members need your help ;) | |
![]() | |
Re: just set WindowState on form properties as minimize | |
Re: Show us your effort, Post your code. And don't hijack other thread please... | |
Re: [URL="http://www.dotnetspider.com/resources/4859-Check-if-port-open-or-closed.aspx"]See this[/URL] | |
Re: 1. you can hide close, minimize and maximize in form properties. 2. Just Call About form in menu strip click event. 3. Set splash form as Startup object. [B]Project -> ProjectName Properties[/B] [B]Properties Pages[/B] will appear. you can select splash screen as Startup Object ![]() | |
| |
Re: Try this : [code=vb] Private Sub ProcessView() Dim Prc As Process() Dim x As Integer Prc = Process.GetProcesses For x = 0 To UBound(Prc) ListBox1.Items.Add(Prc.GetValue(x)) Next End Sub [/code] | |
Re: First, you need the following declarations: [CODE=vb.net] Private Const EM_GETLINECOUNT As Integer = &HBA Private Const EM_GETLINE As Integer = &HC4 Private Const EM_LINELENGTH As Integer = &HC1 Private Const EM_LINEINDEX As Integer = &HBB Private Declare Function SendMessageINT Lib "user32.dll" _ Alias "SendMessageA" (ByVal hWnd As IntPtr, _ ByVal … |
The End.