473,406 Members | 2,356 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,406 software developers and data experts.

How to create a control to do this?...

I would like to create a control to do something like this:

accept a numeric value (>0 and <=3899) in the textbox, convert it to a
Roman Numeral and display it in a label. Write functions called from
the Leave event of the textbox to validate the entry in the textbox and
convert it to Roman.
The entry of an invalid value in the textbox should result in the entry
going away, the textbox becoming yellow and getting focus. Valid
entries should turn the textbox green and the control itself medium
seagreen and display the Roman Numeral in the label.

anyone have any ideas how this would be done?

Mar 21 '06 #1
4 938
Hi Jason,

I did something similar a while back, though I didn't create a
UserControl to do it.I just created a RomanConverter Class library.
anyone have any ideas how this would be done?


1. Create a Class that converts integers to Roman numerals. You can
find an excellent example at
"http://www.vb-helper.com/howto_roman_arabic.html". There are lots of
other samples on the web, many in VB. Another one is :
"http://www.thevbprogrammer.com/Ch08/08-10-RomanNumerals.htm"

2. Create your UserControl, referencing the above class, and adding all
validation code as necessary. I assume you are familiar with the
nuances of User control creation.

3. Compile your code and add that control to a Windows form to test it
out.

Note that Roman numbers are normally considered upto 3999 and not 3899.

Hope this helps,

Regards,

Cerebrus.

Mar 21 '06 #2
"Cerebrus" ...

Nice pages,

I have copied the links

Cor
Mar 21 '06 #3
LOL, Hi Cor,

That's nice to hear, but whatever do *you* need the links for ?

Regards,

Cerebrus.

Mar 21 '06 #4
Cerebrus,

When there comes again chalenges to create this smaller to have the samples.

This is are nice things to do just for fun to make it as short as possible.

We did this already once in a kind of way in this newsgroup with Roman
(Latin) to (west) Arabian.

Cor

"Cerebrus" <zo*****@sify.com> schreef in bericht
news:11**********************@i40g2000cwc.googlegr oups.com...
LOL, Hi Cor,

That's nice to hear, but whatever do *you* need the links for ?

Regards,

Cerebrus.

Mar 21 '06 #5

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

Similar topics

0
by: Renee | last post by:
Hi there, does any one know how to create context sensitive help for Groupbox control with HelpProvider class? I can create context sensitive help for any control easily except for Groupbox. ...
0
by: Andrea | last post by:
Hallo, i create controls dynamically on my webproject. most of the controls i create in the oninit-event and all worked wunderfull, but in the event-handling, e.g. the click-event of a button, i...
4
by: Captain Chaos | last post by:
Hello Is it Possible to build an ActiveX Control with NET ? I want to take a NET UserControl and use it with VB6. I found a solution how to embbed a NET UserControl into a WebPage (Like it...
0
by: Eric | last post by:
Hi I want to know if it's possible to create a control at runtime in a different process than the main form There is a fonction I try but I have a message that tell me I can create control on...
1
by: Arend Jan Nijenhuis | last post by:
Hi, I'm fairly new to .Net, but an expert in Microsoft Access VBA. For a large Access application, I want to create some sort of custom control (COM interop?) in VB.Net, to be used in an Access...
3
by: Yoshitha | last post by:
Hi Is it possible to create my own tool box control (in c#.net) on which i can place the controls i've created or some other controls which already exisits? Can anyone tell me how to do this?...
3
by: Supriya | last post by:
Hi , Can anybody give me some information on how to create an activeX Control in C# with a Picturebox. Thank you, Supriya
3
by: 100grand | last post by:
Modify the Inventory Program to use a GUI. The GUI should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price...
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
0
by: yrogirg | last post by:
Actually, I need utf-8 to utf-8 encoding which would change the text to another keyboard layout (e.g. from english to russian ghbdtn -> привет) and would not affect other symbols. I`m totally...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.