
January 12th, 2006, 01:45 PM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 10

Time spent in forums: 1 h 25 m 19 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by MBirchmeier What would be the need to alter the mouse's position? Don't you think you'd be a bit miffed if someone didn't let you move your mouse where you wanted to?
Why would it need to be a mouse click event, you could just move mouse click code to another part of code, such as an onload method?
-MBirchmeier |
I want a way to automatically resize a datagrid's columns to the correct width. I'm not particularly fond of the method where you iterate through all the rows and set the width according to the widest row.
I want to simulate a datagrid column click, which resizes the column appropriately. I want to do this by programmatically moving the mouse to the column's right edge, and sending a column click message to the datagrid.
Is there a .net equivalent of the win32 api sendmessage function?
Thanks,
Tony
|