How can I limit Settings'Form be Opened?

  • Thread starter Thread starter fullisnull
  • Start date Start date
F

fullisnull

Dim hwnd As IntPtr = FindWindow("Form1", "Form1")
Form1 is my Window,
why hwnd alway IntPtr.Zero?

How Can I find Settings'Form be Opened
 
Change the first parameter to Nothing. The class name for forms is not the
same as the window title
 
Form1'Class_Name is Form1.

I Change the first parameter to nothing, but result alway is 0.
 
thank you for asking me.

I user this Class:

Public Class Form1
Inherits System.Windows.Forms.Form
'Me.Text = "Form1"
End Class
 
If you are interested in what .NET CF sets the class name to be for forms
you should use LocalSpy (hold down activation button and click and hold with
the stylus in an empty part of the start bar) to give you the window
information.

Nick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top