Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: priyamtheone

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: Toolstripbutton not validating textbox.

    While clicking any toolstrip button just validate the entire for before calling any method. This way it'll fire the textbox validating event.



    If (this.Validate)
    {
    // Call your method.
    }
  2. Detecting mouse button down & up events on the system menu of form.

    How do I detect left mouse button down and up events on the 'Close' option of the system menu that appears when the mouse is clicked on the top left corner of a form?
  3. Is disposing a local brush variable necessary?

    MSDN recommends disposing any variable of type System.Drawing.Brush before its last reference is released. Otherwise, the resources it is using will not be freed until the garbage collector calls the...
  4. Elements of a toolstrip witin an usercontrol get deleted when copying/pasting it.

    I have an usercontrol that contains a toolstrip. The toolstrip is exposed through the usercontrol by a readonly property 'HostStrip' with DesignerSerializationVisibility.Content attribute. In this...
  5. WmiSetBrightness method not supported (.Net 4.0, Winforms, Windows 7).

    I'm trying to adjust the brightness (not the gamma ramp values) of the monitor using WmiSetBrightness method but the system throws a ManagementException during runtime saying 'Not supported'. I have...
  6. Re: Problem in painting custom panel control (.Net Framework 4.0).

    According to the attachment you posted, just add Me.Invalidate() to the RPanel_Resize event handler of UserControl1. Hope that sorts it out.
  7. Re: Problem in ToolStripProgressBar painting (VS.Net 2010, WinForms).

    They are not the same post posted twice. First one is the problem; second one, the workaround to deal with it. Posted it so that someone else can be helped.
  8. Re: Problem in ToolStripProgressBar painting (VS.Net 2010, WinForms).

    It seems to be a bug. One way to remedy it is to handle SystemEvents.UserPreferenceChanged for e.Category=VisualStyle and change the progressbar.Style to something and back again.
  9. Re: Problem in inherited form (VS.Net 2010, WinForms).

    The naming of forms is done by the design IDE. It is not part of the Form Class. The IDE sets the name of a form to its text by default when it is created from the 'Add New Item' dialog box. But it's...
  10. Re: Problem in inherited form (VS.Net 2010, WinForms).

    When I add an inherited form to my project from MyForm through the 'Add New Item' dialog box, I enter the name of the form that I want to add in the 'Name' TextBox of the 'Add New Item' dialog box...
  11. Problem in inherited form (VS.Net 2010, WinForms).

    I built a ClassLibrary where I have created my custom form component (let's say MyForm) that inherits from the Form class. I added the ClassLibrary to my actual WinForms project. Now when I add an...
  12. Problem in ToolStripProgressBar painting (VS.Net 2010, WinForms).

    Ensure ApplyVisualStyles is enabled in your system. Place a ToolStripProgressBar on a toolstrip, run your application and minimize the form. Now change the theme of your computer to Windows Classic...
  13. Problem in creating numeric textbox (.Net 4.0 - Winforms).

    Hi,
    I'm trying to create my own numeric textbox that will handle decimal as well as whole number values. The concept is, unlike the regular textbox, this one will accept a value of 'Double' data...
  14. 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...
  15. 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...
  16. Re: Problem in painting custom panel control (.Net Framework 4.0).

    The following line needs to be changed:



    ControlPaint.DrawBorder(e.Graphics, Me.ClientRectangle, BorderColor, borderWidth, ButtonBorderStyle.Solid, BorderColor, borderWidth,...
  17. Re: How to set borderstyle of a datagridview column at runtime (.Net Framework 4.0)?

    Private Sub dgvLegends_CellPainting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellPaintingEventArgs) Handles dgvLegends.CellPainting
    'Draw custom cell borders.
    ...
  18. 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...
  19. 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...
  20. Re: DataGridView checkbox column header cell (.Net 4.0).

    Ah! My Bad. I shouldn't have overlooked it. Thanks to triangulate it.
  21. Re: Problem in Form Activated and Deactivate events (Windows app, .Net 4.0).

    Invalidate the usercontrol like:
    UserControl.Invalidate()
  22. Re: Problem in resizing controls (.Net 2008).

    TableLayoutPanel should be used accordingly.
  23. Re: [RESOLVED] Problem in disabling close button(X) of window.

    Thanks!
  24. Replies
    10
    Views
    2,550

    Re: Equivalent of IntPtr.

    Thanks!
  25. [RESOLVED] DataGridView checkbox column header cell (.Net 4.0).

    Hi,
    I'm trying to render a checkbox in a datagridview column header so that when the checkbox is checked/unchecked all the cells in that column should be
    checked/unchecked accordingly. The...
Results 1 to 25 of 81
Page 1 of 4 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center