Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Printing a Form -> Texbox is emty :(

Printing a Form -> Texbox is emty :(

Scheduled Pinned Locked Moved Windows Forms
csharpgraphicshelp
2 Posts 2 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gant112
    wrote on last edited by
    #1

    Hi, i have serious problems to print a Windows Form with some Textboxes... The printing should work in background... I really can't find a working solution.. so please help me!!! ' that form with textbox controls Dim rForm As MyForm = New MyForm () ' image to save / or to print formImage = New Bitmap(rForm.Width, rForm.Height) Dim rec As New Rectangle(0, 0, formImage.Width, formImage.Height) 'print the form rForm.DrawToBitmap(formImage, rec) 'save as image formImage.Save("d:\screen.bmp") The code can be on c# or vb.net!!! Thank's for your answers!!!

    A 1 Reply Last reply
    0
    • G gant112

      Hi, i have serious problems to print a Windows Form with some Textboxes... The printing should work in background... I really can't find a working solution.. so please help me!!! ' that form with textbox controls Dim rForm As MyForm = New MyForm () ' image to save / or to print formImage = New Bitmap(rForm.Width, rForm.Height) Dim rec As New Rectangle(0, 0, formImage.Width, formImage.Height) 'print the form rForm.DrawToBitmap(formImage, rec) 'save as image formImage.Save("d:\screen.bmp") The code can be on c# or vb.net!!! Thank's for your answers!!!

      A Offline
      A Offline
      atulonweb hotmail com
      wrote on last edited by
      #2

      Hi To print window form you have to use window API This may help you http://www.knowdotnet.com/articles/printform.html[^] Atul Kumar

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups