HighTechTalks DotNet Forums  

Maskedbox.Text

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss Maskedbox.Text in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Vic
 
Posts: n/a

Default Maskedbox.Text - 10-14-2003 , 12:46 AM






Someone knows why if I set an AxMaskedbox.text dont display
anything in the window?

For example axmaskedbox1.text = "01/01/03"
of course with the mask = "##/##/##"


Reply With Quote
  #2  
Old   
Peter van der Goes
 
Posts: n/a

Default Re: Maskedbox.Text - 10-14-2003 , 07:52 AM







"Vic" <victormg (AT) cisa (DOT) com.mx> wrote

Quote:
Someone knows why if I set an AxMaskedbox.text dont display
anything in the window?

For example axmaskedbox1.text = "01/01/03"
of course with the mask = "##/##/##"

I can solve part of your problem for you.
Instead of the Text property, try setting the CtlText property. This will
cause your string literal to be displayed.
The unanswered part of the question is exactly how this setting is
influenced by a value in the Mask property. My experiments indicate that
anything in Mask prevents display of CtlText, beyond something simple like a
mask of ### allowing a number such as 123 to appear.
So, this works:
axMaskEdBox1.Mask = "###"
axMaskEdBox1.CtlText = 123
This does not:
axMaskEdBox1.Mask = "##/##/##"
axMaskEdBox1.CtlText = 123456
or
axMaskEdBox1.CtlText = "12/34/56"

Hopefully, someone else can take this further.

--
Peter - [MVP - Academic]




Reply With Quote
  #3  
Old   
harishchowdary
 
Posts: n/a

Default getting text from Maskedbox - 05-12-2006 , 02:47 AM



for getting text from maskeditbox is


exmaskedbox1.defaultText

From http://developmentnow.com/g/1_2003_1...edbox-Text.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.