Arduino Serial communication with vb.net

I have to do two tasks

  1. I have to make the current led blink(for example if red led is currently active i want it to blink if green is active i want green to blink)

I have done first part to figure out the active led , but i am facing problems in serial communication (which methods to use , which encoding to use)

I want to send active color to arduino (which method to use if i send like a charracter 'r' , 'g' and 'b' )

Please give an example so i can get out of the confusion

  1. I want to change the brightness of active led

Again i have done the job of figuring out active color and i have also inputted brightness value of that led (from 0-255)

Now how do i send this information to arduino and process it

should i send as a string , a charracter array help me!!

which method to use if i send like a charracter 'r' , 'g' and 'b'

To send the character or to read the character?

Now how do i send this information to arduino and process it

Convert the int in VB to a string. and send that string.

should i send as a string , a charracter array help me!!

A string IS a character array that is NULL terminated.

Have you developed your arduino code using the IDE serial monitor. If not, that would be the place to start.