Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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

NodeBB

  1. Home
  2. Programmation
  3. Développement de logiciels
  4. VB.Net
  5. Screeneur de screen dans un screenshot dans une capture d'écran =p

Screeneur de screen dans un screenshot dans une capture d'écran =p

Scheduled Pinned Locked Moved VB.Net
2 Posts 2 Posters 4.2k Views
  • 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.
  • mars073M
    mars073M
    mars073
    wrote on last edited by
    #1

    <p>
    </p><p>Bonjour,</p><p>
    je vais faire un tuto différent que d'habitude...</p><p>
    Alors il vous faut :</p><p>
    -1 Picturebox</p><p>
    -4 boutons (start;stop;supprimer;enregistrer)</p><p>
    -1 SaveFileDialog</p><p>
    -1 Timer (Interval: 1)</p><p></p><p>
    PS: si vous utilisez aussi des PicturesBoxs pour faire vos boutons en plus personnalisé, mettez comme couleur d'arrière plan: "transparent" dans l'onglet "web"</p><p></p><p>
    Double click sur le Timer mettez le code:</p>
    <pre class="ipsCode prettyprint lang-auto">
    Me.BackgroundImage = PictureBox1.Image
    Dim bounds As Rectangle
    Dim screenshot As System.Drawing.Bitmap
    Dim qraph As Graphics
    bounds = Screen.PrimaryScreen.Bounds
    screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
    qraph = Graphics.FromImage(screenshot)
    qraph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
    PictureBox1.Image = screenshot</pre>
    <p>Double click sur le bouton (start) mettez le code:</p>
    <pre class="ipsCode prettyprint lang-auto">
    Timer1.start()</pre>
    <p>Double click sur le bouton (stop) mettez le code:</p>
    <pre class="ipsCode prettyprint lang-auto">
    Timer1.stop()</pre>
    <p>Double click sur le bouton (supprimer) mettez le code:</p>
    <pre class="ipsCode prettyprint lang-auto">
    PictureBox1.Image = Nothing
    Me.BackgroundImage = Nothing</pre>
    <p>Double click sur le bouton (enregister) mettez le code:</p>
    <pre class="ipsCode prettyprint lang-auto">
    Dim savefiledialog1 As New SaveFileDialog
    Try
    savefiledialog1.Title = "Enregistrer"
    savefiledialog1.FileName = ".PNG"
    savefiledialog1.Filter = "Image PNG |
    .Png"
    If savefiledialog1.ShowDialog() = DialogResult.OK Then
    PictureBox1.Image.Save(savefiledialog1.FileName, System.Drawing.Imaging.ImageFormat.Png)

            End If
        Catch ex As Exception
    
        End Try</pre>
    

    <p>Programme : <span style="color:#FF0000;"><a href="http://www.mediafire.com/?guxuo3b77jpe3iu" rel="external nofollow">NSW.exe</a></span><span style="color:#C0C0C0;"><a href="http://www.virustotal.com/url-scan/report.html?id=59bfd33f44e824dbcc26de77ce88c88f-1298495448" rel="external nofollow"> </a></span></p>
    <p><span style="color:#C0C0C0;"><a href="http://www.virustotal.com/url-scan/report.html?id=59bfd33f44e824dbcc26de77ce88c88f-1298495448" rel="external nofollow">Contrôle VirusTotal</a></span></p><p>
    Cordialement,</p><p>
    Mars073</p>

    Aide à l'apprentissage et la réalisation pour des graphismes, des programmes, des sites ou autres.Signature aléatoire, proposez vous aussi une signature ici!

    1 Reply Last reply
    0
    • AzadA
      AzadA
      Azad
      wrote on last edited by
      #2

      <p>Excellent tutoriel !</p>
      <p>
      Merci bien, utile pour ceux qui se lancent dans le VB.Net et qui veulent s'exercer. 😉 </p>

      Administrateur du forum.
      Contactez-moi par message privé ou par mail.

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

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