Winforms Code

CHnages according to winforms