14-01-2008, 09:59 PM
[Edit] Removed crazy explination. Enjoy the easy to follow tut.
If you want to replace it, and use a text box...
Lemme open up my MSE...
Alright.
Delete the scroll bar for Strength[scrlSTR], while in design mode
Now, draw a text box where the scroll bar would be.
Name it txtSTR.
Switch to code view[basically, double click anywhere on any form].
Now, Under Sub NPCEditorOK you want to find this code
And make it
Rince and repeat for each scroll bar.
If you get any problems, please ask. Man, that tut was easier to write than I thought.
Also, I enjoy helping people learn VB. If you actually want to understand what any of that does, don't hesitate to ask.
I'm glad you like it here. I hated it until I started PDoA.
If you want to replace it, and use a text box...
Lemme open up my MSE...
Alright.
Delete the scroll bar for Strength[scrlSTR], while in design mode
Now, draw a text box where the scroll bar would be.
Name it txtSTR.
Switch to code view[basically, double click anywhere on any form].
Now, Under Sub NPCEditorOK you want to find this code
Code:
Npc(EditorIndex).STR = frmNpcEditor.scrlSTR.Value
And make it
Code:
If IsNumeric(frmNPCEditor.txtSTR.Text)
Npc(EditorIndex).STR = frmNPCEditor.txtSTR.Text
End If
Rince and repeat for each scroll bar.
If you get any problems, please ask. Man, that tut was easier to write than I thought.
Also, I enjoy helping people learn VB. If you actually want to understand what any of that does, don't hesitate to ask.
I'm glad you like it here. I hated it until I started PDoA.
