printDialog focus problem
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: printDialog focus problem

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    1

    printDialog focus problem

    Previously i am using the code

    DialogResult res = dlgPrint.ShowDialog();
    if (res == DialogResult.OK)
    {
    // print the image.
    document.Print();
    }

    when i use this code i am getting the problem of lost focus to print window.

    If i use begininvoke() method to get focus on print window. when i clicked on print button i am not able to capture the result and print the document.

    I had used the

    PrintDialog dlgPrint = new PrintDialog();
    dlgPrint.Document = document;
    ShowThePrintDialog printD = new ShowThePrintDialog(dlgPrint.ShowDialog);
    this.BeginInvoke(printD);


    but not working

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,092

    Re: printDialog focus problem

    [ Moved ]

    Please do not revive old threads.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center