Click here to Skip to main content
15,896,453 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionFind Window Pin
Prasadsm31-Mar-09 1:38
Prasadsm31-Mar-09 1:38 
AnswerRe: Find Window Pin
Eddy Vluggen31-Mar-09 1:56
professionalEddy Vluggen31-Mar-09 1:56 
GeneralRe: Find Window Pin
Prasadsm31-Mar-09 2:01
Prasadsm31-Mar-09 2:01 
GeneralRe: Find Window Pin
Eddy Vluggen31-Mar-09 2:35
professionalEddy Vluggen31-Mar-09 2:35 
QuestionDelete Lines in Text File Pin
vijay248230-Mar-09 23:37
vijay248230-Mar-09 23:37 
AnswerRe: Delete Lines in Text File Pin
Prasadsm31-Mar-09 2:15
Prasadsm31-Mar-09 2:15 
AnswerRe: Delete Lines in Text File Pin
riced31-Mar-09 5:21
riced31-Mar-09 5:21 
QuestionI created a superscript in a rich text box but neeed to convert the same to caret sign in a text box Pin
gautamrajsaxena30-Mar-09 22:18
gautamrajsaxena30-Mar-09 22:18 
I am not a Programmer in fact i am amedical doctor a pediatrician by profession and do little bits in vb 6 out of my interest

Currently i wanted to create a math Solver in which the user input would as one would write on paper
My PROBLEM

here is the code now what i needed was to
1 get the same as typed in the rich text box into a textbox wich i want use for math parser
2.In the Textbox i wanted to have a caret sign("^")In the position i use the Up Arrow key in the Rich text box

<b>Need help Urgently </b>
Private Sub rtb1_KeyUp(KeyCode As Integer, Shift As Integer)
Me.KeyPreview = True
Dim SupEnt As Integer

Dim temp As Integer

SupEnt = rtb1.SelFontSize
temp = rtb1.SelCharOffset

Dim SelectionStart As String

Dim SelectionEnd As String

Dim selectedExp As String

Select Case KeyCode

Case vbKeyUp
rtb1.SelFontSize = SupEnt / 3 * 2
rtb1.SelCharOffset = temp + 100
rtb1.SelColor = vbRed
KeyCode = 0

Case vbKeyDown
rtb1.SelFontSize = SupEnt / 3 * 2
rtb1.SelCharOffset = temp - 100
rtb1.SelColor = vbGreen
rtb1.SelBold = True
KeyCode = 0

Case vbKeyLeft
'

Case vbKeyRight
rtb1.SelFontSize = 14
rtb1.SelCharOffset = 0
rtb1.SelColor = vbBlue
KeyCode = vbSpace

sText = rtb1.Text
sRight155 = Right$(sText, 1)
LastChar = Right$(sText, 1)
'
Clipboard.SetText rtb1.Text
myString = Clipboard.GetText
Text1.Text = Replace$(myString, LastChar, "^" + LastChar, 1, 1, vbTextCompare)

Clipboard.Clear





Case vbKeyReturn

End Select
End Sub
Questionplz help me to jump the return code to pass program check Pin
wgarnett30-Mar-09 21:37
wgarnett30-Mar-09 21:37 
AnswerRe: plz help me to jump the return code to pass program check Pin
Eddy Vluggen30-Mar-09 22:58
professionalEddy Vluggen30-Mar-09 22:58 
QuestionHow to configure ms access to allow lan connection in vb.net ???? Pin
JC.KaNNaN30-Mar-09 18:43
JC.KaNNaN30-Mar-09 18:43 
AnswerRe: How to configure ms access to allow lan connection in vb.net ???? Pin
_Damian S_30-Mar-09 19:12
professional_Damian S_30-Mar-09 19:12 
AnswerRe: How to configure ms access to allow lan connection in vb.net ???? Pin
Anubhava Dimri30-Mar-09 23:48
Anubhava Dimri30-Mar-09 23:48 
QuestionPopulating datagrid with array of xml files Pin
Jordan198230-Mar-09 12:14
Jordan198230-Mar-09 12:14 
AnswerRe: Populating datagrid with array of xml files Pin
Christian Graus30-Mar-09 15:30
protectorChristian Graus30-Mar-09 15:30 
QuestionDrowning! Pin
pack230-Mar-09 0:58
pack230-Mar-09 0:58 
AnswerRe: Drowning! Pin
Jon_Boy30-Mar-09 9:11
Jon_Boy30-Mar-09 9:11 
GeneralRe: Drowning! Pin
pack28-Apr-09 19:48
pack28-Apr-09 19:48 
AnswerRe: Drowning! Pin
Dave Kreskowiak30-Mar-09 9:27
mveDave Kreskowiak30-Mar-09 9:27 
AnswerRe: Drowning! Pin
Christian Graus30-Mar-09 15:29
protectorChristian Graus30-Mar-09 15:29 
GeneralRe: Drowning! Pin
EliottA31-Mar-09 2:21
EliottA31-Mar-09 2:21 
JokeRe: Drowning! Pin
0x3c031-Mar-09 6:42
0x3c031-Mar-09 6:42 
QuestionSave items to Database and get from datagrid Pin
Dave McCool30-Mar-09 0:54
Dave McCool30-Mar-09 0:54 
AnswerRe: Save items to Database and get from datagrid Pin
dan!sh 30-Mar-09 5:16
professional dan!sh 30-Mar-09 5:16 
GeneralRe: Save items to Database and get from datagrid Pin
Dave McCool30-Mar-09 7:51
Dave McCool30-Mar-09 7:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.