chuchoide Posted January 15, 2011 Author Share Posted January 15, 2011 Hello. How can I make it in ES to change the Admin Panel to open with A instead of F1? or CTRL + A. Link to comment Share on other sites More sharing options...
Timmah Posted January 15, 2011 Share Posted January 15, 2011 It interesting your title is programmer and you dont know about KeyDown. >.>Anywho, try this.Make sure your form has KeyPreview set to True in the Properties menu.I'm not sure how to to CTRL a, but I will use the Escape key as a base.```Private Sub YourFormNameHere_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyEscape Then'Enter the code here you want excucuted when the Escape is pressed. End IfEnd Sub``` Link to comment Share on other sites More sharing options...
Lavos Posted January 15, 2011 Share Posted January 15, 2011 @Timmah:> It interesting your title is programmer and you dont know about KeyDown. >.>> Anywho, try this.> > Make sure your form has KeyPreview set to True in the Properties menu.> I'm not sure how to to CTRL a, but I will use the Escape key as a base.> > ```> Private Sub YourFormNameHere_KeyDown(KeyCode As Integer, Shift As Integer)> If KeyCode = vbKeyEscape Then> 'Enter the code here you want excucuted when the Escape is pressed.> End If> End Sub> > ```It might be his dream goal to be a real programmer. Link to comment Share on other sites More sharing options...
chuchoide Posted January 15, 2011 Author Share Posted January 15, 2011 So it would be:If KeyCode = EscapeKey ThenMe.Visible = TrueEnd Sub?And I know my title is programmer, it used to be Begginer programmer, but I never said I was good programmer in that title :) but whatever. Link to comment Share on other sites More sharing options...
DshWinchester Posted January 15, 2011 Share Posted January 15, 2011 you are a programmer ._____.if keycode= vbkeya thenif getplayeraccess(myindex) >0 then picadmin.visible= not picadmin.visibleend ifthe buttons is always vbkeyvbkeyB,vbkeyf1,etc.. Link to comment Share on other sites More sharing options...
chuchoide Posted January 15, 2011 Author Share Posted January 15, 2011 thanks, i just edited the sub that if u press f1 it opens admin panel. thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now