473,385 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

MaskedEditBox won't display any text...

I created a new VB.NET Windows Application and dragged a Microsoft
MaskedEditBox onto the empty form (did not change any of the defaults).
In Form1_Load I added the line...

AxMaskEdBox1.Text = "14"

But nothing is displayed in the box when I run the application.

Any idea what is going on here?

--

Dennis K.
Oct 7 '06 #1
4 1658

"Dennis K." <no****@iglou.invalidwrote in message
news:ed********************************@4ax.com...
>I created a new VB.NET Windows Application and dragged a Microsoft
MaskedEditBox onto the empty form (did not change any of the defaults).
In Form1_Load I added the line...

AxMaskEdBox1.Text = "14"

But nothing is displayed in the box when I run the application.

Any idea what is going on here?

--

Dennis K.
Are you referring to a MaskedEditBox (VB 6) or to a MaskedTextBox (.NET
Framework)?

I have no problem programmatically adding text to the Text property of a
MaskedTextBox using code similar to yours. (Using Visual Studio 2005).
Oct 7 '06 #2
On Sat, 7 Oct 2006 18:47:12 -0500, "pvdg42" <pv****@newsgroups.nospam>
wrote:
>"Dennis K." <no****@iglou.invalidwrote in message
news:ed********************************@4ax.com.. .
>>I created a new VB.NET Windows Application and dragged a Microsoft
MaskedEditBox onto the empty form (did not change any of the defaults).
In Form1_Load I added the line...

AxMaskEdBox1.Text = "14"

But nothing is displayed in the box when I run the application.

Any idea what is going on here?

--

Dennis K.

Are you referring to a MaskedEditBox (VB 6) or to a MaskedTextBox (.NET
Framework)?

I have no problem programmatically adding text to the Text property of a
MaskedTextBox using code similar to yours. (Using Visual Studio 2005).
I am using Visual Studio .NET 2003 (Microsoft Development Environment
7.1.3088, Microsoft .NET Framework 1.1.4322). I added the Masked Edit
Control V6 (MSMASK32.OCX) from the "Tools|Add/Remove Toolbox Items"
menuitem. It was on the COM Components tab.

--

Dennis K.
Oct 8 '06 #3

"Dennis K." <no****@iglou.invalidwrote in message
news:4d********************************@4ax.com...
On Sat, 7 Oct 2006 18:47:12 -0500, "pvdg42" <pv****@newsgroups.nospam>
wrote:
I am using Visual Studio .NET 2003 (Microsoft Development Environment
7.1.3088, Microsoft .NET Framework 1.1.4322). I added the Masked Edit
Control V6 (MSMASK32.OCX) from the "Tools|Add/Remove Toolbox Items"
menuitem. It was on the COM Components tab.

--

Dennis K.
OK, when I added a MaskedEditControl to a sample Windows app in VS 2005, I
did not find a Text property listed for the MaskedEditControl. When I used
the CtlText property, I was able to add text to the control with code, like
this:
AxMaskEdBox1.CtlText = "String in!"

As the intellisense list for the Masked Edit control does not include a Text
property, It's a mystery to me that your code compiles (but, it does).

Use the CtlText property.


Oct 8 '06 #4
On Sat, 7 Oct 2006 23:26:32 -0500, "pvdg42" <pv****@newsgroups.nospam>
wrote:
>OK, when I added a MaskedEditControl to a sample Windows app in VS 2005, I
did not find a Text property listed for the MaskedEditControl. When I used
the CtlText property, I was able to add text to the control with code
Ah ha. Thanks!

The Text property must be used for something else. In looking at the
Help for the control it says I should be using the SelText property.

Maybe next time I should RTFM. ;-)

--

Dennis K.
Oct 8 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: javaguy | last post by:
I have a data entry web application that is formatted heavily with tables. Having learned a bit of CSS, I'm hoping to rewrite this using <div> tags. But I have run into a formatting problem that...
5
by: LRW | last post by:
(Sorry if this is a repost...my newsreader keeps crashing on the posting--I don't know if the message going out or not) For some reason this javascript just won't work in Firefox. It works fine...
0
by: M. David Johnson | last post by:
I cannot get my OleDbDataAdapter to update my database table from my local dataset table. The Knowledge Base doesn't seem to help - see item 10 below. I have a Microsoft Access 2000 database...
7
by: Daniel Kaplan | last post by:
I have the item below at the top of my style sheet. And it seems that the font-szie is ignored. I know that my linked style sheet is being read, and used because if I remove the font-family line,...
10
by: Martin Jørgensen | last post by:
Hi, I got this piece of code, but I won't compile: #include <iostream> using namespace std; //////////////////////////////////////////////////////////////// struct link ...
0
by: clintonG | last post by:
The Wizard is on Step5 and some TextBox validation in Step5 has to be done on the server so I've been thinking I need to use the OnActiveStepChanged event. This server-side validation has to be...
1
by: judacris | last post by:
I've seen the threads here about molding 2 divs in a centered fashion. but I can't seem to solve this thing. my blogger blog is functioning well on my site for now, but the blog feed (left) and...
4
by: z55177 | last post by:
My domain: http://www.esthevision.cz/ This is the cause of my problem. The template is supposed to look somewhat like this: PINK STRIPE http://themebot.com/website-templates/ht... I created an...
0
by: JosAH | last post by:
A Simple Text-Based Menu System Read this this post; there are numerous posts like that: a newbie struggling with some sort of menu implementation. They want nested menus of course and an option...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.