Click here to Skip to main content
15,887,027 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How do i Multiply Bytes w/o overflow (Like char in c++) ? Pin
KarstenK3-Aug-09 0:39
mveKarstenK3-Aug-09 0:39 
QuestionWhich is the best and sure way to shutdown systems Pin
Amer Rehman2-Aug-09 20:55
Amer Rehman2-Aug-09 20:55 
AnswerRe: Which is the best and sure way to shutdown systems Pin
Johan Hakkesteegt3-Aug-09 1:41
Johan Hakkesteegt3-Aug-09 1:41 
AnswerRe: Which is the best and sure way to shutdown systems Pin
Dave Kreskowiak3-Aug-09 2:03
mveDave Kreskowiak3-Aug-09 2:03 
Questionhaving problems (Public Shared Sub ShowTcpStatistics) Statement cannot within method body. End of method assumed// which is affecting my txtbox.Text Pin
that_dude_tj2-Aug-09 10:59
that_dude_tj2-Aug-09 10:59 
AnswerRe: having problems (Public Shared Sub ShowTcpStatistics) Statement cannot within method body. End of method assumed// which is affecting my txtbox.Text Pin
Christian Graus2-Aug-09 11:45
protectorChristian Graus2-Aug-09 11:45 
AnswerRe: having problems (Public Shared Sub ShowTcpStatistics) Statement cannot within method body. End of method assumed// which is affecting my txtbox.Text Pin
Dave Kreskowiak2-Aug-09 11:46
mveDave Kreskowiak2-Aug-09 11:46 
Generaltxtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
that_dude_tj2-Aug-09 12:32
that_dude_tj2-Aug-09 12:32 
Protected Sub Button4_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button4.Click
ShowTcpStatistics(txtB.Text)
End Sub
Public Shared Sub ShowTcpStatistics(ByVal version As NetworkInterfaceComponent)
Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
Dim tcpstat As TcpStatistics = Nothing
txtbox.Text = ""
For Each tcp As TcpStatistics In tcpstat
txtbox = tcp.ToString()

Next
Select Case version
Case (NetworkInterfaceComponent.IPv4)
tcpstat = properties.GetTcpIPv4Statistics()
txtbox.Text("TCP/IPv4 Statistics:")
Exit Select
Case (NetworkInterfaceComponent.IPv6)
tcpstat = properties.GetTcpIPv6Statistics()
txtbox.Text("TCP/IPv6 Statistics:")
Exit Select
Case Else
Throw (New ArgumentException("version"))
' break;
End Select
txtbox.Text(" Minimum Transmission Timeout............. : {0}", tcpstat.MinimumTransmissionTimeout)
txtbox.Text(" Maximum Transmission Timeout............. : {0}", tcpstat.MaximumTransmissionTimeout)

txtbox.Text(" Connection Data:")
txtbox.Text(" Current ............................ : {0}", tcpstat.CurrentConnections)
txtbox.Text(" Cumulative .......................... : {0}", tcpstat.CumulativeConnections)
txtbox.Text(" Initiated ........................... : {0}", tcpstat.ConnectionsInitiated)
txtbox.Text(" Accepted ............................ : {0}", tcpstat.ConnectionsAccepted)
txtbox.Text(" Failed Attempts ..................... : {0}", tcpstat.FailedConnectionAttempts)
txtbox.Text(" Reset ............................... : {0}", tcpstat.ResetConnections)

txtbox.Text("")
txtbox.Text(" Segment Data:")
txtbox.Text(" Received ........................... : {0}", tcpstat.SegmentsReceived)
txtbox.Text(" Sent ................................ : {0}", tcpstat.SegmentsSent)
txtbox.Text(" Retransmitted ....................... : {0}", tcpstat.SegmentsResent)

txtbox.Text("")
End Sub
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
Christian Graus2-Aug-09 13:58
protectorChristian Graus2-Aug-09 13:58 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
nlarson112-Aug-09 16:26
nlarson112-Aug-09 16:26 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
Christian Graus2-Aug-09 16:42
protectorChristian Graus2-Aug-09 16:42 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
nlarson112-Aug-09 17:13
nlarson112-Aug-09 17:13 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
0x3c03-Aug-09 0:57
0x3c03-Aug-09 0:57 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
that_dude_tj2-Aug-09 17:11
that_dude_tj2-Aug-09 17:11 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
Dave Kreskowiak2-Aug-09 16:56
mveDave Kreskowiak2-Aug-09 16:56 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
that_dude_tj2-Aug-09 17:01
that_dude_tj2-Aug-09 17:01 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
Christian Graus2-Aug-09 17:07
protectorChristian Graus2-Aug-09 17:07 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
that_dude_tj2-Aug-09 17:12
that_dude_tj2-Aug-09 17:12 
GeneralRe: txtbox.Text ="" Cannot refer to an instance member of a class from within a shared method or shared member initializerxt without an explicit instance of the class. Pin
Dave Kreskowiak3-Aug-09 2:01
mveDave Kreskowiak3-Aug-09 2:01 
Questionstring Pin
john56322-Aug-09 8:46
john56322-Aug-09 8:46 
AnswerRe: string Pin
Henry Minute2-Aug-09 9:13
Henry Minute2-Aug-09 9:13 
AnswerRe: string Pin
Christian Graus2-Aug-09 11:46
protectorChristian Graus2-Aug-09 11:46 
GeneralRe: string Pin
Luc Pattyn2-Aug-09 12:03
sitebuilderLuc Pattyn2-Aug-09 12:03 
GeneralRe: string Pin
nlarson112-Aug-09 13:38
nlarson112-Aug-09 13:38 
GeneralRe: string Pin
Christian Graus2-Aug-09 13:55
protectorChristian Graus2-Aug-09 13:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.