Need help with VB
Started by
stettybet0
, Apr 22 2006 02:18 PM
#1
Posted 22 April 2006 - 02:18 PM
#2
Posted 23 April 2006 - 05:47 PM
nevermind about this question, but I do have a new one. how do you make it so if you hit the Enter key (on your keyboard) an action will be done?
this is what I tried:
this is what I tried:
Private Sub vk_return_KeyDown()
Edited by stettybet0, 23 April 2006 - 05:51 PM.
#3
Posted 23 April 2006 - 11:15 PM
Hey there stettybet0, sorry for the late reply.
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
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
#4
Posted 24 April 2006 - 09:11 AM
Hello Mr. Ramstein fan ,
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:
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
#5
Posted 24 April 2006 - 02:40 PM
Hai Mac's solution worked. I tryed yours spike hacker, but i dont know how to set the properties you talked about.
#6
Posted 24 April 2006 - 02:51 PM
It's all in the Property window. Where you set the name for your controls etc.
By the way, I wonder where you get those Geek In Training etc. ranks? Just out of interest
By the way, I wonder where you get those Geek In Training etc. ranks? Just out of interest
#8
Posted 25 April 2006 - 02:30 PM
Okay, so now I am working to get my basic menu buttons working (New, Open, Save, Save As, Print, Print Preview, Cut, Copy, Edit, Select All) and i honestly have no idea. I almost got New (as in open a new window of my internet browser), but instead of opening a new window of my browser, it opens a window of Microsoft Internet Explorer...
Any help would be greatly appreciated... as would WHERE DID YOU FIND THIS INFO!?!?
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.
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users