AddHandler cmd.TextChanged, AddressOf TextBox_TextChanged
AddHandler cmd.KeyPress, AddressOf TextBox_TextChanged

Have the above lines so I can do stuff when the text in textbox cmd is changed. Not sure where to put them though.

If I put it in Public Class MainForm I get a syntax error.
If I put it in fMainForm_Load sub I get
Name TextBox_TextChanged is not declared

Any idea what im doing wrong
Thanks