- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
18 Posted Topics
Re: Private Sub Form16_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim strAccessConn as string = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=database.MDB" Dim sqlquery As String = "SELECT SUM(price) AS totalprice FROM expenses" Dim myDataSet As DataSet = new DataSet() Dim myAccessConn As OleDbConnection = Nothing Try myAccessConn = new OleDbConnection(strAccessConn) Dim sqlcommand As New … | |
Re: I guess Button8.Text doesnt have a condition, somewhat like.. Button8.Text<> "" | |
Re: Dim Date1 As DateTime = DateTime.Now() Debug.Writeline(Date1.ToString("d")) | |
Re: hmmm how about this??.. Dim n1 as Double = 1000000 Dim n2 as Double = 2000 Dim nTot as Double = n1 + n2 lblTotal.Text = nTot.ToString("#,#", CultureInfo.InvariantCulture) | |
Re: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim t1 As TextBox = New TextBox Dim t2 As TextBox = New TextBox Dim t3 As TextBox = New TextBox Dim t4 As TextBox = New TextBox t1.Text = "1,230.00" t2.Text = "2,500.00" t3.Text = "1,245.00" Dim … | |
Re: If not String.IsNullOrEmpty(TxtEmpID.Text) Then cmd.Parameters.AddWithValue("@Empid", Integer.Parse(Trim(TxtEmpID.Text))) End If | |
Re: did you already inserted an item to other coulumns? I guess List.Items(currentTimer - 1).SubItems.Add("<") were added to column1.. only a guess :) | |
Re: You can put an error handling exception in your code, give it try.. :) Try `Inline Code Here` Catch ex As OleDbException `connection fail message here End Try | |
Re: try this>> static void Main(string[] args) { List<string> lstPatterns = new List<string> { "Book*", "Book Two*", "Book Two states", "*Two*", "Shedney sheldon", "sydney Book", "Shopoholic*", "Shopoholic part II", "Shopoholic part III" }; // Calls to GetMatchString() GetMatchString("Book", lstPatterns); // Out put should be "Book" - Output is Book GetMatchString("Book Two", … | |
Re: i guess you should add a delegate with a threadsafe in it.. only a guess ;) delegate void SetTextBox_Delegate(TextBox tb); protected void SetTextBox_ThreadSafe(TextBox tb) { if (tb.InvokeRequired) { SetTextBox_Delegate MyDelegate = new SetTextBox_Delegate(SetTextBox_ThreadSafe); this.Invoke(MyDelegate, new object[] {tb}); } else { //Inline Code Here } } private void backgroundWorker_DoWork(object sender, DoWorkEventArgs … | |
Re: If String.IsNullOrEmpty(TextBox1.Text.Trim) Then value = 0 End If | |
Re: try.. Private Sub dgvExamScores_CellValueChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgvExamScores.CellValueChanged For i As Int32 = 0 To Me.dgvExamScores.Rows.Count - 1 If Me.dgvExamScores.Rows(i).Cells(5).Value <> Nothing Then Me.dgvExamScores.Rows(i).Cells(4).Value = Me.txtCreditValue.Text Else ' IsDBNull(Me.dgvExamScores.Rows(i).Cells(4).Value) End If Next End Sub | |
Re: Dim tsMenu As New ToolStrip tsMenu.Name = "tsMenu" tsMenu.Dock = DockStyle.Top tsMenu.Visible = True Dim tsComboBox As New ToolStripComboBox tsComboBox.Name = "tsComboBox" tsComboBox.Visible = True tsComboBox.Items.Add("Item 1") tsComboBox.Items.Add("Item 2") tsMenu.Items.Add(tsComboBox) Me.Controls.Add(tsMenu) 'access the combobox For Each c In tsMenu.Items If TypeName(c) = "ToolStripComboBox" Then Dim m As ToolStripComboBox = DirectCast(c, … | |
Re: Dim sr As IO.StreamReader = IO.File.OpenText("C:\Users\KeraBaby\Desktop\Payroll\Payroll Project Form\Payroll Project Form\bin\Debug\Employees.txt") Dim checker As String() = sr.ReadToEnd.Split(Environment.NewLine) Dim results = (From z In checker Let s = z.Trim() Where s IsNot "" Select z.Trim()).ToArray If Array.Exists(results, Function(s) s.Equals(Me.txtUpdateID.Text.Trim)) Then Dim n = Array.FindIndex(checker, Function(d) d.Equals(Me.txtUpdateID.Text.Trim)) Me.txtUpdateFirstName.Text = results(n + 1).ToString() Me.txtUpdateLastName.Text … | |
Re: SELECT * FROM table where column='" & Request.QueryString("querystringfeild") &"' ORDER BY table_field" | |
Re: Dim minless As TimeSpan = TimeOutHours.Subtract(TimeInHours) TotalHWTextBox.Text = minless.Hours.ToString() | |
| |
Re: Dim sql As String ="select empno from tbl_empinfo" Dim cmd As OleDb.OleDbCommand = New OleDb.OleDbCommand(sql, conn) Dim a As OleDbDataAdapter = New OleDbDataAdapter(cmd) Dim ds As New DataSet conn.Open() a.Fill(ds) conn.Close() For Each data_row In ds.Tables(0).Rows ComboBox2.Items.Add(data_row.ToString()) Next |
The End.