2,383 Posted Topics
Re: [QUOTE=DangerDev;790791]use System.Diagnostics.Process.GetProcessesByName(processName); to get all the process with this name. After this use the process properties like, process.ModuleName etc. to get the required process, then kill the process by calling function process.kill().[/QUOTE] This section just for vb4/5/6. Don't make it become VB.Net Section... | |
Re: use condition on your select statment. | |
Re: on datagrid double click event, get data on selected then show it on main form. | |
Re: This following code just allowed you to entered numbers only (No alphabetics or any special characters) : [code=vb.net]Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If (Microsoft.VisualBasic.Asc(e.KeyChar) < 48) _ Or (Microsoft.VisualBasic.Asc(e.KeyChar) > 57) Then e.Handled = True End If If (Microsoft.VisualBasic.Asc(e.KeyChar) = 8) Then e.Handled … | |
Re: [QUOTE=sunipun786;787622]ADODC DATACOMBO PROBLEM..... I have some text box, an ADODC data control and a datacombo object in my form.i filled up data control property correctly.also set text boxes property.Now for datacombo i have set datasouce,listfield,bound column propety.[COLOR="Red"]But text in the textbox don't change in accordance with changing item in datacombo[/COLOR].But … | |
Re: see this sample program, but its not originally from me. [ATTACH]5156[/ATTACH] Ok. Hope this helps | |
Re: are u sure saved it into txt file?i mean when your program is running.. | |
Re: [URL="http://www.devasp.net/net/articles/display/155.html"]Read this article[/URL] | |
| |
Re: write this on the top of codes [code]Imports System.Data.Odbc[/code] | |
Re: you should change the password friend :) and use the facility in this forum to attach your files as shouvik said. many people will helps you here. | |
Re: using ascii checking on your button event. | |
Re: check the references of your project. | |
Re: what errors came up? try to use Shared variable to accomodate your address data. | |
Re: Just add current form (.cs file) into your project then you can use function on that form. | |
Re: try to get process of windows. kill it by process name. its the easiest way. | |
Re: you mean Textbox, label, Button for basic controls???? please more details...not clear enough.. | |
Re: same as jbennet. | |
Re: [Code=C#]private void comboBox3_SelectedIndexChanged(object sender, System.EventArgs e) { if (comboBox2.SelectedItem = "Days") { comboBox3.Items.Add("Mon"); comboBox3.Items.Add("Tue"); ... } else if (comboBox2.SelectedItem = "Months") { comboBox3.Items.Add("Jan"); comboBox3.Items.Add("Feb"); ... } }[/code] | |
Re: r u sure doing the right way when you make the report form at first time (using wizard). | |
Re: just copying your .exe file into startup folder. you can use special folder to do this. | |
Re: use this following code : this code needed 1 datagrid to show data. [code=vb.net] in Module : Imports System.Data Imports System.Data.SqlClient Module Koneksi Public conn As SqlConnection Public Function GetConnect() conn = New SqlConnection("server = YourServerName;database = YourDatabaseName;Trusted_Connection = yes") Return conn End Function End Module[/code] procedure to show data … | |
Re: 1. Add new item on database 2. Load combobox item after add item. just show us your effort :) | |
Re: open & close connection for every query. | |
Re: [URL="http://www.daniweb.com/forums/showthread.php?t=76524&highlight=create+setup"]See This Thread[/URL] [URL="http://msdn.microsoft.com/en-us/library/tw8kdk75(VS.71).aspx"]visit this link[/URL] | |
Re: use count to know how much rows in column. [code]select count(*) from tableName[/code] | |
![]() | |
Re: [code=vb]Private Sub Timer1_Timer() 'Put timer on form and set interval to 1000 (In the properties window) Label1.Caption = Format(Now, "hh:mm:ss") End Sub[/code] - What tabs? | |
Re: using print dialog and like selvaganapathy said what u want to print... | |
Re: see this program : [ATTACH]5395[/ATTACH] Hope this help. | |
| |
Re: you can use datediff() function to count days. | |
Re: Hi ajay...Welcome to Daniweb friend. there are many members will need your help You can contribute on [URL="http://www.daniweb.com/forums/forum9.html"]java section[/URL] | |
Re: visit this link : 1. [URL="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2678519&SiteID=1"]http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2678519&SiteID=1[/URL] 2. [URL="http://www.codeproject.com/KB/vb/webcamcapture.aspx"]This Link too[/URL] | |
Re: so...what do you want? If u want to terminated application just add [B]End[/B] statement. [code]Private Sub Timer1_Timer() If Label2.Caption = 0 Then Timer1.Enabled = False MsgBox ("60 secs is up, looks like your out of luck") [COLOR="Red"]End[/COLOR] Else Label2.Caption = Label2.Caption - 1 End If End Sub[/code] | |
Re: check the reference... | |
Re: post your thread on Computer [URL="http://www.daniweb.com/forums/forum14.html"]Science and Software Design[/URL] section | |
Re: [code] Private Sub ReadData() Dim i As Integer con.ConnectionString = ("Provider = Microsoft.JET.OLEDB.4.0;Data Source= D:\Only Me\Authors.mdb") Try cmdOle = con.CreateCommand cmdOle.CommandText = "SELECT * FROM Authors " da.SelectCommand = cmdOle da.Fill(dsOle, "Authors") dtOle = dsOle.Tables("Authors") For i = 0 To dtOle.Rows.Count - 1 cmbAuthor.Items.Add(dtOle.Rows(i).Item(1)) Next Catch ex As Exception MsgBox("Error: … | |
| |
Re: 1. [URL="http://www.daniweb.com/forums/thread116910.html"]See this thread for module[/URL] 2. [URL="http://www.daniweb.com/forums/showthread.php?t=27608"]See this thread for class module[/URL] this a some links about class module - [URL="http://www.vbexplorer.com/VBExplorer/ooptutor.asp"]http://www.vbexplorer.com/VBExplorer/ooptutor.asp[/URL] - [URL="http://www.vbexplorer.com/VBExplorer/wrox/sample172X.asp"]http://www.vbexplorer.com/VBExplorer/wrox/sample172X.asp[/URL] Different between class and module : [URL="http://en.allexperts.com/q/Visual-Basic-1048/class-module.htm"]http://en.allexperts.com/q/Visual-Basic-1048/class-module.htm[/URL] | |
Re: the red line is how to use datetimepicker : [code]cmdPendidikan1.CommandText = "INSERT INTO Pendidikan(IdPendidikan, Nis, Lulusan, LamaBelajar,SekolahAsal,Alasan,Kelas,Tgl) VALUES('" & Trim(IdPendidikan.Text) & "','" & Trim(cmbNis.SelectedItem) & "','" & Trim(txtLulusanDari.Text) & "','" & Trim(txtLamaBelajar.Text) & "','" & Trim(txtSekAsal.Text) & "','" & Trim(txtAlasan.Text) & "','" & Trim(cmbKelas.SelectedItem) & "','" & [COLOR="Red"]dtTglDiterima.Value.ToShortDateString[/COLOR] & "')"[/code] | |
Re: To show date in long mode : [icode]DateTimePicker1.Value.ToLongDateString()[/icode] Ex : Saturday, September 13, 2008 To show date in Short mode : [icode]DateTimePicker1.Value.ToShortDateString()[/icode] Ex : 9/13/2008 | |
The End.