Hello

I am trying to add textbox in and IE toolbar sample application given on
code project website,

http://www.codeproject.com/csharp/dotnetbandobjects.asp

I added an editbox but its not accepting backspace key

in the source file TranslateAccelerator has been implemented like that:


        public virtual Int32 TranslateAcceleratorIO(ref MSG msg)
                {
                        if( msg.message == 0x100 )//WM_KEYDOWN
                                if( msg.wParam == (uint)Keys.Tab ||
msg.wParam == (uint)Keys.F6 )//keys used by explorer to navigate from
control to control
                                        if( SelectNextControl(
                                                        ActiveControl,
                                                        ModifierKeys ==
Keys.Shift  ? false : true,
                                                        true,
                                                        true,
                                                        false )
                                                )
                                                return 0;//S_OK

                        return 1;//S_FALSE
                }

AND

public virtual void UIActivateIO(Int32 fActivate, ref MSG Msg)
                {
                        if( fActivate != 0 )
                        {
                                Control ctrl =
GetNextControl(this,true);//first
                                if( ModifierKeys == Keys.Shift )
                                        ctrl = GetNextControl(ctrl,false
);//last

                                if( ctrl != null ) ctrl.Select();
                                this.Focus();
                        }
                }

what should I do so that BackSpace works properly on editbox



Thanks

-A
 This Email and any files transmitted with it are confidential and
, intended solely for the use of the individual or entity to which they are
,  addressed. Please note that any views or opinions presented in this
,  Email is solely those of the author and does not necessarily represent
,  those of Bank Alfalah Limited. Finally, the recipient should check this
,  Email and any attachments for the presence of any viruses. Bank Alfalah
,  accepts no liability for any damage caused by any virus/error
, transmitted by this email
,

===================================
This list is hosted by DevelopMentor�  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to