lstFTotal.Text = lstFDisplay.Items.Count
I get no errors but no output either.




Posted 04 August 2012 - 06:36 AM
lstFTotal.Text = lstFDisplay.Items.Count
Posted 04 August 2012 - 08:41 AM
if (dataset != null)
{
if (datase.Tables != null)
{
if (!string.IsNullOrWhiteSpace(tableName)
{
if (dataset.Tables[tableName].Columns != null)
Quote
Quote
StartAllPanels()
{
foreach(CustomPanel cp in myPanelsCollection)
{
cp.Start(); // Tell the panel to start
cp.WarningMessage += WarningHandlerMethod; // Subscribe to warning event
cp.LogThis += LogMessageHandlerMethod; // Subscribe to logging event
}
}
Quote
Quote
Quote
Posted 05 August 2012 - 07:05 AM
lstFTotal.Text = lstFDisplay.Items.Countbut I am not sure why.
Posted 05 August 2012 - 07:33 AM
This post has been edited by tlhIn`toq: 05 August 2012 - 07:34 AM
Posted 05 August 2012 - 07:40 AM
Imports System.IO
Public Class Form1
Dim firstname(20), lastname(20), applicationdate(40), address(40), gender(40), M, F As String
Dim totalM, totalF, grandtotal, loops As Single
Dim itemcount As Integer
Private Sub btnRead_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRead.Click
dlgImport.ShowDialog()
Dim waiting As StreamReader = File.OpenText(dlgImport.fileName)
Do While waiting.Peek <> -1
firstname(itemcount) = waiting.ReadLine()
lastname(itemcount) = waiting.ReadLine()
gender(itemcount) = waiting.ReadLine()
applicationdate(itemcount) = waiting.ReadLine()
address(itemcount) = waiting.ReadLine()
If gender(itemcount) = "M" Then
lstMDisplay.Items.Add(firstname(itemcount))
lstMDisplay.Items.Add(lastname(itemcount))
lstMDisplay.Items.Add(gender(itemcount))
lstMDisplay.Items.Add(applicationdate(itemcount))
lstMDisplay.Items.Add(address(itemcount))
itemcount = itemcount + 1
ElseIf gender(itemcount) = "F" Then
lstFDisplay.Items.Add(firstname(itemcount))
lstFDisplay.Items.Add(lastname(itemcount))
lstFDisplay.Items.Add(gender(itemcount))
lstFDisplay.Items.Add(applicationdate(itemcount))
lstFDisplay.Items.Add(address(itemcount))
itemcount = itemcount + 1
End If
Loop
waiting.Close()
End Sub
Private Sub lstFTotal_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lstFTotal.SelectedIndexChanged
lstFTotal.Text = lstFDisplay.Items.Count
End Sub
Private Sub btnGTotal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGTotal.Click
lstGTotal.Text = Val(lstMTotal.Text) + Val(lstFTotal.Text)
End Sub
Private Sub lstGTotal_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lstGTotal.SelectedIndexChanged
lstGTotal.Text = Val(lstMTotal.Text) + Val(lstFTotal.Text)
End Sub
Private Sub btnMFTotals_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMFTotals.Click
Dim count As Integer = lstFDisplay.Items.Count()
End Sub
End Class
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
