[Tut]How to make a Photo Viewer - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19) +---- Thread: [Tut]How to make a Photo Viewer (/showthread.php?tid=11203) Pages:
1
2
|
[Tut]How to make a Photo Viewer - .Nielz - 08-12-2010 Make a new project called 'Photo Viewer' . Then add a 'OpenFileDialog' . This is how it should look like : Now dubble click your form and add this code : Code: Retry: Explaintion Code: Retry: Code: Try Code: OpenFileDialog1.Title = "Chose Photo" Code: OpenFileDialog1.FileName = "Photo" Code: OpenFileDialog1.Filter = "All Photo Formats |*.*" Code: OpenFileDialog1.ShowDialog() Code: Me.BackgroundImage = System.Drawing.Image.FromFile(OpenFileDialog1.FileName) Code: Me.Text = OpenFileDialog1.FileName Code: Dim w As Integer Code: Dim h As Integer Code: Me.Size = New Size(w, h) Code: If MessageBox.Show("Unknow Photo Format . Chose a other photo .", "Error", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) = Windows.Forms.DialogResult.OK Then Code: Else Screenshot This is a post to contribute to the forum , hope you like it RE: [Tut]How to make a Photo Viewer - Fragma - 08-12-2010 Pretty cool idea I suppose. Could easily be adapted into a pretty advanced photo viewer similar to iPhoto. RE: [Tut]How to make a Photo Viewer - .Nielz - 08-12-2010 (08-12-2010, 02:24 PM)Fragma Wrote: Pretty cool idea I suppose. Could easily be adapted into a pretty advanced photo viewer similar to iPhoto. I have seen already a bug , the picute isn't showed full because of the things on around the photo . But it's a basics's I guess RE: [Tut]How to make a Photo Viewer - Fragma - 08-12-2010 Yes it is only basic. Once my laptop is working I think I might start an advanced photo viewer. Credits to you for the idea lol. RE: [Tut]How to make a Photo Viewer - .Nielz - 08-13-2010 (08-12-2010, 04:17 PM)Fragma Wrote: Yes it is only basic. Once my laptop is working I think I might start an advanced photo viewer. Credits to you for the idea lol. Thanks and sure you can use the source code . It's a bit basic's , that's becaue I'm not that good at NET RE: [Tut]How to make a Photo Viewer - -BoodyE- - 08-14-2010 Nice TUT mate. First of its kind. RE: [Tut]How to make a Photo Viewer - XACTLYSIN - 08-14-2010 Thats nice of you to post this up. Thanks ill make my own in a bit, and try to use it. Ill see if it is really nice. Thank you anyways RE: [Tut]How to make a Photo Viewer - .Nielz - 08-14-2010 (08-14-2010, 01:19 PM)-BoodyE- Wrote: Nice TUT mate. First of its kind. I like posting new things RE: [Tut]How to make a Photo Viewer - mmki - 08-18-2010 Heaps good bro i havent seen a tut like this in a wihle RE: [Tut]How to make a Photo Viewer - DeFacto - 08-18-2010 It's great tutorial, thanks for share. I will try it. And I will try to make it more advanced. Keep up good work. |