Click here to Skip to main content
15,915,501 members
Home / Discussions / C#
   

C#

 
AnswerRe: filesystem Pin
Guffa9-Nov-07 23:54
Guffa9-Nov-07 23:54 
GeneralRe: filesystem Pin
Sunil Wise9-Nov-07 23:59
professionalSunil Wise9-Nov-07 23:59 
QuestionFilling a typed dataset with multiple tables Pin
steve_rm9-Nov-07 22:59
steve_rm9-Nov-07 22:59 
AnswerRe: Filling a typed dataset with multiple tables Pin
Paul Conrad10-Nov-07 4:37
professionalPaul Conrad10-Nov-07 4:37 
QuestionRe: Filling a typed dataset with multiple tables Pin
steve_rm10-Nov-07 6:13
steve_rm10-Nov-07 6:13 
AnswerRe: Filling a typed dataset with multiple tables Pin
Paul Conrad10-Nov-07 6:38
professionalPaul Conrad10-Nov-07 6:38 
QuestionDynamically Printing a bitmap image Pin
sindhutiwari9-Nov-07 22:57
sindhutiwari9-Nov-07 22:57 
AnswerRe: Dynamically Printing a bitmap image Pin
Matthew Butler10-Nov-07 1:37
Matthew Butler10-Nov-07 1:37 
Try this...
(When PrintForm() is called, a printer settings dialog will popup. If OK is pressed, the printer will start printing... when the printer is ready to print it will call pdoc_PrintPge where you can alter its graphics object (e.Graphics).
(You will need to set e.HasMorePages to false to print just one page).

PrintDocument pdoc;
PrinterSettings pset;
 
public void PrintForm()
{
    pdoc = new PrintDocument();
    pset = new PrinterSettings();
 
    PrintDialog pdia = new PrintDialog();
    
    if (pdia.ShowDialog() == DialogResult.OK)
    {
        pset = pdia.PrinterSettings;
        pdoc.PrinterSettings = pset;
        pdoc.PrintPage += new PrintPageEventHandler(pdoc_PrintPage);
        pdoc.Print();
    }
}
 
private void pdoc_PrintPage(object sender, PrintPageEventArgs e)
{
    // You need to alter this to your own needs.
    e.Graphics.DrawImage(bmp, new Point(0, 0));
    e.HasMorePages = false;
}

I hope this helps.


Matthew Butler

QuestionSqlNotificationRequest Problem. Pin
hdv2129-Nov-07 21:51
hdv2129-Nov-07 21:51 
AnswerRe: SqlNotificationRequest Problem. Pin
sindhutiwari10-Nov-07 0:30
sindhutiwari10-Nov-07 0:30 
QuestionNow it is Official... I need help! Pin
kingletas9-Nov-07 20:22
kingletas9-Nov-07 20:22 
AnswerRe: Now it is Official... I need help! Pin
Christian Graus9-Nov-07 22:01
protectorChristian Graus9-Nov-07 22:01 
GeneralRe: Now it is Official... I need help! Pin
kingletas9-Nov-07 22:14
kingletas9-Nov-07 22:14 
GeneralRe: Now it is Official... I need help! Pin
Christian Graus9-Nov-07 22:20
protectorChristian Graus9-Nov-07 22:20 
GeneralRe: Now it is Official... I need help! Pin
Paul Conrad10-Nov-07 3:18
professionalPaul Conrad10-Nov-07 3:18 
GeneralRe: Now it is Official... I need help! Pin
kingletas10-Nov-07 15:34
kingletas10-Nov-07 15:34 
GeneralRe: Now it is Official... I need help! Pin
Paul Conrad10-Nov-07 16:10
professionalPaul Conrad10-Nov-07 16:10 
GeneralRe: Now it is Official... I need help! Pin
Guffa9-Nov-07 23:06
Guffa9-Nov-07 23:06 
QuestionBrowser control in C# 2.0 Pin
A.Asif9-Nov-07 19:41
A.Asif9-Nov-07 19:41 
AnswerRe: Browser control in C# 2.0 Pin
Rajasekharan Vengalil9-Nov-07 20:18
Rajasekharan Vengalil9-Nov-07 20:18 
GeneralRe: Browser control in C# 2.0 Pin
A.Asif9-Nov-07 20:44
A.Asif9-Nov-07 20:44 
GeneralRe: Browser control in C# 2.0 Pin
Christian Graus9-Nov-07 22:44
protectorChristian Graus9-Nov-07 22:44 
GeneralRe: Browser control in C# 2.0 Pin
A.Asif11-Nov-07 17:15
A.Asif11-Nov-07 17:15 
QuestionHow to create resizable controls Pin
A.Asif9-Nov-07 19:40
A.Asif9-Nov-07 19:40 
AnswerRe: How to create resizable controls Pin
Rajasekharan Vengalil9-Nov-07 20:19
Rajasekharan Vengalil9-Nov-07 20:19 

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.