argh!!! :) thank you.... hmm ... yes: in VB you must use "<" and ">" and if you want to write it in multiple lines (like in C#) ... you must write an underscore... that is very "un-handy" (??) _ _ Public Sub Test() End Sub the code line looks like: Public WithEvents grdTest as DataGridView solidIT.de - under construction Components for Microsoft .Net audittrail, objectcomparer, deepcopy and much more ... -- modified at 10:47 Tuesday 27th March, 2007