c# - DateBox custom class -


i want create custom class enter / display date. problem created in vfp without problems, in c# did not know start. in vfp created container class in placed label lists first 3 letters of day, , 3 objects of type textbox each day, month , year. each textbox has code pressing arrow on keyboard increment value , pressing down arrow decrement value. each textbox has ability make blue (select entire length of text) when takes focus. in vfp exists class browser, wich open class library (.vcx) , allow drag , drop classes forms (custom classes).

first instance has first tab stop. when form launched lcday object (first textbox of datebox class) takes focus , selects text in it. when textbox1 (lnday) filled gives focus automatically textbox2 (lnmonth), selecting text inside, , on. if date ok (verified function date(year,month,day), in case code verification in custom method of container class, named "verificare" , check if date(lnyear,lnmonth,lcday) not empty) call custom method change orange label caption first 3 letters of date().

can make such custom class , use in c# forms?

the image vfp class:

existing vfp solution

you need decide user interface framework want use in c#. guess want create desktop application. can choose 2 used frameworks microsoft:

  • windows presentation foundation (wpf) - newest framework (e.g. used win8 modern apps)
  • windows forms (system.windows.forms namespace)
  • there other options less popular (gtksharp, silverlight, etc)

in c# can use date picker control can customized suit needs:


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -