May 2008

  • Close a Parent Form from Child Form

    From a child form I wanted to close the parent form after a button was clicked, the following is the code I used: // In the child form, create an event that indicates the special occurrence.public event EventHandler Special;protected virtual void OnSpecial(EventArgs e) { EventHandler Handler = Special; if (Handler != null) Handler(this, e);}// Perhaps…

    Know More

  • Rich ajax applications that do not break if javascript is disabled.

    This is a great solution for dealing with checking whether the clients browser has JavaScript enabled/disabled, and then coping with either scenario: Rich ajax applications that do not break if javascript is disabled.

    Know More