Click here to Skip to main content
15,887,214 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: pointing to the wrong dbase Pin
Christian Graus15-May-08 15:07
protectorChristian Graus15-May-08 15:07 
GeneralRe: pointing to the wrong dbase Pin
zaimah15-May-08 16:00
zaimah15-May-08 16:00 
GeneralRe: pointing to the wrong dbase Pin
Christian Graus15-May-08 16:55
protectorChristian Graus15-May-08 16:55 
AnswerRe: pointing to the wrong dbase Pin
Thomas Stockwell19-May-08 8:08
professionalThomas Stockwell19-May-08 8:08 
QuestionHow to vibrate a gamepad within vb.net thus use of directinput? Pin
JUNEYT15-May-08 9:53
JUNEYT15-May-08 9:53 
AnswerRe: How to vibrate a gamepad within vb.net thus use of directinput? Pin
Vimalsoft(Pty) Ltd16-May-08 1:48
professionalVimalsoft(Pty) Ltd16-May-08 1:48 
QuestionSend image to another form Pin
winsane15-May-08 7:42
winsane15-May-08 7:42 
AnswerRe: Send image to another form Pin
JUNEYT15-May-08 10:29
JUNEYT15-May-08 10:29 
I assume that you need the name of selected item in the listbox such as (red car, Purple car, etc.) and your aim is to use these values on both forms. All you need is a Global variable what will keep the selected item of Listbox. Then you can use this variable to call the values from form1. Here is a brief example.


<br />
<br />
Public MySelectedItem as String 'Define this out of a procedure or function<br />
<br />
<br />
FORM1<br />
<br />
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
        Dim I as Int32 = Nothing<br />
            MySelectedItem = Listbox1.SelectedItems.Item(I)            <br />
    End Sub<br />
<br />
FORM2<br />
<br />
Select Case MySelectedItem<br />
<br />
       Case "Red car"<br />
             Form2.PictureBox1.Image = image.fromfile("Redcar.png")<br />
       Case "Purple car"<br />
<br />
End Selection<br />
<br />
<br />


I hope that helps


What a curious mind needs to discover knowledge is noting else than a pin-hole.


GeneralRe: Send image to another form Pin
winsane16-May-08 8:24
winsane16-May-08 8:24 
AnswerRe: Send image to another form Pin
Christian Graus15-May-08 11:33
protectorChristian Graus15-May-08 11:33 
GeneralRe: Send image to another form Pin
winsane15-May-08 17:38
winsane15-May-08 17:38 
GeneralRe: Send image to another form Pin
Christian Graus15-May-08 19:22
protectorChristian Graus15-May-08 19:22 
QuestionReg:Get Source Path Pin
P.T.R.K15-May-08 4:04
P.T.R.K15-May-08 4:04 
AnswerRe: Reg:Get Source Path Pin
helelark12315-May-08 4:35
helelark12315-May-08 4:35 
QuestionVB.NET with Access Database Pin
PCChuck15-May-08 4:01
PCChuck15-May-08 4:01 
AnswerRe: VB.NET with Access Database Pin
helelark12315-May-08 4:38
helelark12315-May-08 4:38 
GeneralRe: VB.NET with Access Database Pin
PCChuck15-May-08 5:18
PCChuck15-May-08 5:18 
GeneralRe: VB.NET with Access Database Pin
Steven J Jowett15-May-08 6:02
Steven J Jowett15-May-08 6:02 
QuestionDifferentiate form close event Pin
nishkarsh_k15-May-08 2:59
nishkarsh_k15-May-08 2:59 
AnswerRe: Differentiate form close event Pin
Rupesh Kumar Swami15-May-08 3:16
Rupesh Kumar Swami15-May-08 3:16 
GeneralRe: Differentiate form close event Pin
nishkarsh_k15-May-08 3:23
nishkarsh_k15-May-08 3:23 
AnswerRe: Differentiate form close event Pin
helelark12315-May-08 3:29
helelark12315-May-08 3:29 
GeneralRe: Differentiate form close event Pin
nishkarsh_k15-May-08 3:32
nishkarsh_k15-May-08 3:32 
GeneralRe: Differentiate form close event Pin
mr_lasseter15-May-08 4:05
mr_lasseter15-May-08 4:05 
GeneralRe: Differentiate form close event Pin
nlarson1115-May-08 4:07
nlarson1115-May-08 4:07 

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.