|
-
Jan 26th, 2009, 03:02 AM
#1
Thread Starter
Lively Member
-
Jan 26th, 2009, 05:31 AM
#2
Re: How to insert symbol, subscript, superscripts and mathematics equation in VB form
you can use equation editor in an ole object
check out http://www.dessci.com/en/products/ee...htm#other_apps
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Jan 26th, 2009, 10:13 AM
#3
Re: How to insert symbol, subscript, superscripts and mathematics equation in VB form
Removed due to double post.
Last edited by CDRIVE; Jan 26th, 2009 at 04:28 PM.
Reason: Double post
<--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
If topic has been resolved, please pull down the Thread Tools & mark it Resolved.
Is VB consuming your life, and is that a bad thing?? 
-
Jan 26th, 2009, 10:16 AM
#4
Re: How to insert symbol, subscript, superscripts and mathematics equation in VB form
I like what Westconn1 suggested as it seems quite powerful. If you decide to build from scratch then the Chr(n) function returns the ASCII chr. The Symbol font has many of the fonts you need and it's what I used in this example.
Code:
Option Explicit
' Set Text1.Multiline = True in the Properties window
Private Sub Form_Load()
Dim i As Integer
Form1.WindowState = vbMaximized
Form1.Show
With Text1
.Font = "Symbol"
.FontSize = 14
.FontBold = True
.Text = ""
.Height = Form1.Height
.Width = Form1.Width
.Left = Form1.Left
.Top = Form1.Top
End With
For i = 1 To 255
Text1.Text = Text1.Text & Chr(i)
Next i
End Sub
<--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
If topic has been resolved, please pull down the Thread Tools & mark it Resolved.
Is VB consuming your life, and is that a bad thing?? 
-
Jan 26th, 2009, 11:20 AM
#5
Thread Starter
Lively Member
Re: How to insert symbol, subscript, superscripts and mathematics equation in VB form
-
Jan 26th, 2009, 11:34 AM
#6
Re: [RESOLVED] How to insert symbol, subscript, superscripts and mathematics equation in VB form
CDRIVE
Love your loop idea
I use CharacterMap alot (the program that comes with Windows),
but it is kind of a pain to mentally translate the Hex designation
to a numeric (1-255) designation. I could see one creating a companion
app using your loop idea to enable a mouseover to return a numeric
value for use with the Chr function.
Spoo
-
Jan 26th, 2009, 03:44 PM
#7
Re: [RESOLVED] How to insert symbol, subscript, superscripts and mathematics equation in VB form
I could see one creating a companion
app using your loop idea to enable a mouseover to return a numeric
value for use with the Chr function.
i have been using a small app like that (not mouseover, but cursor position) to find any non printing characters in any string, displays the ascii value in separate textbox
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Jan 26th, 2009, 05:51 PM
#8
-
Jan 26th, 2009, 05:53 PM
#9
Re: [RESOLVED] How to insert symbol, subscript, superscripts and mathematics equation in VB form
 Originally Posted by westconn1
i have been using a small app like that (not mouseover, but cursor position) to find any non printing characters in any string, displays the ascii value in separate textbox
West, are you going to post it?
<--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
If topic has been resolved, please pull down the Thread Tools & mark it Resolved.
Is VB consuming your life, and is that a bad thing?? 
-
Jan 26th, 2009, 08:51 PM
#10
Re: [RESOLVED] How to insert symbol, subscript, superscripts and mathematics equation in VB form
will do later, from my computer, but it is a pretty simple thing i did some time ago
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Jan 26th, 2009, 09:38 PM
#11
Re: [RESOLVED] How to insert symbol, subscript, superscripts and mathematics equation in VB form
CDRIVE
Nice. Thanks... will check out later (kinda in the middle of something right now).
Spoo
-
Jan 26th, 2009, 10:41 PM
#12
Thread Starter
Lively Member
Re: [RESOLVED] How to insert symbol, subscript, superscripts and mathematics equation in VB form
Hi i had tried the using equation editor in an ole object
but the symbol is too big in size and the subscript and superscript is too far from the letter.
Is there any method of control the font size?
-
Jan 27th, 2009, 12:13 AM
#13
Re: [RESOLVED] How to insert symbol, subscript, superscripts and mathematics equation in VB form
 Originally Posted by greatgerd
Hi i had tried the using equation editor in an ole object
but the symbol is too big in size and the subscript and superscript is too far from the letter.
Is there any method of control the font size?
Are you referring to the editor that Westconn1 supplied a link to?
<--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
If topic has been resolved, please pull down the Thread Tools & mark it Resolved.
Is VB consuming your life, and is that a bad thing?? 
-
Jan 27th, 2009, 02:49 AM
#14
Re: [RESOLVED] How to insert symbol, subscript, superscripts and mathematics equation in VB form
Hi i had tried the using equation editor in an ole object
but the symbol is too big in size and the subscript and superscript is too far from the letter.
Is there any method of control the font size?
i would suggest using equation editor in word, to start, till you find out what some of the options are, you can change sizes for super and subscripts, also change kerning to move things closer together also define new sizes
if you are using similar equations regularly you can save in a word document or similar then just copy to your app
you can also change spacing by rescaling the object, by width or height
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Jan 27th, 2009, 05:43 PM
#15
Thread Starter
Lively Member
Re: [RESOLVED] How to insert symbol, subscript, superscripts and mathematics equation in VB form
Yep I am reffering to WestConn pete reply.
I don't know much about VB6, So I choose the easy method hehe..
I am using Microsoft Office 2007. so Mic. Words is different.I can't edit anyting.
but I still can use Mic.Publisher to do the editting and kerning.
Thanks a lot
-
Jan 28th, 2009, 03:20 AM
#16
Re: [RESOLVED] How to insert symbol, subscript, superscripts and mathematics equation in VB form
@ cdrive
West, are you going to post it?
decided to post to codebank, rather than in this thread http://www.vbforums.com/showthread.p...50#post3431550
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|