473,473 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How get supersrcipts into combo boxes

I'm using standard ComboBox for dropdown lists. I'm
putting units such as area & volume into the text, so I
need superscripts, e.g., ft3, in2, etc. I have commercial
programs now that use superscripts in various labels, but
I don't know if they were developed with MS products.

Any suggestions how to include superscripts in text?
Thanks for help!

Craig Bartels

Nov 15 '05 #1
4 1822
Your solution most likely lies with owner drawn combo boxes. With those you
basically take over the drawing of each item in the dropdown list.
CodeProject has an article showing an example of owner-drawn combobox:

http://www.codeproject.com/cs/combob...wncombobox.asp

With full control over the drawing you can use your own standard for
controlling font within a string. You could devise a certain string pattern
that signifies subscripts, e.g. "ft#ss<3>", where whenever you encounter the
#ss keyword you would use a superscripted font.

It is not really easy but with owner drawn comboboxes you could take full
control of each display line.

"Craig Bartels" <cs****@attglobal.net> wrote in message
news:06****************************@phx.gbl...
I'm using standard ComboBox for dropdown lists. I'm
putting units such as area & volume into the text, so I
need superscripts, e.g., ft3, in2, etc. I have commercial
programs now that use superscripts in various labels, but
I don't know if they were developed with MS products.

Any suggestions how to include superscripts in text?
Thanks for help!

Craig Bartels

Nov 15 '05 #2
Thanks a lot for this. It gave me great ideas on doing
other things also.

But I was hoping that there was a far simpler way since I
have to use so many superscripts & subscripts in text on
forms. I'm sure there are lots of others with the same
problem. If anybody else has another way of handling
this I would sure appreciate hearing about it.

Thanks again.
Craig

-----Original Message-----
Your solution most likely lies with owner drawn combo boxes. With those youbasically take over the drawing of each item in the dropdown list.CodeProject has an article showing an example of owner- drawn combobox:
http://www.codeproject.com/cs/combob...rdrawncombobox ..asp
With full control over the drawing you can use your own standard forcontrolling font within a string. You could devise a certain string patternthat signifies subscripts, e.g. "ft#ss<3>", where whenever you encounter the#ss keyword you would use a superscripted font.

It is not really easy but with owner drawn comboboxes you could take fullcontrol of each display line.

"Craig Bartels" <cs****@attglobal.net> wrote in message
news:06****************************@phx.gbl...
I'm using standard ComboBox for dropdown lists. I'm
putting units such as area & volume into the text, so I
need superscripts, e.g., ft3, in2, etc. I have commercial programs now that use superscripts in various labels, but I don't know if they were developed with MS products.

Any suggestions how to include superscripts in text?
Thanks for help!

Craig Bartels

.

Nov 15 '05 #3

Hi Craig,

Based on my understanding, you want to implement superscript and subscript
in ComboBox in .Net.
Actully, there is not a simple way to do this, the only way is using
Owner-Draw just as Robert suggested.
For your situation, you need do this frequently, I think maybe you can
design a good encapsulate for this and then you can reuse it in many places.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #4
OK. Maybe comboBox control built around the RichTextBox
will be in the next version. But thanks much for those
who responded & ideas!
-----Original Message-----

Hi Craig,

Based on my understanding, you want to implement superscript and subscriptin ComboBox in .Net.
Actully, there is not a simple way to do this, the only way is usingOwner-Draw just as Robert suggested.
For your situation, you need do this frequently, I think maybe you candesign a good encapsulate for this and then you can reuse it in many places.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
.

Nov 15 '05 #5

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

Similar topics

3
by: vgrssrtrs | last post by:
<html> <head> <script language="JavaScript"> <!-- /* *** Multiple dynamic combo boxes *** by Mirko Elviro, 9 Mar 2005 *** ***Please do not remove this comment
1
by: FZ | last post by:
Hi Gang, I was wondering if a generous person might be able to walk me through what I believe is a pretty simple task. I actually have significant Access experience, but I haven't done it in...
0
by: Krisa | last post by:
Hello all, I just discovered something (stop me if you've heard this before....) that was causing me a significant performance hit when opening a form with subforms. To speed up loading the...
4
by: meganrobertson22 | last post by:
Hi Everyone- I have a question about how to add and then use the "All" selection in a combo box. I am trying to figure out how to: (1) add "All" as a selection to a combo box and then (2)...
0
by: Tom | last post by:
I have some very strange issues with combo boxes on a tab control. Here's the scenario: I have a Windows Forms form that has a tab control on it, with two (2) tabs. Tab 2 happens to have a number...
6
by: Dave | last post by:
I want to put the information that the user selects in my combo boxes into a subform that lies on the same form as the combo boxes. Thanks for your help already, Dave
1
by: Dave | last post by:
Hello all, First I'd like to apologize...This post was meant to be put in my previous post, but I tried many times without success to reply within my previous post. Now here goes... I have a...
2
by: Dave | last post by:
I have 3 tables of information feeding into 4 combo boxes on my main form (DR Form). I have as many list boxes (acting as text boxes) as there are fields in each one of the 3 tables. Once...
2
by: someshbakliwal | last post by:
Hi, I have created some autopopulating combo boxes on my HTML page (script- Javascript). so these combo boxes are autopopulated with choices made in previous combo boxes. The problem I am facing is...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.