Re: Getting a referenvce to a form

Tech-Archive recommends: Fix windows errors by optimizing your registry



Well, just that's not so easy. You are running in a second application and
you want to get a reference to form (assuming that this window is in a
managed forms-based application)? You should not be able to do that.

Tell us *what* you want to do, not *how* you're trying to do it...

Paul T.

"B. Ron F." <BRonF@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E3EEA596-98EB-446C-83B2-E94547210A39@xxxxxxxxxxxxxxxx
C# is new to me and I don't know how to get a reference to a Form when all
I
have is a handle to a Window.

i.e.

hwnd = GetWindow(hwnd, GW_HWNDNEXT);
Form f = ???????????(hwnd);

thanks for any help.


.



Relevant Pages

  • Re: Calls between windows
    ... These object reference variables are exactly like character memory ... be based on the Collection base class. ... Your top-most level form class would ... The scenario is that if specific window is opened and a process ...
    (microsoft.public.fox.programmer.exchange)
  • Re: dont understand namespaces...
    ... I think I do not yet have a good understanding of namespaces. ... instantiate a class that defines a Frame in the root window ... And the caller gets a return value from the constructor, which is a downward reference. ...
    (comp.lang.python)
  • Re: Microsoft Cleanliness
    ... browser and properties and all that. ... each browser document had to open a new window. ... Well, with larger screens, you have a larger task bar area, and you *can* ... And requires an FSO reference. ...
    (comp.databases.ms-access)
  • Re: C# and MDB
    ... In the Add Reference dialog box, click the COM tab and select ... Delete all of the code from the code window for Class1.cs. ... Change the path to the new .mdb file as appropriate. ... ADOX is Microsoft ADO Ext. 2.x for DDL and Security. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Best Performance Javascript on IE6 for finding top and left using offsetTop and offsetLeft
    ... globals (the alert one is troubling). ... The window reference of course. ... I agree that assuming a browser should allow for the ...
    (comp.lang.javascript)