I am making a clipboard utility that pastes data into the (last) active application by updating the clipboard like this:
System.Windows.Clipboard.SetText("Some Text",System.Windows.TextDataFormat.Text);
SendKeys.Send("^v");
My main application method is using the [STAThread] attribute and for some reason the SetText() method resizes my form to half the size and moves it to the center of the screen in some way that I thought was scaling it but it remains 1.0 for all the controls, maybe it is increasing the DPI?
Does anyone know what could be causing the form to resize? Or an alternative to SetText (and the other Clipboard.Set* methods) for updating the clipboard?