Mar 3, 2012 11:48 PM
(This post was last modified: Mar 4, 2012 12:55 AM by Scum.)
PLEASE LOOK AT MY POST BELOW I HAVE A NEW QUESTION
![[Image: h7l5r.gif]](https://i.imgur.com/h7l5r.gif)
|
.NET
[Updated Question] Extremely noob question [Updated Question] |
|
Mar 3, 2012 11:48 PM
(This post was last modified: Mar 4, 2012 12:55 AM by Scum.)
PLEASE LOOK AT MY POST BELOW I HAVE A NEW QUESTION
![]()
My suggestion would either be an integer or a boolean value and use a do-while loop.
Code Boolean booleanLoopCode booleanLoop = falseObviously this isn't, or shouldn't be real code. It is just an idea to get you started. ~Virtuous (Jan 16, 1970 02:40 AM)Reject Wrote: Use a timer. Then when the button is press just do I didn't plan on making mine better than yours. I just think that its cheap of you asking $10 for a free code. Thanks for the help though. ![]() (Jan 16, 1970 02:40 AM)Reject Wrote: Use a timer. Then when the button is press just doIt's people like you that deter people from coding "you're not going to be able to code one better than me" sound's like your butt-hurt. (Jan 16, 1970 02:40 AM)Reject Wrote: Use a timer. Then when the button is press just do lol .. someone thinks that he is too smart..! i salute you the great programmer..! the best ! LMAO! 😁
Ok I now need one last thing then im releasing the program, how do I assing the F1 key to start and the F2 Key to stop. I tried using this code for F1:
Private Sub Button1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Button1.KeyPress If e.KeyChar = Microsoft.VisualBasic.ChrW(Keys.F1) Then Timer1.Enabled = True But it did not work : \ Any suggestions? ![]()
Mar 4, 2012 01:26 AM
(This post was last modified: Mar 4, 2012 01:29 AM by tokzikate.)
Use GetAsyncKeyState, like this:
Code Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer |
|
|
| Possibly Related Threads... | |||
| Thread / Author | Replies | Views | Last Post |
| [Python] by SIM-2362662Jan 12, 2020 05:30 PM | 5 | 216 |
Jan 12, 2020 05:30 PM Last Post: Riԁdle |
| [C#] by ДжеймсFeb 9, 2015 06:44 AM | 17 | 969 |
Feb 9, 2015 06:44 AM Last Post: Джеймс |
| [C] by ๖ۣۜOpulenceJul 23, 2014 12:54 PM | 2 | 402 |
Jul 23, 2014 12:54 PM Last Post: ๖ۣۜOpulence |