Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mask Edit Control

Status
Not open for further replies.

atruhoo

Programmer
Jan 8, 2003
131
US
Have added Mask edit control to my toolbox and have attempted to utilize in my application. However when trying to set .text property on form nothing is displayed when reading from DB. Populates regular textbox fine and when set a breakpoint and tab through the value shows, but no data is displayed to user. Any suggestions would be helpful.

Richard
 
Where did you get the MaskedEdit Control from?

DotNetDoc
M.C.S.D.
---------------------------------------

Tell me and I forget. Show me and I remember. Involve me and I understand.
- Anonymous Chinese Proverb
-----------------------------------
If you can't explain it simply, you don't understand it well enough.
- A. Einstein
 
Added to Toolbox following these steps below
-Right-Clicked Toolbar, and then Customize Toolbox.
-Looked under COM Components tab.
-Located and selected the Microsoft Masked Edit Control version 6.0 check box.
-Clicked OK.

References were added once added MaskEdit Control to form.

Richard

 
Actually I was looking for the name of the componant. I have used a few and might be able to help otherwise you will need to go to their website for help.

DotNetDoc
M.C.S.D.
---------------------------------------

Tell me and I forget. Show me and I remember. Involve me and I understand.
- Anonymous Chinese Proverb
-----------------------------------
If you can't explain it simply, you don't understand it well enough.
- A. Einstein
 
DotNetDoc

Hope this is what you are asking for, the name under the COM Component tag is Microsoft Masked Edit Control, version 6.0. In solution explorer references bothAxMSMask and MSMask When looking at properties name shows as AxInterop.MSMask and Interop.MSMask. If this is not what you are looking for tell me where to look and I will get you the info. Looked on Microsoft site trying to find info about MaskEditControl and all I am able to find is what you get when you hit help in developer. Thanks again.

Richard
 
Yes that is what I was looking for. You said above that when you try to set the text from the DB it wont set the text.

Show me the code you are using to do this

DotNetDoc
M.C.S.D.
---------------------------------------

Tell me and I forget. Show me and I remember. Involve me and I understand.
- Anonymous Chinese Proverb
-----------------------------------
If you can't explain it simply, you don't understand it well enough.
- A. Einstein
 
DotNetDoc,

Have tried both to hardcode it and from database with no success. See that .Text property is set to value, but can't see displayed on form. I am sure that it is something simple that I am missing, but trying to teach myself .Net since work hasn't come up with funds yet.

Hardcoded
AsMaskEdBox1.Mask = "##/##/####"
AsMaskEdBox1.Text = "12/02/2003"

from Database
AsMaskEdBox1.Mask = "##/##/####"
AsMaskEdBox1.Text = objRow.Item("date")

Richard
 
DotNetDoc,
Any new suggestions or wisdom for your patient. Still hitting brick wall with this issue and being out sick today isn't helping, but hey I am tired of laying around and figured I would attack issue from home.

Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top