hi i m a learner of vb.net. can u tell me what should i do?i meant to say that i want to know frm where i start. and i also want to know the source code for viewing a .jpg file software.

If I were you I would start by looking up tutorials online. They're everywhere on the internet and vbnet also offers its own tutorials where you can create your first few applications yourself. Once you get the hang of it you'll come up with new ideas that you'll need to create your own programs for.

'take a picturebox,make its sizemode property to 'autosize'. rename the picturebox to 'pic1'. take an openfile dialog control and rename it to 'opfile'

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
opfile.Title = "Select JPG File"
opfile.InitialDirectory = "C:\"
opfile.Filter = "JPG Files|*.jpg"
opfile.ShowDialog()
If opfile.FileName <> "" Then
pic1.Image = Image.FromFile(opfile.FileName)
Me.Height = pic1.Height
Me.Width = pic1.Width
Button1.Top = pic1.Top + 10
Me.Left = (Screen.PrimaryScreen.Bounds.Width - Me.Width) / 2
Me.Top = (Screen.PrimaryScreen.Bounds.Height - Me.Height) / 2
End If
End Sub

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.