CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums


Type: Posts; User: priyamtheone

Page 1 of 4 1 2 3 4

Search: Search took 0.04 seconds.

  1. How to invoke multiple Javascript validation functions on button click?

    Basic workflow of the page

    Image of Payment page:!Ava3iL9se3C3gTF_XJ_RiBBsWDHs

    I have a payment page that has a name textbox (txtName), a PIN textbox (txtPin) and two...
  2. 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.
  3. 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?
  4. 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...
  5. 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...
  6. 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...
  7. 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.
  8. 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.
  9. 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.
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. Problem in creating numeric textbox (.Net 4.0 - Winforms).

    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...
  15. 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...
  16. 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...
  17. 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,...
  18. 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.
  19. 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...
  20. 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...
  21. Re: DataGridView checkbox column header cell (.Net 4.0).

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

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

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

  25. Replies

    Re: Equivalent of IntPtr.

Results 1 to 25 of 82
Page 1 of 4 1 2 3 4

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)