to stop window minimization automatically

Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Nov 2008
Posts: 34
Reputation: manoj_582033 is an unknown quantity at this point 
Solved Threads: 0
manoj_582033 manoj_582033 is offline Offline
Light Poster

to stop window minimization automatically

 
0
  #1
Dec 17th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 710
Reputation: Teme64 will become famous soon enough Teme64 will become famous soon enough 
Solved Threads: 114
Teme64's Avatar
Teme64 Teme64 is offline Offline
Master Poster

Re: to stop window minimization automatically

 
0
  #2
Dec 17th, 2008
Not sure how this works with Crystal Report, it works with "normal" forms. Trap Resize event and if minimizing, set WindowState back to normal
  1. Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
  2. '
  3. If Me.WindowState = FormWindowState.Minimized Then
  4. Me.WindowState = FormWindowState.Normal
  5. End If
  6.  
  7. End Sub
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC