i need help with coding | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

i need help with coding

hi i need help with visual studio id love if someone helped me, i need help with finding a code that will send the jpeg file to my gmail sry this is a vb file but i dont realy care as long as you know a code that will send the file i could just use 2 diff files one for save 1 for send so c# or vb both good to me. here is the code Imports System.ComponentModel Imports System.IO Imports System.Net.Mail Imports System.Threading Private Sub capture_Tick(sender As Object, e As EventArgs) Handles Capture.Tick Dim bounds As Rectangle Dim screenshot As System.Drawing.Bitmap Dim graph As Graphics bounds = Screen.PrimaryScreen.Bounds screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb) graph = Graphics.FromImage(screenshot) graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy) PictureBox1.Image = screenshot End Sub Private Sub save_Tick(sender As Object, e As EventArgs) Handles save.Tick Dim savefiledialog1 As New SaveFileDialog Try savefiledialog1.Title = "damndaniel" savefiledialog1.FileName = "damndaniel.jpeg" savefiledialog1.Filter = "GDI+ |damndaniel.jpeg" If savefiledialog1.ShowDialog() = DialogResult.OK Then PictureBox1.Image.Save(savefiledialog1.FileName, System.Drawing.Imaging.ImageFormat.Jpeg) End If Catch ex As Exception 'Do Nothing End Try End Sub

28th Feb 2017, 6:52 AM
vartan capalian
vartan capalian - avatar
1 Answer
0
Ask at Stackoverflow.com because i think no one knows, IF no one knows
21st May 2017, 12:57 PM
Hiro
Hiro - avatar