Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info.
SEARCH THE FOXITE.COM VISUAL FOXPRO FORUM ARCHIVES
Please enter one or more search terms:
search (case insensitive):


order by:


sort:
SEARCH RESULT Results 1126 - 1150 of 1722 for nkeycode. (0.1404009 seconds)


RE: nkeycode
Thread ID: 71514 Boudewijn Lutgerink RE: nkeycode hi guys, > I want to disable the ctrl+alt+del function on the form. I want to code it using the keypress event, nkeycode: > Anybody who can help me? > CHRISTIAN M. TABLIGAN CSA-B, STUDENT I think mz gave you an answer already. I have another question for you. Why would you want to influence the behavior of a PERSONAL computer. Boudewijn Lutge®ink My Blog is here I consider Visual FoxPro as a white light, white light is separated in different colors by sending it through prisms, Those prisms might be companies like MS, hence the existence of other tools. they lack, however, the white light of the fox! (free to Arvo Pärt)

RE: nkeycode
Thread ID: 71514 Christian Tabligan RE: nkeycode hi guys, > I want to disable the ctrl+alt+del function on the form. I want to code it using the keypress event, nkeycode: > Anybody who can help me? > CHRISTIAN M. TABLIGAN CSA-B, STUDENT > I think mz gave you an answer already. I have another question for you. Why would you want to influence the behavior of a PERSONAL computer. Sir: I am developing my own PC Lock. But every time I run this program, a friend of mine pressing ctrl+alt+del to exit this program and it made me disappointed. My PC Lock have a password without control bar and title bar so that no body could exit from it. Thank You. Boudewijn Lutge®ink My Blog

RE: nkeycode
Thread ID: 71514 Ken Murphy RE: nkeycode hi guys, > I want to disable the ctrl+alt+del function on the form. I want to code it using the keypress event, nkeycode: > Anybody who can help me? > CHRISTIAN M. TABLIGAN CSA-B, STUDENT Be VERY careful disabling this function. If a user's computer gets into trouble, you might have to be there to fix it. In my situation, it would be a very long drive to places like Haiti or India. Also, we have people working at night and on the weekends. I like my evenings and weekends off - I don't want to come in unless absolutely necessary. It would be better to train the user to operate the system correctly. Ken

RE: nkeycode
Thread ID: 71514 Boudewijn Lutgerink RE: nkeycode hi guys, > I want to disable the ctrl+alt+del function on the form. I want to code it using the keypress event, nkeycode: > Anybody who can help me? > CHRISTIAN M. TABLIGAN CSA-B, STUDENT > I think mz gave you an answer already. I have another question for you. Why would you want to influence the behavior of a PERSONAL computer. Sir: I am developing my own PC Lock. But every time I run this program, a friend of mine pressing ctrl+alt+del to exit this program and it made me disappointed. My PC Lock have a password without control bar and title bar so that no body could exit from it. > Thank You. > > Boudewijn Lutge®ink My

RE: nkeycode
Thread ID: 71514 John Terburg RE: nkeycode hi guys, > I want to disable the ctrl+alt+del function on the form. I want to code it using the keypress event, nkeycode: > Anybody who can help me? > CHRISTIAN M. TABLIGAN CSA-B, STUDENT > I think mz gave you an answer already. I have another question for you. Why would you want to influence the behavior of a PERSONAL computer. Sir: I am developing my own PC Lock. But every time I run this program, a friend of mine pressing ctrl+alt+del to exit this program and it made me disappointed. My PC Lock have a password without control bar and title bar so that no body could exit from it. > Thank You. > > Boudewijn Lutge®ink My Blog is here

RE: nkeycode
Thread ID: 71514 Christian Tabligan RE: nkeycode Boudewijn Lutge®ink My Blog is here I consider Visual FoxPro as a white light, white light is separated in different colors by sending it through prisms, Those prisms might be companies like MS, hence the existence of other tools. they lack, however, the white light of the fox! (free to Arvo Pärt) > So the next step is to block the ALT+F4 keycombination? Or is it that the user will click on the upperright corner X to close the application, are you going to block that too? > Maybe learning the user to close down applications is better than wasting time to outsmart them. > Sir: The control bar and the title bar is visible to the user. All they have

RE: nkeycode
Thread ID: 71514 Boudewijn Lutgerink RE: nkeycode The problem is, the user used to press the ctrl+alt+del botton so that can exit the program. > I think the problem is that the user is not trained well to handle this application. Maybe giving that some attention will solve the problem. I use this dreaded keycombination often. So I can go to the performance tab to see how my apps react and how they use resources. Recently I had an application on my machine (Intervideo Winrip) that used ctrl+Functionkey to do it's work. Leaving me with a problem when I design menus in fox. I could not get the shortcut keys working. I thus abandoned this winrip app. In my feeling I am not so much different from other

