Click here to Skip to main content
13,147,182 members (29,622 online)

Visual Basic

 
GeneralRe: TAPI3 Call Id ?? Pin
trashambishion4-Dec-12 9:30
membertrashambishion4-Dec-12 9:30 
GeneralRe: TAPI3 Call Id ?? Pin
Eddy Vluggen4-Dec-12 10:12
memberEddy Vluggen4-Dec-12 10:12 
GeneralRe: TAPI3 Call Id ?? Pin
trashambishion6-Dec-12 12:19
membertrashambishion6-Dec-12 12:19 
QuestionLoad pdf into picturebox binding to dataset Pin
waner michaud30-Nov-12 9:10
memberwaner michaud30-Nov-12 9:10 
AnswerRe: Load pdf into picturebox binding to dataset Pin
Dave Kreskowiak30-Nov-12 12:43
mvpDave Kreskowiak30-Nov-12 12:43 
GeneralRe: Load pdf into picturebox binding to dataset Pin
waner michaud4-Dec-12 9:13
memberwaner michaud4-Dec-12 9:13 
GeneralRe: Load pdf into picturebox binding to dataset Pin
Dave Kreskowiak4-Dec-12 12:31
mvpDave Kreskowiak4-Dec-12 12:31 
QuestionSaving a form and its contents as an image Pin
tuffhamster30-Nov-12 4:37
membertuffhamster30-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 image Pin
Eddy Vluggen30-Nov-12 23:41
memberEddy Vluggen30-Nov-12 23:41 
GeneralRe: Saving a form and its contents as an image Pin
tuffhamster1-Dec-12 3:18
membertuffhamster1-Dec-12 3:18 
GeneralRe: Saving a form and its contents as an image Pin
Eddy Vluggen1-Dec-12 4:04
memberEddy Vluggen1-Dec-12 4:04 
QuestionActivex can't create object error in VB6.0 Pin
Pradeep Londhe29-Nov-12 22:49
memberPradeep Londhe29-Nov-12 22:49 
AnswerRe: Activex can't create object error in VB6.0 Pin
Deepak Shitole14-Dec-12 21:25
memberDeepak Shitole14-Dec-12 21:25 
QuestionActivex can't create object error in VB6.0 Pin
Pradeep Londhe29-Nov-12 22:49
memberPradeep Londhe29-Nov-12 22:49 
AnswerRe: Activex can't create object error in VB6.0 Pin
Simon_Whale29-Nov-12 22:53
memberSimon_Whale29-Nov-12 22:53 
Questionhow to give Chinese characters sa in put in a Text box in vb.net Pin
ramesh.mandapelly29-Nov-12 22:03
memberramesh.mandapelly29-Nov-12 22:03 
AnswerRe: how to give Chinese characters sa in put in a Text box in vb.net Pin
Bernhard Hiller29-Nov-12 22:11
memberBernhard Hiller29-Nov-12 22:11 
QuestionHow to use c++ class into vba? Pin
gui.cmsilva29-Nov-12 17:16
membergui.cmsilva29-Nov-12 17:16 
QuestionHow Bind Multiple Columns under Same Label and store in database(VB 2010) Pin
charuwaka29-Nov-12 5:06
membercharuwaka29-Nov-12 5:06 
QuestionHow to make Login Page For a Windows Application Form(VB 2010) Pin
charuwaka29-Nov-12 3:41
membercharuwaka29-Nov-12 3:41 
AnswerRe: How to make Login Page For a Windows Application Form(VB 2010) Pin
Zaf Khan1-Dec-12 8:09
memberZaf Khan1-Dec-12 8:09 
QuestionVB.NET / APPLICATION SETTINGS Pin
mebjen29-Nov-12 2:17
membermebjen29-Nov-12 2:17 
AnswerRe: VB.NET / APPLICATION SETTINGS Pin
Dave Kreskowiak29-Nov-12 3:55
mvpDave Kreskowiak29-Nov-12 3:55 
GeneralRe: VB.NET / APPLICATION SETTINGS Pin
mebjen29-Nov-12 4:29
membermebjen29-Nov-12 4:29 
GeneralRe: VB.NET / APPLICATION SETTINGS Pin
Dave Kreskowiak29-Nov-12 10:36
mvpDave Kreskowiak29-Nov-12 10:36 

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.


Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 23 Sep 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid