Access a form, using a string literal?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



We have a question but we're in doubt if it's even possible or not.

The question is as follows:

Is it possible to access a form using a string literal, and if so yes?

We want to use something like this (don't mind the syntax as it obviously
doesn't work):

Form("Form1") frm = ("Form1")GetForm("Form1");

So we're able to access all the properties and methods of Form1 and not
just the methods and properties of the base class "Form".

Any help on this one is greatly appreciated!

Gerrit


.



Relevant Pages

  • Re: InheritedPropertyDescriptor vs. ReflectedPropertyDescriptor
    ... Class1 derives from some base class. ... Class1.cs, which is the file you double click on to open the designer, ... but Reset changed it to Form1. ... case of the properties that ended with an InheritedPropertyDescriptor. ...
    (microsoft.public.dotnet.framework.windowsforms.designtime)
  • Re: In C#, pass values between 2 forms and one Global.cs
    ... I think the base class method seems easier to me. ... Form1 and Form2 to inherit from Global? ... Jason ... If it doesn't make sense to have a base class, you could use a delegate ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: inheritence
    ... When I instance a form (form1) based on ... xform. ... I have a formthat I use as a base class for other forms ... do I have to override the function in the derived class? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: VS2005 beta 2 Compact Framework 2.0 - visual inheritance
    ... Base class 'Form1' specified for class 'form2' cannot be different from the ... >> Inheritance Picker as mentioned in the Help, and when I manually code the ...
    (microsoft.public.pocketpc.developer)
  • Re: LR44 Alki-Mangan Knopf-zellen?
    ... Deutlich anders als eine LR44. ... Gerrit ... Prev by Date: ...
    (de.sci.electronics)