1. P

    Question Detecting X button click of a window in winforms.

    How can I detect the click event of the close (X) button at the top right corner of the control box of a form/window? Please note, I don't want to know about CloseReason, FormClosing, FormClosed or stuffs like these, unless they are inevitable. I exactly want to detect if the user clicked the X...
  2. P

    Question Changing default value of a property of a control (DataGridView).

    I am inheriting my own datagridview (say MyDataGridView) from the standard datagridview control. What I want is that certain properties of MyDataGridView should have a different default value than what its base have. For example, AllowUserToAddRows, AllowUserToDeleteRows, AllowUserToResizeRows...
  3. P

    Question Problem in painting custom panel control (.Net Framework 4.0).

    I have inherited the standard panel control to create a panel having custom border color. The problem is, while the panel is on a form and any other form is moved across it, it paints hapazard lines of the same color as the panel custom border color, all throughout background of the panel. I...
  4. P

    Question How to set borderstyle of a datagridview column at runtime (.Net Framework 4.0)?

    I have a readonly datagridview that is bound to a datasource. It has two columns. Now I want the first column to have no cell borderstyle; and the second one to have 'All' (i.e. all sides of the cell shall have a border) as cell borderstyle. Before binding the datagridview to the datasource...
  5. B

    Question Web Application "Sub-Projects," VS 2005 External web.config reference?

    Pardon if I'm a little vague here, but the programs I am developing are for internal use and I can't get into any specific detail about what they are or what they do. First a little background: We have a web project which is considered the "root" application, that is, it is deployed at the...
Top Bottom