dbasnett's Profile User Rating: -----

Reputation: 108 Stalwart
Group:
Active Members
Active Posts:
601 (0.28 per day)
Joined:
01-October 08
Profile Views:
7,269
Last Active:
User is offline Today, 06:03 PM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   dbasnett has not set their status

Posts I've Made

  1. In Topic: ComboBox, different behavior on Windows 7 and 8.1

    Posted 25 Jul 2014

    View PostIronRazer, on 25 July 2014 - 05:17 AM, said:

    Yes, i noticed that yesterday in your example code. I never used it until then. I`ll have to check it out further to see what the difference is in when the event gets raised (for my own knowledge). Like i said, i didn`t play with it very long.


    The event fires only when the user is manipulating the control. It does not fire if the program changes the index programmatically. Don't know what version of .Net it was introduced in.
  2. In Topic: ComboBox, different behavior on Windows 7 and 8.1

    Posted 25 Jul 2014

    View PostIronRazer, on 25 July 2014 - 05:06 AM, said:

    Hey DB,
    I see you did. Nice workaround. I will try it out later. B)/>/>/>/>/>/>


    Hopefully it works on XP. BTW - did you notice that the event is .SelectionchangeCommitted and not .SelectedIndexChanged?

    edit: Why is the editor changing Change to change in .SelectionchangeCommitted ?
  3. In Topic: ComboBox, different behavior on Windows 7 and 8.1

    Posted 25 Jul 2014

    I did find a workaround.
        Private Sub ComboBox1_SelectionchangeCommitted(sender As Object, e As EventArgs) Handles ComboBox1.SelectionchangeCommitted
            Debug.WriteLine("CB1Committed Index: [{0}] Text: [{1}]",
                              ComboBox1.SelectedIndex,
                              ComboBox1.Text)
            Dim foo As Integer = ComboBox1.SelectedIndex '<<<<<fix
            ComboBox2.Select()
            ComboBox1.SelectedIndex = foo '<<<<fix
        End Sub
    
    
  4. In Topic: ComboBox, different behavior on Windows 7 and 8.1

    Posted 24 Jul 2014

    This behavior is a known bug as it turns out.

    http://support.micro...b/2868238/en-us
  5. In Topic: Doubling Time, do loops

    Posted 10 Jul 2014

    I came up with a different answer. Double in 11 years, million in 77 years.

            Dim initAmt As Decimal = 10000D
            Dim dblAmt As Decimal = initAmt * 2D
            Dim dblMonths As Integer = -1
            Dim ctMonths As Integer = 0
            Dim yrRate As Decimal = 0.06D
    
            'assume the money is compunded monthly
            Dim moRate As Decimal = yrRate / 12D
    
            Do While initAmt < 1000000D
                If dblMonths = -1 AndAlso initAmt >= dblAmt Then
                    dblMonths = ctMonths
                End If
                ctMonths += 1
                initAmt += initAmt * moRate
            Loop
            Debug.WriteLine("DBL in " & (dblMonths / 12D).ToString)
            Debug.WriteLine("Mil in " & (ctMonths / 12D).ToString)
    
    

My Information

Member Title:
D.I.C Addict
Age:
Age Unknown
Birthday:
July 29
Gender:
Years Programming:
45

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Friends

Comments

dbasnett has no profile comments yet. Why not say hello?