I found this code in the sdk,

CCoeControl* myEdControl = CreateLineByTypeL(_L("Caption"),ActivePageId(),iNewItemId ,EEikCtEdwin , NULL) ;
CEikEdwin* myEdwin = STATIC_CAST(CEikEdwin*, myEdControl) ;
myEdwin->ConstructL(EEikEdwinNoHorizScrolling | EEikEdwinResizable, 10,64,10);

myEdwin->CreateTextViewL();
Line(iNewItemId)->ActivateL();
SetEditableL(IsEditable()) ;

Any one who can help me converting this code into CEikNumberEditor.

Thanks!