|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
MaskedTextBox HelpI have a few masked textboxes within my application and I have the same
problem with each and everyone If I tab to a masked textbox i have no issues, but when i click into a mask textbox the problems arise. when i click in it places the cursor where i click (not at the start of the masked textbox), this forces users to either click back to the start of the textbox or hold the left arrow key to move back to the start is there anyway to stop this, or even an onclick event? Thanks Mike Fellows it's better if you post some code lines.
Show quoteHide quote :-) "Mike Fellows" <michael.fellows@equityhouse.NOSPAM.co.uk> wrote in message news:rYqdndoilM-h0rfYRVn_vA@giganews.com... >I have a few masked textboxes within my application and I have the same >problem with each and everyone > > If I tab to a masked textbox i have no issues, but when i click into a > mask textbox the problems arise. > > when i click in it places the cursor where i click (not at the start of > the masked textbox), this forces users > to either click back to the start of the textbox or hold the left arrow > key to move back to the start > > is there anyway to stop this, or even an onclick event? > > Thanks > > Mike Fellows > to be honest there isnt any code
i have a maskedtextbox (a standard control in vs 2005) if i set the mask to 0000000000 (right click properties) this will only allow me to input numbers (to a max of 10 numbers into the control) but when i click onto the control it will start at the posistion i click (not at the start/left) Cheers Mike Show quoteHide quote "Raffaeu" <raff***@raffaeu.com> wrote in message news:E5BE4116-3A48-4979-A166-B7B326D0EDDE@microsoft.com... > it's better if you post some code lines. > > :-) > "Mike Fellows" <michael.fellows@equityhouse.NOSPAM.co.uk> wrote in message > news:rYqdndoilM-h0rfYRVn_vA@giganews.com... >>I have a few masked textboxes within my application and I have the same >>problem with each and everyone >> >> If I tab to a masked textbox i have no issues, but when i click into a >> mask textbox the problems arise. >> >> when i click in it places the cursor where i click (not at the start of >> the masked textbox), this forces users >> to either click back to the start of the textbox or hold the left arrow >> key to move back to the start >> >> is there anyway to stop this, or even an onclick event? >> >> Thanks >> >> Mike Fellows >> > ....yes - the only way around it is I've written an onEntry trigger for each
textbox and in it put: yourmaskedtextbox.selectall() It has the effect of selecting all of the text in your textbox so the cursor gets put at the beginning of the field. May not be what you want - but it works in certain cases depending on your needs. -- Show quoteHide quoteFranklin M. Gauer III Applications Development Manager Integrated Companies, Inc. "Mike Fellows" wrote: > to be honest there isnt any code > > i have a maskedtextbox (a standard control in vs 2005) > > if i set the mask to 0000000000 (right click properties) > > this will only allow me to input numbers (to a max of 10 numbers into the > control) > > but when i click onto the control it will start at the posistion i click > (not at the start/left) > > Cheers > > Mike > > > > "Raffaeu" <raff***@raffaeu.com> wrote in message > news:E5BE4116-3A48-4979-A166-B7B326D0EDDE@microsoft.com... > > it's better if you post some code lines. > > > > :-) > > "Mike Fellows" <michael.fellows@equityhouse.NOSPAM.co.uk> wrote in message > > news:rYqdndoilM-h0rfYRVn_vA@giganews.com... > >>I have a few masked textboxes within my application and I have the same > >>problem with each and everyone > >> > >> If I tab to a masked textbox i have no issues, but when i click into a > >> mask textbox the problems arise. > >> > >> when i click in it places the cursor where i click (not at the start of > >> the masked textbox), this forces users > >> to either click back to the start of the textbox or hold the left arrow > >> key to move back to the start > >> > >> is there anyway to stop this, or even an onclick event? > >> > >> Thanks > >> > >> Mike Fellows > >> > > > > >
Drop your pants and grab your ankles..its VISTA!
Combo Boxes in Datagrids Seeking info on httpweblistener.... vb.net 2003 ... Global Formatting ? Detecting the browser once IE7 comes out Bad practice with Enumerations.... How to find my information Can we determine at runtime if app is Console or Windows? How to lock a text file? Merge VB.NET and C# |
|||||||||||||||||||||||