HelpHotkey Problem

Posts 115 of 15 · Page 1 of 1
Hotkey Problem
Hey I have made a VB project and I added a theme to it I also want to setup hotkeys but its says that 'PerformClick' is not a part of 'Projectname.Themebutton' is there anyway to fixthis??

But if I put a normal VB button in it will work just fine!

Any help will be appreciated!
Thank You in advance!
Quote Originally Posted by ySoNoob View Post
Hey I have made a VB project and I added a theme to it I also want to setup hotkeys but its says that 'PerformClick' is not a part of 'Projectname.Themebutton' is there anyway to fixthis??

But if I put a normal VB button in it will work just fine!

Any help will be appreciated!
Thank You in advance!
Well, the theme is the problem. Rather try to add that function to the theme, or don't use it.
Quote Originally Posted by Cryptonic View Post


Well, the theme is the problem. Rather try to add that function to the theme, or don't use it.
how do I do that ive never edited a VB theme xD
Quote Originally Posted by ySoNoob View Post
how do I do that ive never edited a VB theme xD
That's a good question. I don't really have any experience in themes for VB.
Quote Originally Posted by Cryptonic View Post


That's a good question. I don't really have any experience in themes for VB.
lol ok..well thx I might just use normal buttons!
Quote Originally Posted by ySoNoob View Post
lol ok..well thx I might just use normal buttons!
That's what I had to do, except it was with textboxes.
Quote Originally Posted by ySoNoob View Post
Hey I have made a VB project and I added a theme to it I also want to setup hotkeys but its says that 'PerformClick' is not a part of 'Projectname.Themebutton' is there anyway to fixthis??

But if I put a normal VB button in it will work just fine!

Any help will be appreciated!
Thank You in advance!

the mistake, it should show only in VB, but when you turn in the Windows .exe and it should work.
Quote Originally Posted by DyftRapid View Post
the mistake, it should show only in VB, but when you turn in the Windows .exe and it should work.
What are you talking about...?
Quote Originally Posted by DyftRapid View Post
the mistake, it should show only in VB, but when you turn in the Windows .exe and it should work.
wtf r u tlking abt??

Quote Originally Posted by Pingo View Post
Maybe try something like
Code:
    Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hWnd As IntPtr, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Boolean
    Sub PerformClick(ByVal Con As Control)
        SendMessage(Con.Handle, &H201, 0, 0)
        SendMessage(Con.Handle, &H202, 0, 0)
    End Sub
Call it like
Code:
PerformClick(Button1)
PerformClick(Label1)
PerformClick(TextBox1)
in the codding of the theme or the VB project itself??
Maybe try something like
Code:
    Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hWnd As IntPtr, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Boolean
    Sub PerformClick(ByVal Con As Control)
        SendMessage(Con.Handle, &H201, 0, 0)
        SendMessage(Con.Handle, &H202, 0, 0)
    End Sub
Call it like
Code:
PerformClick(Button1)
PerformClick(Label1)
PerformClick(TextBox1)
@ySoNoob
Id probably just add that to the form.
I'd go with the actual PerformClick function if adding it to the theme.

What theme are you using? link me to it.
I'll try adding it for you.
Quote Originally Posted by Pingo View Post
@ySoNoob
Id probably just add that to the form.
I'd go with the actual PerformClick function if adding it to the theme.

What theme are you using? link me to it.
I'll try adding it for you.
You know how to edit theme(s)?
Quote Originally Posted by Cryptonic View Post


You know how to edit theme(s)?
And make them. I was gonna make a new theme but i lack imagination.

Try making one, it isnt as hard as you think.
Quote Originally Posted by Pingo View Post
And make them. I was gonna make a new theme but i lack imagination.

Try making one, it isnt as hard as you think.
Could you edit one for me? I could also give you some ideas. Add me on skype - mrush1996
well thx ill try to add it to the form...if I cant get it from there ill come back here and upload the Theme or I cant send it to u via Skype!
Posts 115 of 15 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?