As the title says, i want to make a mIRC like interface.
This is what i have right now: one form called Form1, one textbox called Text1 and another one called "main".
Dim TMPtxt As String * 50
Private Sub TextTest()
Dim tt As String
tt = Text1.Text
Select Case main
Case "whatever"
Text1 = tt & "Whatever event"
''' more events '''
Case Else
Text1 = tt & "I don't understand. "
End Select
End Sub
Private Sub main_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn Then TMPtxt = main
If KeyCode = vbKeyUp Then main = TMPtxt
End Sub
Private Sub main_Keyup(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn Then
TextTest
main = ""
End If
End Sub
Ill be very short with the problems i encountered so far.
First: when the program starts, the Text1 textbox is selected by default and it's playing with my nerves. I have to select the "main" every time.
Second: when i press left ARROW, or down ARROW, the cursor moves like i press space... weird.
Third: when the Text1 textbox (its the big place where all the text is printed) needs to activate the Vertical Scrollbar (activated, and the multilines is also active) the cursor moves in such a way that i can't see what was typed recently and i have to scroll Text1 down. Very unpleasant.
I know the problems are very simple, but i simply can't figure them out.