Click here to Skip to main content
15,910,358 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralDataGridView Pin
mtone10-Aug-04 15:34
mtone10-Aug-04 15:34 
QuestionIs it possible to do this? Pin
Lisana10-Aug-04 14:55
Lisana10-Aug-04 14:55 
AnswerRe: Is it possible to do this? Pin
Nick Seng10-Aug-04 15:24
Nick Seng10-Aug-04 15:24 
GeneralRe: Is it possible to do this? Pin
Lisana10-Aug-04 15:52
Lisana10-Aug-04 15:52 
GeneralRe: Is it possible to do this? Pin
Nick Seng10-Aug-04 16:09
Nick Seng10-Aug-04 16:09 
GeneralRe: Is it possible to do this? Pin
Lisana11-Aug-04 3:24
Lisana11-Aug-04 3:24 
GeneralTCP / Telnet client Pin
sybux200010-Aug-04 10:28
sybux200010-Aug-04 10:28 
GeneralRe: TCP / Telnet client Pin
Dave Kreskowiak11-Aug-04 4:46
mveDave Kreskowiak11-Aug-04 4:46 
Your Read code is is blocking call. If there is no data to read, the .Read method will block further execution until data is available. You should check to see if there is data to read by checking the streams DataAvailable property. The following example should give you an idea: (Also, the .Read method will return an Integer, not an Int64...)
Dim myReadBuffer(1024) As Byte
Dim myCompleteMessage As String = ""
Dim numberOfBytesRead As Integer = 0

' You could add code to this loop to wait a certain number of seconds before timing out.
Do While Not myNetworkStream.DataAvailable
    Application.DoEvents()
Loop

' Incoming message may be larger than the buffer size.
Do
    numberOfBytesRead = myNetworkStream.Read(myReadBuffer, 0, myReadBuffer.Length)
    myCompleteMessage = [String].Concat(myCompleteMessage, Encoding.ASCII.GetString(myReadBuffer, 0, numberOfBytesRead))
Loop While myNetworkStream.DataAvailable



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: TCP / Telnet client Pin
sybux200011-Aug-04 8:59
sybux200011-Aug-04 8:59 
Generalrow state is always set to modified Pin
kowplunk10-Aug-04 10:24
kowplunk10-Aug-04 10:24 
GeneralRe: row state is always set to modified Pin
Member 53081011-Aug-04 3:10
Member 53081011-Aug-04 3:10 
GeneralRe: row state is always set to modified Pin
kowplunk11-Aug-04 6:22
kowplunk11-Aug-04 6:22 
GeneralRe: row state is always set to modified Pin
kowplunk11-Aug-04 7:38
kowplunk11-Aug-04 7:38 
Generalusing the mouse to resize controls on a form during runtime Pin
Reddragoneye88810-Aug-04 5:57
Reddragoneye88810-Aug-04 5:57 
Generalusing data adaptors Pin
kowplunk10-Aug-04 5:53
kowplunk10-Aug-04 5:53 
GeneralRe: using data adaptors Pin
kowplunk10-Aug-04 5:58
kowplunk10-Aug-04 5:58 
GeneralRe: using data adaptors Pin
kowplunk10-Aug-04 6:21
kowplunk10-Aug-04 6:21 
General.Net Remoting - I am lost ! ! ! Pin
tommy_tanaka10-Aug-04 5:29
tommy_tanaka10-Aug-04 5:29 
GeneralRe: .Net Remoting - I am lost ! ! ! Pin
Xiangyang Liu 刘向阳10-Aug-04 6:11
Xiangyang Liu 刘向阳10-Aug-04 6:11 
GeneralRe: .Net Remoting - I am lost ! ! ! Pin
tommy_tanaka11-Aug-04 1:48
tommy_tanaka11-Aug-04 1:48 
GeneralAn application within an application... Pin
Brad Fackrell10-Aug-04 4:58
Brad Fackrell10-Aug-04 4:58 
GeneralRe: An application within an application... Pin
Dave Kreskowiak10-Aug-04 6:32
mveDave Kreskowiak10-Aug-04 6:32 
GeneralRe: An application within an application... Pin
Brad Fackrell10-Aug-04 7:20
Brad Fackrell10-Aug-04 7:20 
GeneralRe: An application within an application... Pin
Dave Kreskowiak10-Aug-04 8:18
mveDave Kreskowiak10-Aug-04 8:18 
GeneralRe: An application within an application... Pin
Brad Fackrell10-Aug-04 8:38
Brad Fackrell10-Aug-04 8:38 

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.