try this:( I m not sure, cos i m just a beginner)
private void ButtonPrint_Click(object sender, System.EventArgs e)
{
TextBoxAchternaam.Text="HELLO";
TextBoxAchternaam.Font = new
System.Drawing.Font("Microsoft
Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.
GraphicsUnit.Point, ((System.Byte)(134)));
TextBoxAdres.Text="HELLO";
TextBoxAdres.Font = new System.Drawing.Font("Microsoft
Sans
Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.
GraphicsUnit.Point, ((System.Byte)(134)));
TextBoxVoornaam.Text="HELLO";
TextBoxVoornaam.Font = new
System.Drawing.Font("Microsoft
Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.
GraphicsUnit.Point, ((System.Byte)(134)));
}
--- In [email protected], "Koen Willemse" <K.F.
[EMAIL PROTECTED]> wrote:
> My apologies... I didn't look carefully... I found the C# source...
>
> Thanks again Chris
>
> -----Original Message-----
> From: Koen Willemse [mailto:[EMAIL PROTECTED]
> Sent: woensdag 16 maart 2005 18:54
> To: [email protected]
> Subject: RE: [Microsofts_C_Sharp] Re: printing from C#
>
>
> Anybody got examples in C#? Else I'll have to try to change the VB
in C#....
>
> Thanks Chris.
>
> -----Original Message-----
> From: Chris Cottrell [mailto:[EMAIL PROTECTED]
> Sent: woensdag 16 maart 2005 18:37
> To: [email protected]
> Subject: Re: [Microsofts_C_Sharp] Re: printing from C#
>
>
> Try this...
>
> http://samples.gotdotnet.
com/quickstart/winforms/doc/WinFormsPrinting.aspx
>
>
> On Wed, 16 Mar 2005 18:28:17 +0100, Koen Willemse
> <[EMAIL PROTECTED]> wrote:
> >
> > It's a form (winform) with these textboxes:
> > TextBoxVoornaam
> > TextBoxAchternaam
> > TextBoxAdres
> >
> > I would like to print the values below each other. The value from
> > TextBoxVoornaam must be printed in bold and 16 pts. The other
values in 12
> > pts.
> >
> > I've got a button ButtonPrint which should cause the printaction
to start.
> >
> > Is this enough information?
> >
> > Thanks,
> > Koen
> >
> > -----Original Message-----
> > From: ariesim1983 [mailto:[EMAIL PROTECTED]
> > Sent: woensdag 16 maart 2005 17:59
> > To: [email protected]
> > Subject: [Microsofts_C_Sharp] Re: printing from C#
> >
> > --- In [email protected], "Koen Willemse" <K.F.
> > [EMAIL PROTECTED]> wrote:
> > > Hi guys,
> > >
> > > I've got a question. I want to print data that is in textboxes
on my
> > form.
> > > Now I can't find a good tutorial or code example for it. Can
anybody
> > of you
> > > help me how to do this with some code example on how to do it?
> > >
> > > Hope you can help me. I want to print when I click a certain
button
> > on my
> > > form.
> > >
> > > Thanks in advance.
> > > Koen willemse
> >
> > Hi! Can u give me the details of the problems (eg: code,etc)
> >
> > Thanks.
> >
> > Aries
> >
> > Yahoo! Groups Links
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Microsofts_C_Sharp/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/