Serial Communications and same code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vbnm
    New Member
    • Apr 2006
    • 2

    #1

    Serial Communications and same code

    hi all unfortunately, i have more than one qusetion 1- see the next code :


    Private Sub Timer1_Tick(ByV al eventSender As System.Object, ByVal eventArgs As System.EventArg s) Handles Timer1.Tick
    Dim t As Double

    t = temperature(1)

    label_temperatu re_outside.Text = VB6.Format(t, "#0.0" & "°C")


    End Sub
    how can change this code from vb6 to .net specially the following code
    VB6.Format(t, "#0.0" & "°C")

    2-
    Private Function SDA_value() As Integer

    SDA_value = MSComm1.CTSHold ing 'determine the status of an external device'
    End Function
    -how can i change the up code to .net specially the following code MSComm1.CTSHold ing
    any one help me please :confused:
Working...