RE: nKeyCode and DblClick
Thread ID: 347061 Tom Saddul RE: nKeyCode and DblClick Form KeyPress Event > LPARAMETERS nKeyCode, nShiftAltCtrl > IF nKeyCode = -1 OR nKeyCode = -2 && F2 or F3 RETURN ENDIF > > Problem : User double click instead of pressing any key nKeyCode value .F. how handle this There is DblClick method of the form or specific control where you can handle such an event.

RE: nkeycode are same
Thread ID: 312549 Martina Jindrová RE: nkeycode are same What is your code in KeyPress Event? Did you check variable NSHIFTALTCTRL? MartinaJ Dear Expert > I face a problem with Ctrl + D and Left Arrow. nkeycode of Both are same i.e. 4. I Press Left Arrow, then fire Ctrl + D. > I Write my Code in Form's Keycode Method. Any have an Idea of distinguish both > Please Help > Regard > Suresh Ramtekkkar JID: gorila@dione.zcu.cz

RE: nkeycode are same
Thread ID: 312549 Manoj Patel RE: nkeycode are same Dear Expert > I face a problem with Ctrl + D and Left Arrow. nkeycode of Both are same i.e. 4. I Press Left Arrow, then fire Ctrl + D. > I Write my Code in Form's Keycode Method. Any have an Idea of distinguish both > Please Help > Regard > Suresh Ramtekkkar Dear Suresh Many keys are return same value see this link http://www.ousob.com/ng/sum87/ng82c60.php Thanks & Regards Manoj Patel

RE: nkeycode are same
Thread ID: 312549 Suresh Ramtekkar RE: nkeycode are same What is your code in KeyPress Event? Did you check variable NSHIFTALTCTRL? > MartinaJ > Dear Expert > I face a problem with Ctrl + D and Left Arrow. nkeycode of Both are same i.e. 4. I Press Left Arrow, then fire Ctrl + D. > I Write my Code in Form's Keycode Method. Any have an Idea of distinguish both > Please Help > Regard > Suresh Ramtekkkar > > > JID: gorila@dione.zcu.cz Thanks Martina I will Check NSHIFTALTCTRL, & my problem is Solved Thanks again Regards Suresh Ramtekkar

RE: No InputMask for EditBox
Thread ID: 129407 Eric den Doop RE: No InputMask for EditBox Dear Experts, > I would like to know how to avoide entry of special characters like *,#,@ etc in Edit box, as there is no InputMask for the same. > Thanx in advance > Regards Sunil. > Nobody is perfect I'm nobody I think there are other options, but this quick and dirty code seems to do the trick: * editbox.KeyPress LPARAMETERS nKeyCode, nShiftAltCtrl IF nKeyCode = 64 && "@" KEYBOARD '{BACKSPACE}' ENDIF -- Eric den Doop www.foxite.com - The Home Of The Visual FoxPro Experts

RE: No InputMask for EditBox
Thread ID: 129407 Vladimir Zhuravlev RE: No InputMask for EditBox I woud write nodefault insead of KEYBOARD '{BACKSPACE}' in your code Dear Experts, > I would like to know how to avoide entry of special characters like *,#,@ etc in Edit box, as there is no InputMask for the same. > Thanx in advance > Regards Sunil. > Nobody is perfect I'm nobody > > I think there are other options, but this quick and dirty code seems to do the trick: > * editbox.KeyPress LPARAMETERS nKeyCode, nShiftAltCtrl IF nKeyCode = 64 && "@" KEYBOARD '{BACKSPACE}' ENDIF -- Eric den Doop www.foxite.com - The Home Of The Visual FoxPro Experts www.foxclub.ru domain owner, VFP-MVP, PHD

RE: No InputMask for EditBox
Thread ID: 129407 Eric den Doop RE: No InputMask for EditBox I woud write nodefault insead of KEYBOARD '{BACKSPACE}' * editbox.KeyPress LPARAMETERS nKeyCode, nShiftAltCtrl IF nKeyCode = 64 && "@" NODEFAULT ENDIF You're right. NODEFAULT is a better command in this case. -- Eric den Doop www.foxite.com - The Home Of The Visual FoxPro Experts

RE: No InputMask for EditBox
Thread ID: 129407 Sunil Sawant RE: No InputMask for EditBox I woud write nodefault insead of KEYBOARD '{BACKSPACE}' > * editbox.KeyPress LPARAMETERS nKeyCode, nShiftAltCtrl IF nKeyCode = 64 && "@" NODEFAULT ENDIF > You're right. NODEFAULT is a better command in this case. -- Eric den Doop www.foxite.com - The Home Of The Visual FoxPro Experts Hi Eric Thank you so much Eric for quick response. Regards Sunil. Nobody is perfect I'm nobody

