Question: I need to paste all of my data on separate lines so that they arent all smashed together. This is my data:

```
    data = {'sku: ***'+sku0+'*** Size: ***'+size0+'*** Stock: ***'+stock0+'***'
    'sku: ***'+sku0+'*** Size: ***'+size1+'*** Stock: ***'+stock1+'***'
    'sku: ***'+sku0+'*** Size: ***'+size2+'*** Stock: ***'+stock2+'***'
    'sku: ***'+sku0+'*** Size: ***'+size3+'*** Stock: ***'+stock3+'***'
    'sku: ***'+sku0+'*** Size: ***'+size4+'*** Stock: ***'+stock4+'***'
    'sku: ***'+sku0+'*** Size: ***'+size5+'*** Stock: ***'+stock5+'***'
    'sku: ***'+sku0+'*** Size: ***'+size6+'*** Stock: ***'+stock6+'***'
    'sku: ***'+sku0+'*** Size: ***'+size7+'*** Stock: ***'+stock7+'***'
    'sku: ***'+sku0+'*** Size: ***'+size8+'*** Stock: ***'+stock8+'***'
    'sku: ***'+sku0+'*** Size: ***'+size9+'*** Stock: ***'+stock9+'***'}

```

Answer: 
Try `window.Activate()` to focus the new window and/or `[any element].Focus()` to focus any element within window.
As I understand, this should do what you want:

```
info.ShowDialog();

```

You could also check `ShutdownMode` property. I would rather say, login window is sth you want to close after login, but do what you want :). Usage of `ShutdownMode` property:

```
public partial class App : Application
{
    protected override void OnStartup(StartupEventArgs e)
    {
        base.OnStartup(e);    
        this.ShutdownMode = System.Windows.ShutdownMode.OnLastWindowClose;
    }
}

```