Click here to Skip to main content
       

Visual Basic

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
Questionprogramming thesis VB.netmemberenzomatriz30 Nov '12 - 14:48 
AnswerRe: programming thesis VB.netmvpDave Kreskowiak1 Dec '12 - 3:17 
AnswerRe: programming thesis VB.netmemberZaf Khan1 Dec '12 - 10:01 
QuestionTAPI3 Call Id ??membertrashambishion30 Nov '12 - 11:20 
AnswerRe: TAPI3 Call Id ??memberEddy Vluggen30 Nov '12 - 23:36 
GeneralRe: TAPI3 Call Id ??membertrashambishion4 Dec '12 - 9:30 
GeneralRe: TAPI3 Call Id ??memberEddy Vluggen4 Dec '12 - 10:12 
GeneralRe: TAPI3 Call Id ??membertrashambishion6 Dec '12 - 12:19 
QuestionLoad pdf into picturebox binding to datasetmemberwaner michaud30 Nov '12 - 9:10 
AnswerRe: Load pdf into picturebox binding to datasetmvpDave Kreskowiak30 Nov '12 - 12:43 
GeneralRe: Load pdf into picturebox binding to datasetmemberwaner michaud4 Dec '12 - 9:13 
GeneralRe: Load pdf into picturebox binding to datasetmvpDave Kreskowiak4 Dec '12 - 12:31 
QuestionSaving a form and its contents as an imagemembertuffhamster30 Nov '12 - 4:37 
I have a form that has various pictureboxes that are populated by the user. Once the form has all the pictureboxes full, the user needs to save the whole form and its contents as a jpg. The only problem is that the only thing that is saved is the picturebox.1.
Case 1
    form2.PictureBox1.Image.Save(fs, _
       System.Drawing.Imaging.ImageFormat.Jpeg)
I can see that in Case 1 section I am telling the program to save the PictureBox1 in form 2 but I want it to merge all the PictureBoxs in form 2 and save as a jpg. Can anyone tell me where I am going wrong
 
Dim saveFileDialog1 As New SaveFileDialog()
     saveFileDialog1.Filter = "JPeg Image|*.jpg|Bitmap Image|*.bmp|Gif Image|*.gif"
     saveFileDialog1.Title = "Save an Image File"
     saveFileDialog1.ShowDialog()
 
     ' If the file name is not an empty string open it for saving.
     If saveFileDialog1.FileName <> "" Then
         ' Saves the Image via a FileStream created by the OpenFile method.
         Dim fs As System.IO.FileStream = CType _
            (saveFileDialog1.OpenFile(), System.IO.FileStream)
         ' Saves the Image in the appropriate ImageFormat based upon the
         ' file type selected in the dialog box.
         ' NOTE that the FilterIndex property is one-based.
         Select Case saveFileDialog1.FilterIndex
             Case 1
                 form2.PictureBox1.Image.Save(fs, _
                    System.Drawing.Imaging.ImageFormat.Jpeg)
 
             Case 2
                 Me.Button2.Image.Save(fs, _
                    System.Drawing.Imaging.ImageFormat.Bmp)
 
             Case 3
                 Me.Button2.Image.Save(fs, _
                    System.Drawing.Imaging.ImageFormat.Gif)
         End Select
 
         fs.Close()
     End If

AnswerRe: Saving a form and its contents as an imagememberEddy Vluggen30 Nov '12 - 23:41 
GeneralRe: Saving a form and its contents as an imagemembertuffhamster1 Dec '12 - 3:18 
GeneralRe: Saving a form and its contents as an imagememberEddy Vluggen1 Dec '12 - 4:04 
QuestionActivex can't create object error in VB6.0memberPradeep Londhe29 Nov '12 - 22:49 
AnswerRe: Activex can't create object error in VB6.0memberDeepak Shitole14 Dec '12 - 21:25 
QuestionActivex can't create object error in VB6.0memberPradeep Londhe29 Nov '12 - 22:49 
AnswerRe: Activex can't create object error in VB6.0memberSimon_Whale29 Nov '12 - 22:53 
Questionhow to give Chinese characters sa in put in a Text box in vb.netmemberramesh.mandapelly29 Nov '12 - 22:03 
AnswerRe: how to give Chinese characters sa in put in a Text box in vb.netmemberBernhard Hiller29 Nov '12 - 22:11 
QuestionHow to use c++ class into vba?membergui.cmsilva29 Nov '12 - 17:16 
QuestionHow Bind Multiple Columns under Same Label and store in database(VB 2010)membercharuwaka29 Nov '12 - 5:06 
QuestionHow to make Login Page For a Windows Application Form(VB 2010)membercharuwaka29 Nov '12 - 3:41 
AnswerRe: How to make Login Page For a Windows Application Form(VB 2010)memberZaf Khan1 Dec '12 - 8:09 
QuestionVB.NET / APPLICATION SETTINGSmembermebjen29 Nov '12 - 2:17 
AnswerRe: VB.NET / APPLICATION SETTINGSmvpDave Kreskowiak29 Nov '12 - 3:55 
GeneralRe: VB.NET / APPLICATION SETTINGSmembermebjen29 Nov '12 - 4:29 
GeneralRe: VB.NET / APPLICATION SETTINGSmvpDave Kreskowiak29 Nov '12 - 10:36 
GeneralRe: VB.NET / APPLICATION SETTINGSmembermebjen29 Nov '12 - 10:57 
GeneralRe: VB.NET / APPLICATION SETTINGSmvpDave Kreskowiak29 Nov '12 - 15:50 
QuestionMouse Down Event and Flag settingmemberbig_col28 Nov '12 - 19:53 
AnswerRe: Mouse Down Event and Flag settingmemberSimon_Whale28 Nov '12 - 22:46 
GeneralRe: Mouse Down Event and Flag settingmemberbig_col29 Nov '12 - 2:09 
GeneralRe: Mouse Down Event and Flag settingmemberSimon_Whale29 Nov '12 - 3:06 
AnswerRe: Mouse Down Event and Flag settingmemberbig_col29 Nov '12 - 20:19 
AnswerRe: Mouse Down Event and Flag settingmemberAlan N29 Nov '12 - 3:09 
Questionvb6 to .netmemberdvdljns28 Nov '12 - 7:42 
AnswerRe: vb6 to .netmemberZaf Khan28 Nov '12 - 16:58 
GeneralRe: vb6 to .netmemberdvdljns1 Dec '12 - 5:47 
GeneralRe: vb6 to .netmemberZaf Khan1 Dec '12 - 8:00 
AnswerRe: vb6 to .netmvpDave Kreskowiak28 Nov '12 - 18:04 
QuestionDeleting a datarow, creating a query to find the row. - ANSWERED, Thank yo [modified]memberJRHibner27 Nov '12 - 23:30 
AnswerRe: Deleting a datarow, creating a query to find the row.memberAndy_L_J28 Nov '12 - 22:30 
GeneralRe: Deleting a datarow, creating a query to find the row.memberJRHibner1 Dec '12 - 7:21 
GeneralRe: Deleting a datarow, creating a query to find the row.memberAndy_L_J1 Dec '12 - 20:27 
GeneralRe: Deleting a datarow, creating a query to find the row.memberJRHibner9 Dec '12 - 14:55 
QuestionModified Registry Keymemberalirezamansoori27 Nov '12 - 18:52 
AnswerRe: Modified Registry KeymvpRichard MacCutchan28 Nov '12 - 0:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 20 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid