Need help with VB
Posted 22 April 2006 - 02:18 PM
Posted 23 April 2006 - 05:47 PM
this is what I tried:
Private Sub vk_return_KeyDown()
Edited by stettybet0, 23 April 2006 - 05:51 PM.
Posted 23 April 2006 - 11:15 PM
Make a command button and set its properties so that "Defualt" is "true", put your coding in the command button. At runtime when you press enter it will automaticaly press the command buttone.
For Intrest sake: How To Set Exit Button.
Also you can use the "Esc" button on your keyboard to activate a button. Add a command button and set its "Cancel" property to "true" now when you press "Esc" the command button will be pressed.
Cool, I hope this worked for you. Let me know. Cool
Posted 24 April 2006 - 09:11 AM
to your first question: centering a control on a form has to be done manually, but its easy maths, so it should not be difficult. Subtract width of control from width of form and divide by two.
Your second question. Do this:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyReturn Then ... End If End Sub
Posted 24 April 2006 - 02:40 PM
Posted 24 April 2006 - 02:51 PM
By the way, I wonder where you get those Geek In Training etc. ranks? Just out of interest
Posted 24 April 2006 - 03:12 PM
And you get Geek In Training ranks by joining GeekU!
Posted 25 April 2006 - 02:30 PM
Private Sub NewToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewToolStripMenuItem.Click WebBrowser1.Navigate("about:blank", "_blank") End Sub
Any help would be greatly appreciated... as would WHERE DID YOU FIND THIS INFO!?!?
Edited by stettybet0, 25 April 2006 - 02:31 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users