Click here to Skip to main content
15,895,084 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to click a button in another app Pin
billiardpro1816-Jul-07 4:44
billiardpro1816-Jul-07 4:44 
QuestionLocking a record Pin
dptalt16-Jul-07 2:42
dptalt16-Jul-07 2:42 
AnswerRe: Locking a record Pin
Eduard Keilholz16-Jul-07 3:54
Eduard Keilholz16-Jul-07 3:54 
AnswerRe: Locking a record Pin
Dave Kreskowiak16-Jul-07 4:11
mveDave Kreskowiak16-Jul-07 4:11 
QuestionRND FUNCTION Pin
swallow4eva16-Jul-07 2:32
swallow4eva16-Jul-07 2:32 
AnswerRe: RND FUNCTION Pin
Tom Deketelaere16-Jul-07 2:50
professionalTom Deketelaere16-Jul-07 2:50 
GeneralRe: RND FUNCTION Pin
swallow4eva16-Jul-07 3:09
swallow4eva16-Jul-07 3:09 
GeneralRe: RND FUNCTION Pin
Tom Deketelaere16-Jul-07 3:30
professionalTom Deketelaere16-Jul-07 3:30 
here a (very) simpel example of how you can do this

Public Class Form1<br />
    Dim l As New List(Of hostels)<br />
    Private Sub RibbonDropDownButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RibbonDropDownButton1.Click<br />
        Dim i As Integer<br />
        Dim r As New Random<br />
        i = r.Next(0, 10)<br />
        For Each h As hostels In l<br />
            If h.id = i Then<br />
                MessageBox.Show(h.name)<br />
            End If<br />
        Next<br />
    End Sub<br />
<br />
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
        Dim i As Integer<br />
        For i = 0 To 10 'just to fill the list with some values<br />
            l.Add(New hostels(i, "test" & i))<br />
            i += 1<br />
        Next<br />
    End Sub<br />
End Class<br />
<br />
<br />
Public Class hostels<br />
    Dim iid As Integer<br />
    Dim sname As String<br />
    Public Property id() As Integer<br />
        Get<br />
            Return iid<br />
        End Get<br />
        Set(ByVal value As Integer)<br />
            iid = value<br />
        End Set<br />
    End Property<br />
    Public Property name() As String<br />
        Get<br />
            Return sname<br />
        End Get<br />
        Set(ByVal value As String)<br />
            sname = value<br />
        End Set<br />
    End Property<br />
    Public Sub New(ByVal iid As Integer, ByVal sname As String)<br />
        Me.id = iid<br />
        Me.name = sname<br />
    End Sub<br />
End Class


as I said: very simpel one
if you work with a db you'l have to fill the list with what you extract from you're db
depending on wich version you use of vb you might have to use an 2 dimansial array instead of a list

hope this helps you on you'r way
GeneralRe: RND FUNCTION Pin
swallow4eva16-Jul-07 4:18
swallow4eva16-Jul-07 4:18 
Questionweb services Pin
ankur123416-Jul-07 2:11
ankur123416-Jul-07 2:11 
AnswerRe: web services Pin
Dave Kreskowiak16-Jul-07 3:51
mveDave Kreskowiak16-Jul-07 3:51 
GeneralRe: web services Pin
ankur123416-Jul-07 17:42
ankur123416-Jul-07 17:42 
GeneralRe: web services Pin
ankur123416-Jul-07 18:28
ankur123416-Jul-07 18:28 
GeneralRe: web services Pin
Dave Kreskowiak17-Jul-07 1:57
mveDave Kreskowiak17-Jul-07 1:57 
Questionmdiclient Pin
WhiteGirl2316-Jul-07 1:13
WhiteGirl2316-Jul-07 1:13 
AnswerRe: mdiclient Pin
Tom Deketelaere16-Jul-07 1:43
professionalTom Deketelaere16-Jul-07 1:43 
AnswerRe: mdiclient Pin
Dave Kreskowiak16-Jul-07 2:08
mveDave Kreskowiak16-Jul-07 2:08 
AnswerRe: mdiclient Pin
Tom Deketelaere16-Jul-07 2:21
professionalTom Deketelaere16-Jul-07 2:21 
GeneralRe: mdiclient Pin
WhiteGirl2316-Jul-07 2:36
WhiteGirl2316-Jul-07 2:36 
Questionhow to fetch no.of data from sql using Macro(VB) Pin
Tech_spidy16-Jul-07 0:37
Tech_spidy16-Jul-07 0:37 
AnswerRe: how to fetch no.of data from sql using Macro(VB) Pin
Tom Deketelaere16-Jul-07 1:36
professionalTom Deketelaere16-Jul-07 1:36 
QuestionRE: SQL select error Pin
dienadel15-Jul-07 23:11
dienadel15-Jul-07 23:11 
AnswerRe: RE: SQL select error Pin
Tom Deketelaere16-Jul-07 0:30
professionalTom Deketelaere16-Jul-07 0:30 
Questioncan i able to create imageviewer control using picture box in vb.net Pin
babusat15-Jul-07 23:00
babusat15-Jul-07 23:00 
AnswerRe: can i able to create imageviewer control using picture box in vb.net Pin
The ANZAC15-Jul-07 23:04
The ANZAC15-Jul-07 23:04 

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.