Button Position in textbox
-
I have a class that I inherited from the DataGridTextBoxColumn class. There is a button that is in the textbox of this column, similar to a combobox button (only it has different functionality than the combobox). Anyways, first thing in the override Edit function, I am positioning the button so that it is on the right hand side of the TextBox. The code seems simple enough... myButton.SetBounds( this.TextBox.Width - this.TextBox.Height, 0, this.TextBox.Height, this.TextBox.Height ); Something is crazy about this though. This code works perfectly when the application runs under the .NET Framework 1.0.3705, and the button is always positioned exactly as desired. However, when the application runs under the .NET Framework 1.1, the button REFUSES to go where it is supposed to! What's the discrepancy between these versions, and what in the world am I doing wrong? This isn't the only place I'm noticing a difference in the behavior of my program, but it seems like no matter what I do, I can't seem to prevent these effects from occurring. Need Help! Thanks a ton!