Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

How to handle keypress on a custom theme

Hello guys.
So today i need to pass a level and understand how to add in a custom theme the option to catch keypress.

What im trying to do is use the keypress option on the main form.
But if it isn't coded inside the theme it will not work.

Any help will be accepted. Thanks!
There's not enough information here, catch keypress within a control on the form or the form itself? It depends on your controls too.
Getting Started: C/C++
[C/C++/.NET/x86 ASM - Automation Programmer]
We can't help you out if we don't know what kind of theme you are using and what funcs is that theme exactly using ...
Just use the normal global form keypress function, should work fine.
[Image: DreddSig.gif]
(Mar 7, 2019 10:11 PM)0xDEAD10CC Wrote:  There's not enough information here, catch keypress within a control on the form or the form itself? It depends on your controls too.

So let me explain it again. I have the theme. Keypress inside the form is not working for the themes textbox. The theme is downloaded from hf and it's a little bit changed. The keypress on the form application is not firring up at all. That's something i have inside the theme.
[Image: F1J20bY.png]
And im asking, saying. Do i need a special keypress handler for the textbox keypress to respond inside the main form ?
( Also whatever i code inside the themes code, lets say inside a textbox keypress eventhandler is working. But if i code it inside the forms textbox keypress it is not. And i use the same code. )

(Mar 8, 2019 10:59 AM)Dredd Wrote:  Just use the normal global form keypress function, should work fine.

It is not working

(Mar 8, 2019 01:23 AM)Vexallus Wrote:  We can't help you out if we don't know what kind of theme you are using and what funcs is that theme exactly using ...

I think this post is my answer for you.
You need a handler for the actual control, doesn't make sense to be using the one for the container of the control.
Getting Started: C/C++
[C/C++/.NET/x86 ASM - Automation Programmer]
(Mar 10, 2019 11:44 AM)0xDEAD10CC Wrote:  You need a handler for the actual control, doesn't make sense to be using the one for the container of the control.

I know, what im saying is i don't know what to code inside there, does the keypress need to return a value for it to work?

For now i have coded this inside the theme:
[Image: 1b5R2TF.png]

But as i said i don't want it coded there because is taking effect on all the textboxes.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by agoSwitchDec 27, 2021 08:53 AM 6 295 Dec 27, 2021 08:53 AM
Last Post: oje28830
[.NET] by ChristmasNoobJan 28, 2019 03:21 PM 1 165 Jan 28, 2019 03:21 PM
Last Post: HeadHoncho
[C#] by RinqtMay 1, 2017 01:45 AM 5 213 May 1, 2017 01:45 AM
Last Post: mfqn