Click here to Skip to main content
15,503,143 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: What Objects are Included Pin
Dave Kreskowiak23-Feb-21 6:35
mveDave Kreskowiak23-Feb-21 6:35 
Questioni need instruction for creating simple game in .Net Core C# Pin
Member 150636903-Feb-21 5:54
Member 150636903-Feb-21 5:54 
AnswerRe: i need instruction for creating simple game in .Net Core C# Pin
Dave Kreskowiak3-Feb-21 6:45
mveDave Kreskowiak3-Feb-21 6:45 
AnswerRe: i need instruction for creating simple game in .Net Core C# Pin
Gerry Schmitz3-Feb-21 7:28
mveGerry Schmitz3-Feb-21 7:28 
AnswerRe: i need instruction for creating simple game in .Net Core C# Pin
Richard MacCutchan3-Feb-21 7:45
mveRichard MacCutchan3-Feb-21 7:45 
QuestionAnyone familiar with Ozgur Ozcitak ImageListView control ? Pin
Member 113774652-Feb-21 20:43
Member 113774652-Feb-21 20:43 
AnswerRe: Anyone familiar with Ozgur Ozcitak ImageListView control ? Pin
Gerry Schmitz3-Feb-21 7:32
mveGerry Schmitz3-Feb-21 7:32 
QuestionTCPIP SOCKET DATA RECEIVE FROM INSTRUMENT Pin
cws_ap1-Feb-21 1:19
cws_ap1-Feb-21 1:19 
Dear All
I am sanding string to my instrument through tcpip socket protocol. String received at instrument correctly. I received string back from instrument also. but when i convert string in to hex value i get multiple Zero after my ETX (03)hex value.. can some one help me. code for your ref. is

Dim PORT As Int32 = Txtport.Text
Dim client As New TcpClient(Txtip.Text, PORT)
Dim stream As NetworkStream = client.GetStream()
' Translate the passed message into ASCII and store it as a Byte array.
Dim data As [Byte]() = System.Text.Encoding.ASCII.GetBytes(sndstr)
stream.Write(data, 0, data.Length)
' Txtrt.Text = sndstr


' data rec.

Timer1.Enabled = True
Dim Bytes As Integer = -1

Dim Buffer(1024) As Byte
Dim Message As String = ""
Dim ClientStream As System.Net.Sockets.NetworkStream = client.GetStream

Do While Bytes <> 0
Bytes = ClientStream.Read(Buffer, 0, Buffer.Length)

Message = System.Text.Encoding.ASCII.GetString(Buffer)
If Message.IndexOf("QE") <> -1 Then
' Found the end of the message...
Exit Do
End If
Loop

' Message = Message.Trim(Message.Trim(Chr(0)))
Txtrt.Text = Message


Dim ba() As Byte
Dim hexval As System.Text.StringBuilder = New System.Text.StringBuilder
ba = System.Text.ASCIIEncoding.ASCII.GetBytes(Message)
For i As Integer = 0 To ba.Length - 1
hexval.Append(ba(i).ToString("x2") & " ")
Next

RECEIVEDDATA.Text = (hexval.ToString())



I Rec. data 02 61 61 10 31 03 00 00 00 00 00 00 00 00 till the size of buffer

my end of msg. is 03 how to remove all 00 after value 03

modified 1-Feb-21 23:50pm.

Question.NET Core Web API hosting docker Pin
johncodeproject15-Jan-21 17:25
johncodeproject15-Jan-21 17:25 
QuestionApply formatting on multiple Text boxes within a Group box. Pin
Interplain11-Jan-21 1:25
Interplain11-Jan-21 1:25 
AnswerRe: Apply formatting on multiple Text boxes within a Group box. Pin
Pete O'Hanlon11-Jan-21 3:45
mvaPete O'Hanlon11-Jan-21 3:45 
GeneralRe: Apply formatting on multiple Text boxes within a Group box. Pin
Interplain11-Jan-21 4:00
Interplain11-Jan-21 4:00 
GeneralRe: Apply formatting on multiple Text boxes within a Group box. Pin
Gerry Schmitz11-Jan-21 6:05
mveGerry Schmitz11-Jan-21 6:05 
AnswerRe: Apply formatting on multiple Text boxes within a Group box. Pin
Richard Deeming11-Jan-21 23:14
mveRichard Deeming11-Jan-21 23:14 
GeneralRe: Apply formatting on multiple Text boxes within a Group box. Pin
Interplain12-Jan-21 1:56
Interplain12-Jan-21 1:56 
AnswerRe: Apply formatting on multiple Text boxes within a Group box. Pin
Ralf Meier12-Jan-21 3:40
mveRalf Meier12-Jan-21 3:40 
QuestionProblem with Calling builded exe from another form Pin
Member 149553323-Jan-21 1:38
Member 149553323-Jan-21 1:38 
AnswerRe: Problem with Calling builded exe from another form Pin
Victor Nijegorodov3-Jan-21 4:36
Victor Nijegorodov3-Jan-21 4:36 
GeneralRe: Problem with Calling builded exe from another form Pin
Member 149553326-Jan-21 10:38
Member 149553326-Jan-21 10:38 
GeneralRe: Problem with Calling builded exe from another form Pin
Victor Nijegorodov6-Jan-21 10:51
Victor Nijegorodov6-Jan-21 10:51 
GeneralRe: Problem with Calling builded exe from another form Pin
Richard MacCutchan6-Jan-21 23:52
mveRichard MacCutchan6-Jan-21 23:52 
QuestionHelp for a school Project Pin
Member 1502795822-Dec-20 5:48
Member 1502795822-Dec-20 5:48 
AnswerRe: Help for a school Project Pin
Ralf Meier27-Dec-20 0:13
mveRalf Meier27-Dec-20 0:13 
QuestionHow can I setup connectionstring to a webroot dir Pin
Nguyễn Tuấn Anh 9216-Dec-20 19:22
Nguyễn Tuấn Anh 9216-Dec-20 19:22 
QuestionSpecification Pattern for validations Pin
TimWallace25-Nov-20 21:23
TimWallace25-Nov-20 21:23 

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.