Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
H

hground

@hground
About
Posts
6
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • what do you do to block tracking cookies, etc. now ?
    H hground

    I use the DNT+ (DoNotTrackPlus) addon in Firefox as well as the Startpage/ixquick search options (they do not store your IP address). They have both worked pretty well for me.

    The Lounge com adobe sysadmin tools question

  • IE9 --- Thumbs down after 60 seconds
    H hground

    blackjack2150 wrote:

    There is no sane reason why you shouldn't upgrade from 8 to 9,

    Except for the fact that all of the systems where I work are XP Pro and 2 of my desktops at home are XP. I don't see that fact changing before we have IE-15 or higher. You may consider that an "insane" reason, but unfortunately that is the way it is. So I'll stick to Firefox going forward as long as they add features and continue to support the OS Version that I am stuck with. :)

    The Lounge collaboration

  • Default or optional Parameters in C#
    H hground

    VB .NET has had optional parameters for some time :) Looks like it took C# a while to catch up :) (Yeah - I know! I shouldn't throw rocks at hornet's nests, but sometimes you just can't resist!)

    C# csharp c++ help

  • Which DVD ripper software do you use?
    H hground

    Don't remember which one I use the most cause I have 2 or 3 on my system. Every one of them I got free (free download for 1 day only) at the Giveaway of the Day site (http://www.giveawayoftheday.com/). They come around from time to time. - hground

    The Lounge com question career

  • ListView multi-select checkbox bug [modified]
    H hground

    I recently answered this in another thread: http://www.codeproject.com/Messages/3417741/Re-how-to-disable-multi-select-of-checkbox-in-list.aspx HTH - hground

    Windows Forms help csharp question

  • how to disable multi select of checkbox in listview ?
    H hground

    I know this question was asked over a year ago, but I have been searching for an answer myself with little success and wanted to get this out there to save others who may be searching the hours of frustration I encountered. I finally came up with the following VB .NET code to take care of the problem:

    'Declare a Form global boolean to keep the ItemChecked event from being called in an infinite loop
    Dim bFirstChange as Boolean = True
    
    Private Sub Listview1\_ItemChecked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ItemCheckedEventArgs) Handles Listview1.ItemChecked
        If ((ModifierKeys = Keys.Control) Or (ModifierKeys = Keys.Shift)) Then
            If (bFirstChange) Then
                bFirstChange = False
                e.Item.Checked = Not e.Item.Checked
            Else
                bFirstChange = True
            End If
            Exit Sub
        End If
        'Accentuate that the row is checked
        If (e.Item.Checked) Then
            e.Item.SubItems(0).Text = "+"
            e.Item.BackColor = Color.LightYellow
        Else
            e.Item.SubItems(0).Text = "-"
            e.Item.BackColor = Color.White
        End If
    End Sub
    

    This worked for me to keep the Checked property unchanged. Not sure about the "thread safe-ness" of this, but not a problem for me in the form I am working with. You should be able to easily convert this if you need it in C# instead of VB. HTH - hground

    C# tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups