Hi Friends

I am using crystal report, when i click button1(for switcing to print page) so the printing form becomes infront, but when i click on print button of that form & get printout,imidiatlity that form become minimize & hides on task bar
but it's necessary that form must be there & tere is a button(close) on that form when i click on that than form must be close or minimize, Not automatically

please help me to solve this problem

Not sure how this works with Crystal Report, it works with "normal" forms. Trap Resize event and if minimizing, set WindowState back to normal

Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
    '
    If Me.WindowState = FormWindowState.Minimized Then
      Me.WindowState = FormWindowState.Normal
    End If

  End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.