We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message) ' 'Have the base class handle all messages. MyBase.WndProc(m) ' 'Check if a new window has been created. If m.Result.ToInt32 = WM_CREATE Then ' 'Check the new window to see if it has the charateristics that we are looking for. Namely that is has the Title that we want to find. windowHandle = FindWindow(vbNullString, inputTitle) ' 'Make sure that the WindowHandle is not 0 which should mean it have a handle to the Inputbox window that we are wanting. ElseIf windowHandle > 0 Then ' 'Call the code to set the textbox to a password textbox. setPassword() ' 'Reset the handle back to 0 since the window handle will be different each time you display Inputbox window. windowHandle = 0 End If End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.