A
Anil
Hi all,
I have observed that some of the controls in 1.0 .NET framework behave
differently in 1.1 .NET framework.
For example - the ComboBox control:
The combo box is in DropDown mode. Consider the behavior of KeyPress event.
In 1.0 framework, the combobox Text property contains the modified value
during KeyPress event handling.
For eample, if the text in the combobox is "test" initially and I modified
it to "test1" then in key press event the Text property is "test1".
But this is not the case in 1.1 framework. The Text property is old value
i,e., in this case "test" but not "test1".
private void testComboBox_KeyPress(object sender,
System.Windows.Forms.KeyPressEventArgs e)
{
System.Diagnostics.Debug.WriteLine("Text Value in KeyPress :" +
testComboBox.Text);
}
run this in both 1.0 and 1.1 framework.
Due to this my applications are not working properly when I port them from
1.0 to 1.1 .NET framework.
My main concern is: Is this behavior is a bug or intentionally done ?
Because this is causing problems: Help!!!!
Thanks,
Anil.
I have observed that some of the controls in 1.0 .NET framework behave
differently in 1.1 .NET framework.
For example - the ComboBox control:
The combo box is in DropDown mode. Consider the behavior of KeyPress event.
In 1.0 framework, the combobox Text property contains the modified value
during KeyPress event handling.
For eample, if the text in the combobox is "test" initially and I modified
it to "test1" then in key press event the Text property is "test1".
But this is not the case in 1.1 framework. The Text property is old value
i,e., in this case "test" but not "test1".
private void testComboBox_KeyPress(object sender,
System.Windows.Forms.KeyPressEventArgs e)
{
System.Diagnostics.Debug.WriteLine("Text Value in KeyPress :" +
testComboBox.Text);
}
run this in both 1.0 and 1.1 framework.
Due to this my applications are not working properly when I port them from
1.0 to 1.1 .NET framework.
My main concern is: Is this behavior is a bug or intentionally done ?
Because this is causing problems: Help!!!!
Thanks,
Anil.