Click here to Skip to main content
15,888,323 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Windows Service - timer tick event not firing. Pin
m@u18-Dec-07 5:57
m@u18-Dec-07 5:57 
GeneralRe: Windows Service - timer tick event not firing. Pin
DigiOz Multimedia18-Dec-07 15:39
DigiOz Multimedia18-Dec-07 15:39 
QuestionMy break point not working properly Pin
poonams18-Dec-07 1:58
poonams18-Dec-07 1:58 
GeneralRe: My break point not working properly Pin
John_Adams18-Dec-07 11:25
John_Adams18-Dec-07 11:25 
GeneralRe: My break point not working properly Pin
Nilesh Hapse18-Dec-07 19:14
Nilesh Hapse18-Dec-07 19:14 
GeneralRe: My break point not working properly Pin
poonams19-Dec-07 1:37
poonams19-Dec-07 1:37 
GeneralImage Class in vb.net 2005 Pin
VB 8.018-Dec-07 1:24
VB 8.018-Dec-07 1:24 
GeneralRe: Image Class in vb.net 2005 Pin
C1AllenS18-Dec-07 3:57
C1AllenS18-Dec-07 3:57 
Hello,

You can use the ImageLocation property to retrieve the image path. However, you will have to
use the load() method of the Picture box to get the image in the box.

Lets say you have one picture box and two buttons. First button is used to browse for images and
second button is used to retrieve the image path. In this case, you can try the following code:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
<br />
        Dim ofd As New OpenFileDialog<br />
        ofd.Filter = "JPG|*.jpg|BMP|*.BMP|All Files|*.*"<br />
<br />
        Dim result As DialogResult<br />
        result = ofd.ShowDialog<br />
<br />
        If result = Windows.Forms.DialogResult.OK Then<br />
            <br />
            Me.PictureBox1.Load(ofd.FileName)<br />
<br />
        End If<br />
<br />
End Sub<br />
<br />
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click<br />
<br />
        MsgBox(Me.PictureBox1.ImageLocation)<br />
<br />
        <br />
End Sub


I hope this will help. If you have any doubts, please reply to this thread.

Regards,
Allen
Allen Smith

Software Engineer
ComponentOne LLC
www.componentone.com

GeneralRe: Image Class in vb.net 2005 Pin
VB 8.018-Dec-07 18:10
VB 8.018-Dec-07 18:10 
Generalbutton.preformclick Pin
break_day18-Dec-07 0:50
break_day18-Dec-07 0:50 
GeneralRe: button.preformclick Pin
CPallini18-Dec-07 1:07
mveCPallini18-Dec-07 1:07 
GeneralRe: button.preformclick Pin
Luc Pattyn18-Dec-07 3:50
sitebuilderLuc Pattyn18-Dec-07 3:50 
GeneralRe: button.preformclick Pin
Johan Hakkesteegt19-Dec-07 8:29
Johan Hakkesteegt19-Dec-07 8:29 
GeneralProblems with Forms in vb.net Pin
Vimalsoft(Pty) Ltd17-Dec-07 21:48
professionalVimalsoft(Pty) Ltd17-Dec-07 21:48 
GeneralRe: Problems with Forms in vb.net Pin
Christian Graus17-Dec-07 22:10
protectorChristian Graus17-Dec-07 22:10 
GeneralRe: Problems with Forms in vb.net Pin
Vimalsoft(Pty) Ltd17-Dec-07 22:35
professionalVimalsoft(Pty) Ltd17-Dec-07 22:35 
GeneralRe: Problems with Forms in vb.net Pin
Luc Pattyn18-Dec-07 0:44
sitebuilderLuc Pattyn18-Dec-07 0:44 
GeneralRe: Problems with Forms in vb.net Pin
Vimalsoft(Pty) Ltd18-Dec-07 0:46
professionalVimalsoft(Pty) Ltd18-Dec-07 0:46 
GeneralBack and forward buttons Pin
tellytub17-Dec-07 20:23
tellytub17-Dec-07 20:23 
GeneralRe: Back and forward buttons Pin
Christian Graus17-Dec-07 22:11
protectorChristian Graus17-Dec-07 22:11 
GeneralRe: Back and forward buttons Pin
tellytub18-Dec-07 3:46
tellytub18-Dec-07 3:46 
General[Message Deleted] Pin
dspandian17-Dec-07 19:42
dspandian17-Dec-07 19:42 
GeneralRe: please give code for generate report Pin
Vimalsoft(Pty) Ltd17-Dec-07 20:32
professionalVimalsoft(Pty) Ltd17-Dec-07 20:32 
GeneralRe: please give code for generate report Pin
CKnig17-Dec-07 20:33
CKnig17-Dec-07 20:33 
GeneralCompile Error (Visual Basic 6) Someone help!!! Pin
anthoy17-Dec-07 18:06
anthoy17-Dec-07 18:06 

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.