DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   VB.NET (http://www.daniweb.com/forums/forum58.html)
-   -   to stop window minimization automatically (http://www.daniweb.com/forums/thread162702.html)

manoj_582033 Dec 17th, 2008 7:15 am
to stop window minimization automatically
 
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

Teme64 Dec 17th, 2008 9:13 am
Re: to stop window minimization automatically
 
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


All times are GMT -4. The time now is 4:53 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC