Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: Distributing a much-used function across classes Pin
spin vector25-Feb-06 8:17
spin vector25-Feb-06 8:17 
GeneralRe: Distributing a much-used function across classes Pin
Allah On Acid25-Feb-06 8:25
Allah On Acid25-Feb-06 8:25 
GeneralRe: Distributing a much-used function across classes Pin
spin vector25-Feb-06 8:31
spin vector25-Feb-06 8:31 
AnswerRe: Distributing a much-used function across classes Pin
mrsnipey1-Mar-06 18:23
mrsnipey1-Mar-06 18:23 
Questioncreate c# window form installer Pin
batmanAgen25-Feb-06 5:28
batmanAgen25-Feb-06 5:28 
QuestionDeployment in VS2005. Pin
ranzask25-Feb-06 2:49
ranzask25-Feb-06 2:49 
QuestionSecond Email about How to Print in Windows Forms ?? Pin
Abubakarsb25-Feb-06 1:36
Abubakarsb25-Feb-06 1:36 
AnswerRe: Second Email about How to Print in Windows Forms ?? Pin
emran83425-Feb-06 1:56
emran83425-Feb-06 1:56 
Add a PrintDocument Control to your Windows Form from Toolbox and name it "printDocumentLetter", and

your print button name : "btnPrintLetter"
your textbox name : "txtMyTextBox"

Add PrintPage event handler of printDocument Control (printDocumentLetter) named "printLetter".

Now,

private void btnPrintLetter_Click(object sender, EventArgs e)
{
printDocumentLetter.Print();
}

private void printLetter(object sender, PrintPageEventArgs e)
{
String text2Print = txtMyTextBox.Text;
Font printFont = new Font("Verdana", 12);
e.Graphics.DrawString(text2Print, printFont, Brushes.Black, 10, 10);
}

QuestionWindow resizing Pin
XeoN-Kc25-Feb-06 1:22
XeoN-Kc25-Feb-06 1:22 
AnswerRe: Window resizing Pin
User 665825-Feb-06 2:30
User 665825-Feb-06 2:30 
GeneralRe: Window resizing Pin
XeoN-Kc25-Feb-06 2:42
XeoN-Kc25-Feb-06 2:42 
GeneralRe: Window resizing Pin
User 665825-Feb-06 3:25
User 665825-Feb-06 3:25 
AnswerRe: Window resizing Pin
Robert Rohde26-Feb-06 6:35
Robert Rohde26-Feb-06 6:35 
GeneralRe: Window resizing Pin
XeoN-Kc28-Feb-06 1:37
XeoN-Kc28-Feb-06 1:37 
Questionclass Image Pin
videhr24-Feb-06 23:52
videhr24-Feb-06 23:52 
AnswerRe: class Image Pin
James Gupta25-Feb-06 0:12
professionalJames Gupta25-Feb-06 0:12 
GeneralRe: class Image Pin
videhr25-Feb-06 4:58
videhr25-Feb-06 4:58 
GeneralRe: class Image Pin
User 665825-Feb-06 5:13
User 665825-Feb-06 5:13 
GeneralRe: class Image Pin
videhr25-Feb-06 5:30
videhr25-Feb-06 5:30 
GeneralRe: class Image Pin
User 665825-Feb-06 5:33
User 665825-Feb-06 5:33 
GeneralRe: class Image Pin
videhr25-Feb-06 5:57
videhr25-Feb-06 5:57 
GeneralRe: class Image Pin
User 665825-Feb-06 6:17
User 665825-Feb-06 6:17 
GeneralRe: class Image Pin
James Gupta25-Feb-06 7:34
professionalJames Gupta25-Feb-06 7:34 
Questionset the property of the file created to be hidden Pin
batmanAgen24-Feb-06 23:39
batmanAgen24-Feb-06 23:39 
AnswerRe: set the property of the file created to be hidden Pin
Wayne Phipps24-Feb-06 23:53
Wayne Phipps24-Feb-06 23:53 

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.