0

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.

3
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by choudhuryshouvi
0

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.

0

'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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.