RE: No InputMask for EditBox
Thread ID: 129407 Sunil Sawant RE: No InputMask for EditBox I woud write nodefault insead of KEYBOARD '{BACKSPACE}' > * editbox.KeyPress LPARAMETERS nKeyCode, nShiftAltCtrl IF nKeyCode = 64 && "@" NODEFAULT ENDIF > You're right. NODEFAULT is a better command in this case. -- Eric den Doop www.foxite.com - The Home Of The Visual FoxPro Experts Hi sorry to bother you again, I'm curious to know, using inlist() with above statment is valid or invalid ? coz when I tried using it, its giving me error "Too many arguments" e.g. I want the edit box to accept only charecters (a-z) and numbers(0-9) nothing else. if !inlist(nKeyCode,48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112

RE: No InputMask for EditBox
Thread ID: 129407 tushar RE: No InputMask for EditBox I woud write nodefault insead of KEYBOARD '{BACKSPACE}' > * editbox.KeyPress LPARAMETERS nKeyCode, nShiftAltCtrl IF nKeyCode = 64 && "@" NODEFAULT ENDIF > You're right. NODEFAULT is a better command in this case. -- Eric den Doop www.foxite.com - The Home Of The Visual FoxPro Experts > > Hi sorry to bother you again, I'm curious to know, using inlist() with above statment is valid or invalid ? coz when I tried using it, its giving me error "Too many arguments" e.g. I want the edit box to accept only charecters (a-z) and numbers(0-9) nothing else. > if !inlist(nKeyCode,48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112

RE: No InputMask for EditBox
Thread ID: 129407 Eric den Doop RE: No InputMask for EditBox I want the edit box to accept only charecters (a-z) and numbers(0-9) nothing else. Try the following: LPARAMETERS nKeyCode, nShiftAltCtrl IF NOT ( BETWEEN(nKeyCode, 48, 57) OR ; BETWEEN(nKeyCode, 65, 90) OR ; BETWEEN(nKeyCode, 97, 122) ) NODEFAULT ENDIF Note that this code disables special keys like spacebar and backspace as well. -- Eric den Doop www.foxite.com - The Home Of The Visual FoxPro Experts

RE: No InputMask for EditBox
Thread ID: 129407 Sunil Sawant RE: No InputMask for EditBox I want the edit box to accept only charecters (a-z) and numbers(0-9) nothing else. > Try the following: > LPARAMETERS nKeyCode, nShiftAltCtrl IF NOT ( BETWEEN(nKeyCode, 48, 57) OR ; BETWEEN(nKeyCode, 65, 90) OR ; BETWEEN(nKeyCode, 97, 122) ) NODEFAULT > ENDIF > Note that this code disables special keys like spacebar and backspace as well. -- Eric den Doop www.foxite.com - The Home Of The Visual FoxPro Experts Thank you everybody. Regards Sunil Nobody is perfect I'm nobody

RE: No spaces in a field
Thread ID: 232540 tushar RE: No spaces in a field Hello! I have a login form with 1 textbox representing the user and 1 textbox representing the password. > In the user field when I press the right arrow the cursor moves one space. > I wrote in the KeyPress event > IF nkeycode=4 NODEFAULT ENDIF > Now the cursor doesn't move when I press the right arrow, but I still want it to move when it's not on the end of the user name. > Also when I am at the beginning of the user name and I press the left arrow the tab moves on other buttons. I would like the cursor to stay there until I press tab or select another button. > Thank You! Check the SelStart property of the textbox. IF nkeycode

RE: No spaces in a field
Thread ID: 232540 Danila Ionut RE: No spaces in a field Hello! I have a login form with 1 textbox representing the user and 1 textbox representing the password. > In the user field when I press the right arrow the cursor moves one space. > I wrote in the KeyPress event > IF nkeycode=4 NODEFAULT ENDIF > Now the cursor doesn't move when I press the right arrow, but I still want it to move when it's not on the end of the user name. > Also when I am at the beginning of the user name and I press the left arrow the tab moves on other buttons. I would like the cursor to stay there until I press tab or select another button. > Thank You! > Check the SelStart property of the textbox. > IF nkeycode

RE: NODEFAULT
I use on Keypress event of my forms to give users easy escape: Lparameters nKeyCode, nShiftAltCtrl If nKeyCode = 27 Thisform.Release Endif As you can see, I simply trap the key that is being pressed

RE: NODEFAULT
Thread ID: 314390 Cetin Basoz RE: NODEFAULT Why is it that when I place code in the KEYPRESS event that I need to suppress the inherited code with NODEFAULT but if I place code in the CLICK event, I do not have to use NODEFAULT? > What e...

RE: NODEFAULT
I use on Keypress event of my forms to give users easy escape: > Lparameters nKeyCode, nShiftAltCtrl If nKeyCode = 27 Thisform.Release Endif > As you can see, I simply trap the key that is being pressed

RE: NODEFAULT
Thread ID: 314390 Tony Vignone RE: NODEFAULT Why is it that when I place code in the KEYPRESS event that I need to suppress the inherited code with NODEFAULT but if I place code in the CLICK event, I do not have to use NODEFAULT? > What ...


Result Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69