Hi i use VB 6.0
i wantto write 2^4 in the textboxes or rich textboxes

but not like that 2^4 i want like that picture

i wantto write in textbox or richtextbox like that picture
i wait your helps

http://akifaltundal.net/tur/images/stories/matematik_afisler/kucuk/matematik_afis_-2%5E4esitdegil(-2)%5E4_3508x2481_428kb.gif

The text box does not directly support superscript or subscript but with a little know property of the RTB you can accomplish what you want...

Or at least most of it...

Option Explicit

Private Sub Form_Load()
RTB.Text = ""
RTB.SelStart = 0
RTB.SelText = "2"
RTB.SelStart = Len(RTB.TextRTF)
RTB.SelCharOffset = 60
RTB.SelText = "7"
RTB.SelCharOffset = 0
End Sub

As for the not equals sign, you are going to need to see if a font has that character in its list (I check arial, courier new, webdings, and all three wingdings...) or you might be able to insert a small gif at that point...

Good Luck

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.