Click here to Skip to main content
15,892,697 members
Home / Discussions / C#
   

C#

 
GeneralRe: Winforms Controls Pin
DougW4825-Jul-04 19:36
DougW4825-Jul-04 19:36 
GeneralRe: Winforms Controls Pin
Mankayarkarasi29-Jul-04 0:43
Mankayarkarasi29-Jul-04 0:43 
GeneralBudding Programmer Pin
doctrane23-Jul-04 23:13
doctrane23-Jul-04 23:13 
GeneralRe: Budding Programmer Pin
softp_vc23-Jul-04 23:51
softp_vc23-Jul-04 23:51 
GeneralRe: Budding Programmer Pin
doctrane24-Jul-04 0:46
doctrane24-Jul-04 0:46 
GeneralRe: Budding Programmer Pin
Rocky Moore24-Jul-04 11:04
Rocky Moore24-Jul-04 11:04 
GeneralClosing Form after FormLoad Event Pin
myNameIsRon23-Jul-04 20:47
myNameIsRon23-Jul-04 20:47 
GeneralRe: Closing Form after FormLoad Event Pin
Dave Kreskowiak24-Jul-04 5:05
mveDave Kreskowiak24-Jul-04 5:05 
Yes, there is. Your putting the print code in the wrong form. If this form is for nothing but printing, leave the printing code in the form that creates it. FormLoad should only be used for initializing the forms code and its look. You can't close the form in the FormLoad event, because, technically, it hasn't been created yet. Do something like this:
// Form1 code, printing Form2
Form2 frmPrint = new Form2;
frmPrint.printDocument1.Print();
frmPrint = null;



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Closing Form after FormLoad Event Pin
myNameIsRon25-Jul-04 12:08
myNameIsRon25-Jul-04 12:08 
GeneralHandling e-mail as files Pin
Grimolfr23-Jul-04 18:55
Grimolfr23-Jul-04 18:55 
GeneralRe: Handling e-mail as files Pin
Heath Stewart26-Jul-04 8:01
protectorHeath Stewart26-Jul-04 8:01 
GeneralRe: Handling e-mail as files Pin
Grimolfr26-Jul-04 11:40
Grimolfr26-Jul-04 11:40 
GeneralRe: Handling e-mail as files Pin
Heath Stewart26-Jul-04 11:53
protectorHeath Stewart26-Jul-04 11:53 
GeneralRe: Handling e-mail as files Pin
Grimolfr26-Jul-04 12:31
Grimolfr26-Jul-04 12:31 
GeneralRe: Handling e-mail as files Pin
Heath Stewart27-Jul-04 3:28
protectorHeath Stewart27-Jul-04 3:28 
GeneralRe: Handling e-mail as files Pin
Grimolfr27-Jul-04 12:06
Grimolfr27-Jul-04 12:06 
GeneralIntercept Print Jobs From Other Apps Pin
johnstacey23-Jul-04 14:29
johnstacey23-Jul-04 14:29 
GeneralRe: Intercept Print Jobs From Other Apps Pin
Small Rat23-Jul-04 18:56
Small Rat23-Jul-04 18:56 
GeneralRe: Intercept Print Jobs From Other Apps Pin
johnstacey24-Jul-04 3:16
johnstacey24-Jul-04 3:16 
GeneralRe: Intercept Print Jobs From Other Apps Pin
Dave Kreskowiak24-Jul-04 4:56
mveDave Kreskowiak24-Jul-04 4:56 
GeneralRe: Intercept Print Jobs From Other Apps Pin
johnstacey25-Jul-04 13:34
johnstacey25-Jul-04 13:34 
GeneralRe: Intercept Print Jobs From Other Apps Pin
Dave Kreskowiak25-Jul-04 15:54
mveDave Kreskowiak25-Jul-04 15:54 
GeneralRe: Intercept Print Jobs From Other Apps Pin
johnstacey4-Aug-04 0:22
johnstacey4-Aug-04 0:22 
GeneralRe: Intercept Print Jobs From Other Apps Pin
Small Rat24-Jul-04 5:55
Small Rat24-Jul-04 5:55 
GeneralSave text file as html Pin
kloepper23-Jul-04 11:40
kloepper23-Jul-04 11:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.