obj.New1(False) 'Door:Object
obj.FromControl("TextBox1")
objFont.New1(False) 'Door:Object
objFont.CreateNew("System.Drawing.Font" & objFont.System_Drawing) 'Create new Font Object
objFont.Value = obj.GetProperty("Font") 'Read out current Font
fontfamily = objFont.GetProperty("FontFamily") ' Get current font family
fontsize = 24 'new fontsize
'objFont Properties are read-only so you have to create a new one instead of SetProperty
'create arguments to create new font object
objFontProp.New1(2) 'Door:ObjectArray
objFontProp.SetValue(0,fontfamily,"System.String")
objFontProp.SetValue(1,fontsize,"System.Single")
'create new font object
objFont.CreateNew2("System.Drawing.Font" & objFont.System_Drawing,objFontProp.Value)
'Set the new font object
obj.SetProperty2("Font",objFont.Value)