Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15772

PerformClick a button in TabControl ???

$
0
0
Hi all! \O
I recently realized that when I link a button to a StripMenu button with following code:
Code:

    Private Sub ShutdownToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ShutdownToolStripMenuItem.Click
        Shutdown_btn.PerformClick()
    End Sub


    Private Sub Shutdown_btn_Click(sender As Object, e As EventArgs) Handles Shutdown_btn.Click
        End
    End Sub

Shortcut set on stripmenu button (example= Alt + F4) performs exact the same expected action.

But when you relocate the mentioned button in a TabControl you should open the corresponded tab and press shortcut buttons otherwise nothing happens. Seems shortcut will be bypassed.

Is there any tabcontrol property to set to "true" to get global shortcut sensitivity ???

Viewing all articles
Browse latest Browse all 15772

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>