Click here to Skip to main content
15,894,180 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Starting the process as user will not work on Win2012 Pin
Dave Kreskowiak23-Feb-16 4:06
mveDave Kreskowiak23-Feb-16 4:06 
GeneralRe: Starting the process as user will not work on Win2012 Pin
byka23-Feb-16 5:13
byka23-Feb-16 5:13 
GeneralRe: Starting the process as user will not work on Win2012 Pin
Dave Kreskowiak23-Feb-16 5:16
mveDave Kreskowiak23-Feb-16 5:16 
GeneralRe: Starting the process as user will not work on Win2012 Pin
byka23-Feb-16 7:14
byka23-Feb-16 7:14 
GeneralRe: Starting the process as user will not work on Win2012 Pin
Dave Kreskowiak23-Feb-16 8:14
mveDave Kreskowiak23-Feb-16 8:14 
GeneralRe: Starting the process as user will not work on Win2012 Pin
Eddy Vluggen23-Feb-16 8:35
professionalEddy Vluggen23-Feb-16 8:35 
GeneralRe: Starting the process as user will not work on Win2012 Pin
Dave Kreskowiak23-Feb-16 9:01
mveDave Kreskowiak23-Feb-16 9:01 
QuestionProblem with receiving UDP from AVR microcontroller Pin
Mototest22-Feb-16 7:35
Mototest22-Feb-16 7:35 
Hi I have one problem i visual basic 2008
I have one project in avr which send back text after receiving text from UDP terminal
for example Terminal send "Hello" , AVR send answer "Readed"
i have UDP terminal "Hercules" and all works good, but in VB not receive, but is one strange thing , when I open VB program first time, then UDP receive one text "Readed" , because I send one text in "Form1_Load"
also when I send from AVR text every 500ms (without waiting for PC) then all works good and UDP receive all texts,
not receive only when AVR wait for text from PC .
In terminal in Android also all works perfect, only in VB is problem.
can you help me ?

here is listing :

VB
Imports System.Net
Imports System.Net.Sockets
Imports System.Net.EndPoint
Imports System.Text.Encoding
Imports System.Text

Public Class Form1
    Dim publisher As New Sockets.UdpClient()
    Dim subscriber As New Sockets.UdpClient(8899)
    Dim counterAs Int16
    Dim ep As IPEndPoint

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        counter+= 1
        publisher.Connect(TbTo.Text, TbPort.Text)
        Dim subscriber As New UdpClient()
        Dim sendbytes() As Byte = ASCII.GetBytes(TbSend.Text & Chr(13))

        publisher.Send(sendbytes, sendbytes.Length)
        subscriber.Close()
    End Sub

    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        subscriber.Client.ReceiveTimeout = 3000
        subscriber.Client.Blocking = False
        ep = New IPEndPoint(0, 8899)
        subscriber.Connect("10.10.100.254", 8899)
        Dim sendBytes As [Byte]() = Encoding.ASCII.GetBytes("Opened" & Chr(13))
       subscriber.Send(sendBytes, sendBytes.Length)
    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Try
            Dim rcvbytes() As Byte = subscriber.Receive(ep)
            TbRcv.Text = counter & ASCII.GetString(rcvbytes) & vbCrLf
        Catch ex As Exception
        End Try
    End Sub

End Class

QuestionBCP or Bulk Insert Pin
byka19-Feb-16 5:51
byka19-Feb-16 5:51 
AnswerRe: BCP or Bulk Insert Pin
Eddy Vluggen19-Feb-16 6:00
professionalEddy Vluggen19-Feb-16 6:00 
QuestionVBS for next loop Pin
Member 1191673518-Feb-16 23:31
Member 1191673518-Feb-16 23:31 
AnswerRe: VBS for next loop Pin
Wombaticus19-Feb-16 0:04
Wombaticus19-Feb-16 0:04 
GeneralRe: VBS for next loop Pin
Member 1191673519-Feb-16 0:15
Member 1191673519-Feb-16 0:15 
GeneralRe: VBS for next loop Pin
Wombaticus19-Feb-16 0:26
Wombaticus19-Feb-16 0:26 
GeneralRe: VBS for next loop Pin
Member 1191673519-Feb-16 0:36
Member 1191673519-Feb-16 0:36 
GeneralRe: VBS for next loop Pin
Wombaticus19-Feb-16 0:51
Wombaticus19-Feb-16 0:51 
GeneralRe: VBS for next loop Pin
Member 1191673519-Feb-16 0:53
Member 1191673519-Feb-16 0:53 
GeneralRe: VBS for next loop Pin
Wombaticus19-Feb-16 0:55
Wombaticus19-Feb-16 0:55 
GeneralRe: VBS for next loop Pin
Member 1191673519-Feb-16 1:01
Member 1191673519-Feb-16 1:01 
GeneralRe: VBS for next loop Pin
Wombaticus19-Feb-16 1:24
Wombaticus19-Feb-16 1:24 
GeneralRe: VBS for next loop Pin
CHill6019-Feb-16 2:14
mveCHill6019-Feb-16 2:14 
GeneralRe: VBS for next loop Pin
Member 1191673523-Feb-16 22:26
Member 1191673523-Feb-16 22:26 
AnswerRe: VBS for next loop Pin
Richard MacCutchan19-Feb-16 0:45
mveRichard MacCutchan19-Feb-16 0:45 
GeneralRe: VBS for next loop Pin
Member 1191673519-Feb-16 0:51
Member 1191673519-Feb-16 0:51 
GeneralRe: VBS for next loop Pin
Richard MacCutchan19-Feb-16 0:56
mveRichard MacCutchan19-Feb-16 0:56 

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.