Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I have my own app context, and I'd like to check some properties from within a main form. How can I achieve this?

A man and a dog have an average of three legs.

Beaware of Statistics.

Posted

Hmm, ApplicationContext takes my main form as constructor parameter:

 

static void Main()

{

MyContext _MyCtx = new MyContext(new MyForm());

Application.Run(_MyCtx);

}

 

where MyContext derives from System.Windows.Forms.ApplicationContext,

so I've looked for some kind of standard way (parameter) to get the context within a form (something like that: myForm.Context, like in ASP.Net that has it's HttpContext).

A man and a dog have an average of three legs.

Beaware of Statistics.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...