Click here to Skip to main content
15,909,051 members
Home / Discussions / C#
   

C#

 
QuestionHelp, how to run C# Pin
Member 38867704-Mar-07 21:47
Member 38867704-Mar-07 21:47 
AnswerRe: Help, how to run C# Pin
stancrm4-Mar-07 21:59
stancrm4-Mar-07 21:59 
QuestionWPF vs. WinForms: Menu merging. Pin
__alex4-Mar-07 21:43
__alex4-Mar-07 21:43 
QuestionMulti-treading Pin
dotnethunk4-Mar-07 21:34
dotnethunk4-Mar-07 21:34 
AnswerRe: Multi-treading Pin
pbraun5-Mar-07 8:05
pbraun5-Mar-07 8:05 
QuestionDrag And Drop Pin
shamsteady4-Mar-07 21:30
shamsteady4-Mar-07 21:30 
QuestionURGENT PLZ: how to print an invoice or receipt? Pin
Jassim Rahma4-Mar-07 21:03
Jassim Rahma4-Mar-07 21:03 
AnswerRe: URGENT PLZ: how to print an invoice or receipt? Pin
stancrm4-Mar-07 21:57
stancrm4-Mar-07 21:57 
Code sample :

private void button1_Click(object sender, EventArgs e)
{
  PrintDocument printDocument = new PrintDocument();
  printDocument.PrintPage += new PrintPageEventHandler(printDocument_PrintPage);

  PrintDialog printDialog = new PrintDialog();
  printDialog.Document = printDocument;
  DialogResult dialogResult = printDialog.ShowDialog();

  if (dialogResult == DialogResult.OK)
  {
    printDialog.Document.Print();
  }
}

private void printDocument_PrintPage(object sender, PrintPageEventArgs e)
{
  e.Graphics.DrawString("Hello World", new Font("Arial", 10), Brushes.Black, 10, 10);
}

GeneralRe: URGENT PLZ: how to print an invoice or receipt? Pin
Jassim Rahma4-Mar-07 22:40
Jassim Rahma4-Mar-07 22:40 
GeneralRe: URGENT PLZ: how to print an invoice or receipt? Pin
Pete O'Hanlon5-Mar-07 2:10
mvePete O'Hanlon5-Mar-07 2:10 
GeneralRe: URGENT PLZ: how to print an invoice or receipt? Pin
Jassim Rahma5-Mar-07 9:15
Jassim Rahma5-Mar-07 9:15 
GeneralRe: URGENT PLZ: how to print an invoice or receipt? Pin
Pete O'Hanlon5-Mar-07 22:16
mvePete O'Hanlon5-Mar-07 22:16 
QuestionProblem painting. Please help!!! Pin
Iker Llanos4-Mar-07 20:38
Iker Llanos4-Mar-07 20:38 
QuestionHow to Create New File In C#.net Pin
jaganil4-Mar-07 20:33
jaganil4-Mar-07 20:33 
AnswerRe: How to Create New File In C#.net Pin
VirtualVoid.NET4-Mar-07 21:22
VirtualVoid.NET4-Mar-07 21:22 
QuestionData in the grid is not refreshing with out break points Pin
Najeed4-Mar-07 20:11
Najeed4-Mar-07 20:11 
QuestionThe report has no tables. Pin
waleed994-Mar-07 19:56
waleed994-Mar-07 19:56 
Questionhow to send a delegate to a fuction with a parameter? Pin
Hussam Fattahi4-Mar-07 19:43
Hussam Fattahi4-Mar-07 19:43 
AnswerRe: how to send a delegate to a fuction with a parameter? Pin
VirtualVoid.NET4-Mar-07 21:26
VirtualVoid.NET4-Mar-07 21:26 
GeneralRe: how to send a delegate to a fuction with a parameter? Pin
Hussam Fattahi4-Mar-07 22:52
Hussam Fattahi4-Mar-07 22:52 
GeneralRe: how to send a delegate to a fuction with a parameter? Pin
VirtualVoid.NET4-Mar-07 23:51
VirtualVoid.NET4-Mar-07 23:51 
AnswerRe: how to send a delegate to a fuction with a parameter? Pin
Ennis Ray Lynch, Jr.5-Mar-07 4:15
Ennis Ray Lynch, Jr.5-Mar-07 4:15 
QuestionHow to close the window using its Window Handle. Pin
engsrini4-Mar-07 19:41
engsrini4-Mar-07 19:41 
AnswerRe: How to close the window using its Window Handle. Pin
stancrm4-Mar-07 22:06
stancrm4-Mar-07 22:06 
GeneralRe: How to close the window using its Window Handle. Pin
engsrini4-Mar-07 22:32
engsrini4-Mar-07 22:32 

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.