Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: aattanayake

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    685

    Form size in vb.net

    In reference to :

    http://www.codeguru.com/forum/showthread.php?t=325639

    Benjay,
    I'm new to VB.NET and came across the same issue. Were you able to solve making the form size grater than the...
  2. Replies
    14
    Views
    3,616

    Re: VB6 and VB.NET Serial (COM1) data error

    I found the answer and got it working ....

    From: http://msdn.microsoft.com/en-us/library/y2sxhat8.aspx

    By default, SerialPort uses ASCIIEncoding to encode the characters. ASCIIEncoding encodes...
  3. Replies
    14
    Views
    3,616

    Re: VB6 and VB.NET Serial (COM1) data error

    I did this:

    Dim Port As SerialPort = New SerialPort("COM1", 9600, Parity.Odd, 8, StopBits.One)
    Port.Open()
    Port.Write(System.Convert.ToByte(&H2B) & _
    System.Convert.ToByte(&H4) & _...
  4. Replies
    14
    Views
    3,616

    Re: VB6 and VB.NET Serial (COM1) data error

    yes you are right ToChar() works on 8 bit values and I need to convert values grater than FF into characters.
  5. Replies
    14
    Views
    3,616

    Re: VB6 and VB.NET Serial (COM1) data error

    it needs be all characters
  6. Replies
    14
    Views
    3,616

    Re: VB6 and VB.NET Serial (COM1) data error

    I found something interesting.

    when I convert a number using System.Convert.ToChar(X) and sends it through serial the X can only be hex: 0 to hex:3F if I want to get the correct value from the...
  7. Replies
    14
    Views
    3,616

    Re: VB6 and VB.NET Serial (COM1) data error

    I don't think I can do that.
    I think there is a difference in the new .NET control itself
  8. Replies
    14
    Views
    3,616

    Re: VB6 and VB.NET Serial (COM1) data error

    What do you mean by create hex?
    is it like this?

    Port.Write(System.Convert.ToChar(Hex(42)) & _
    System.Convert.ToChar(Hex(4)) & _
    ...
  9. Replies
    14
    Views
    3,616

    VB6 and VB.NET Serial (COM1) data error

    Hello,
    I'm new to .NET. I have an application that is running in VB6. It sends text through COM1 port to another device.

    When I converted the VB6 code to .NET the string it sends out is...
Results 1 to 9 of 9


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center