Howto get Intellisense or tab complete to show event methods for Windows Form buttons and other components

rainmakers 311 Reputation points
2022-05-05T15:28:41.06+00:00

When working in either VSCode or the ISE on a form. How can I tell Intellisense to show the event methods like add_click(), and get tab autocomplete to work in the shell?

When working in a PowerShell window the tab complete doesn't have these methods as options either. As well found that get-member will show the Method only if you use the -Force parameter.

The other event methods and components appear to have the same issue. Just using this as an example.

To replicate

 Add-Type -AssemblyName System.Windows.Forms
Add-Type -AssemblyName System.Drawing

$Button1 = New-Object System.Windows.Forms.Button

Then Type $Button1. (Then working within VSCode or ISE Add_Click doesn't show. If trying to tab complete in PowerShell window that method does not appear.)

Thanks in advance.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,689 questions
0 comments No comments
{count} votes