Hi everyone, I'm absolutely new at programming and have been dabbling here and there with small code but I decided to make something useful and now can't seem to figure this out.

I have a text box that I will paste into a byte array, for example:

02 01 05 BF DD 03

All I need to do is when I click on a button, for the program to take the length of the array and store it in RCVDMSG_Length() and then take the contents of the text box and put it into a byte array RCVDMSG().

From there I think I can figure out how to manipulate the array... but it's this first step that I'm stuck on....

So far I have this in my Form:

Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load


        Dim RCVDMSG() As Byte
        Dim RCVDMSG_Length() As Integer
        
        RCVDMSG_Length = Len(TextBox1.Text)
Cheers