is it possible to save a visual basic form in jpeg format??? pls help... urgently...

Reply

Join Date: Dec 2007
Posts: 1
Reputation: crimson08 is an unknown quantity at this point 
Solved Threads: 0
crimson08 crimson08 is offline Offline
Newbie Poster

is it possible to save a visual basic form in jpeg format??? pls help... urgently...

 
0
  #1
Dec 13th, 2007
does anyone here know how to save a visual basic form in any file format such a jpeg??? im currently working on a program wherein i can view an image + i can add labels and save it in jpeg format. pls help. urgently needed... tnx in advance...
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 218
Reputation: hkdani is an unknown quantity at this point 
Solved Threads: 24
hkdani's Avatar
hkdani hkdani is offline Offline
Posting Whiz in Training

Re: is it possible to save a visual basic form in jpeg format??? pls help... urgently

 
0
  #2
Dec 13th, 2007
how to save a visual basic form in any file format such a jpeg?
A Visual Basic Form is not a picture form. It's a container for other objects.

In that sense, you can save the form with the picture on it.

There are other contols that you can use on the form to hold the picture: the PictureBox, and the Image control. You have more options with the PictureBox control

But you can set the picture property in the Property View and select a picture to be used on your form. Any controls dropped on the form will cover the picture.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 160
Reputation: kb.net is an unknown quantity at this point 
Solved Threads: 26
kb.net's Avatar
kb.net kb.net is offline Offline
Junior Poster

Re: is it possible to save a visual basic form in jpeg format??? pls help... urgently...

 
0
  #3
Dec 13th, 2007
Hi,

I previously had a function that gets a screen shot but i can't finf it any more. Look on the internet for a function that perform "Print Screen" and then a function to crop that picture.
It is never about the number of languages you know, you either have the logic of programming or you don't ...

Some of the codes I post are collected from different sites during the past couple of years, so I would like to thank them for their help and for enabling me to help.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,951
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: is it possible to save a visual basic form in jpeg format??? pls help... urgently

 
0
  #4
Dec 13th, 2007
Using the Win32 API, you need to:

1. CreateCompatibleDC to create a DC compatible with your window's DC
2. CreateCompatibleBitmap with the appropriate dimensions
3. SelectObject to select the window into the bitmap
4. BitBlt the window into the bitmap
5. Save the bitmap as Jpeg

Hope this helps.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 218
Reputation: hkdani is an unknown quantity at this point 
Solved Threads: 24
hkdani's Avatar
hkdani hkdani is offline Offline
Posting Whiz in Training

Re: is it possible to save a visual basic form in jpeg format??? pls help... urgently...

 
0
  #5
Dec 14th, 2007
how to save a visual basic form in any file format such a jpeg??
Okay, I'm confused. What do you really want to do: (1) take a screenshot of your form and save it in jpeg?, or (2) save an image to be used on your form?
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 8
Reputation: BC_Programming is an unknown quantity at this point 
Solved Threads: 0
BC_Programming BC_Programming is offline Offline
Newbie Poster

Re: is it possible to save a visual basic form in jpeg format??? pls help... urgently

 
0
  #6
Dec 19th, 2007
I'll assume that what is required is the ability to load a picture into the form, put labels on it, and save it again. To do so one would load the picture into the form (or picturebox) use the Print Method along with the currentX or CurrentY properties, and then do a SavePicture() back to a Jpeg.
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 51
Reputation: tom curren is an unknown quantity at this point 
Solved Threads: 3
tom curren's Avatar
tom curren tom curren is offline Offline
Unverified User

Re: is it possible to save a visual basic form in jpeg format??? pls help... urgently...

 
0
  #7
Jan 12th, 2008
Fascinating question. Assume you have good reason for it. Either you're wanting to display a form and it's specific content as a picture such as in a help display or a tutorial which is ultra easy and outlined above or you want to save a form in Jpeg format as you stated, which, simply put is a yes, but pointless since the form will not be reusable. The other possibility is super sophisticated and implies you want to smuggle forms out in Jpeg files where the form content is not displayed but hidden in the unused portions of the Jpeg file. That is called steganography and there are multiple sources available for that technology.
So which door is it, 1, 2 or 3?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC