I have a bunch of forms that I need to put in a list and know if the form is already in there.
For reasons not relevant to this question, I cannot actually have a reference to the form in the list.
Is there a ID or Guid that is on a winform that I could use? Or should I just add a Guid to all my forms?
Note that this is Compact Framework. So the “ID” needs to be available in the .NETCF 3.5.
The window handle (
hWnd) should do the trick. Look for theHandleproperty of your forms.