YouarecreatingaWindowsFormsapplicationbyusingthe.NETFra……
YouarecreatingaWindowsFormsapplicationbyusingthe.NETFramework3.5.Youplantodevelopanewcontrolfortheapplication.ThecontrolwillhavethesamepropertiesasaTextBoxcontrol.Youneedtoensurethatthecontrolhasatransparentbackgroundwhenitispaintedonform.Youwanttoachievethisgoalbyusingtheminimumamountofdevelopmenteffort.Whatshouldyoudo?()
A.CreateanewclassthatisderivedfromtheControlclass.CalltheSetStylemethodintheconstructor.
B.CreateanewclassthatisderivedfromtheTextBoxcontrolclass.OverridetheOnPaintmethodintheconstructor.
C.CreateanewclassthatisderivedfromtheControlclass.SettheBackColorpropertyofthecontroltoTransparent.CalltheSetStylemethodintheconstructor.
D.CreateanewclassthatisderivedfromtheTextBoxcontrolclass.SettheBackColorpropertyofthecontroltoTransparentintheconstructor.CalltheSetStylemethodintheconstructor.
A.NETFramework3.5.Youplantodevelopanewcontrolfortheapplication.ThecontrolwillhavethesamepropertiesasaTextBoxcontrol.Youneedtoensurethatthecontrolhasatransparentbackgroundwhenitispaintedonform.Youwanttoachievethisgoalbyusingtheminimumamountofdevelopmenteffort.Whatshouldyoudo?()
A.CreateanewclassthatisderivedfromtheControlclass.CalltheSetStylemethodintheconstructor.
B.CreateanewclassthatisderivedfromtheTextBoxcontrolclass.OverridetheOnPaintmethodintheconstructor.
C.CreateanewclassthatisderivedfromtheControlclass.SettheBackColorpropertyofthecontroltoTransparent.CalltheSetStylemethodintheconstructor.
D.CreateanewclassthatisderivedfromtheTextBoxcontrolclass.SettheBackColorpropertyofthecontroltoTransparentintheconstructor.CalltheSetStylemethodintheconstructor.