Click here to Skip to main content
16,007,472 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Remote Access Pin
soltec6-Feb-06 4:49
soltec6-Feb-06 4:49 
QuestionAny Free solution to read pdf in application form? Pin
cylix200011-Jan-06 13:51
cylix200011-Jan-06 13:51 
AnswerRe: Any Free solution to read pdf in application form? Pin
Curtis Schlak.11-Jan-06 14:01
Curtis Schlak.11-Jan-06 14:01 
GeneralRe: Any Free solution to read pdf in application form? Pin
cylix200011-Jan-06 17:22
cylix200011-Jan-06 17:22 
GeneralRe: Any Free solution to read pdf in application form? Pin
Curtis Schlak.12-Jan-06 2:01
Curtis Schlak.12-Jan-06 2:01 
GeneralRe: Any Free solution to read pdf in application form? Pin
cylix200012-Jan-06 14:47
cylix200012-Jan-06 14:47 
GeneralRe: Any Free solution to read pdf in application form? Pin
Curtis Schlak.13-Jan-06 1:39
Curtis Schlak.13-Jan-06 1:39 
Questionevent handler & textbox problem Pin
andrewke111-Jan-06 12:36
andrewke111-Jan-06 12:36 
i am trying to write a character that is received from the the serial port to a textbox but the received character never shows up in the textbox. the serialdata received event handler fires and using debug you can step through the code & follow the character as it is written to textbox1.text but it never actually shows or is visible in the textbox on the form. all the serialport setup etc is done in module1 - open(), isopen(), getportnames()etc & write the returned information into textbox1 with no problems.

Public Class Form1

Public Sub MyRxData(ByVal intRxData As Integer)

Dim strAscChar As String

strAscChar = Chr(intRxData)
TextBox1.Text &= strAscChar

End Sub
End Class

Module Module1

Dim WithEvents _Rs232 As New SerialPort()


Public Sub _Rs232_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles _Rs232.DataReceived

If _Rs232.BytesToRead > 0 Then
Do
Form1.MyRxData(_Rs232.ReadByte)
If _Rs232.BytesToRead = 0 Then
Exit Do
End If
Loop
End If
End Sub
End Module

when all the code is lumped into Form1 it all works with no problems, it is only when i put all the serial port code into it's own module that the problem occurs. i have had no formal training in vb etc as i am involved in hardware design, FPGA & micros etc so i suspect i am doing something stupid or doing it in a way that it is not meant to be done, so any help & suggestions would be greatly appreciated. Thanks
AnswerRe: event handler & textbox problem Pin
Christian Graus11-Jan-06 13:08
protectorChristian Graus11-Jan-06 13:08 
GeneralRe: event handler & textbox problem Pin
Joshua Quick11-Jan-06 13:21
Joshua Quick11-Jan-06 13:21 
GeneralRe: event handler & textbox problem Pin
Christian Graus11-Jan-06 13:23
protectorChristian Graus11-Jan-06 13:23 
GeneralRe: event handler & textbox problem Pin
Joshua Quick11-Jan-06 13:30
Joshua Quick11-Jan-06 13:30 
GeneralRe: event handler & textbox problem Pin
andrewke111-Jan-06 13:38
andrewke111-Jan-06 13:38 
GeneralRe: event handler & textbox problem Pin
Christian Graus11-Jan-06 13:43
protectorChristian Graus11-Jan-06 13:43 
GeneralRe: event handler & textbox problem Pin
Dave Kreskowiak11-Jan-06 15:20
mveDave Kreskowiak11-Jan-06 15:20 
GeneralRe: event handler & textbox problem Pin
Christian Graus11-Jan-06 15:25
protectorChristian Graus11-Jan-06 15:25 
GeneralRe: event handler & textbox problem Pin
Dave Kreskowiak11-Jan-06 16:53
mveDave Kreskowiak11-Jan-06 16:53 
GeneralRe: event handler & textbox problem Pin
Christian Graus11-Jan-06 17:14
protectorChristian Graus11-Jan-06 17:14 
GeneralRe: event handler & textbox problem Pin
Dave Kreskowiak12-Jan-06 8:19
mveDave Kreskowiak12-Jan-06 8:19 
AnswerRe: event handler & textbox problem Pin
Dave Kreskowiak11-Jan-06 13:17
mveDave Kreskowiak11-Jan-06 13:17 
GeneralRe: event handler & textbox problem Pin
andrewke111-Jan-06 13:47
andrewke111-Jan-06 13:47 
Questionsending 2-d array into a function Pin
ns11-Jan-06 8:05
ns11-Jan-06 8:05 
AnswerRe: sending 2-d array into a function Pin
Dave Kreskowiak11-Jan-06 9:54
mveDave Kreskowiak11-Jan-06 9:54 
GeneralRe: sending 2-d array into a function Pin
ns13-Jan-06 1:40
ns13-Jan-06 1:40 
Questionhow to detect app killing Pin
edwin16411-Jan-06 8:04
edwin16411-Jan-06 8:04 

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.