Click here to Skip to main content
15,924,317 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionconvert negative value to positive Pin
isaii24-Oct-05 19:38
isaii24-Oct-05 19:38 
AnswerRe: convert negative value to positive Pin
Christian Graus24-Oct-05 20:36
protectorChristian Graus24-Oct-05 20:36 
AnswerRe: convert negative value to positive Pin
watagal25-Oct-05 5:33
watagal25-Oct-05 5:33 
QuestionDesktop Apps with web UI?? Pin
aloaiza24-Oct-05 15:11
aloaiza24-Oct-05 15:11 
AnswerRe: Desktop Apps with web UI?? Pin
Christian Graus24-Oct-05 15:22
protectorChristian Graus24-Oct-05 15:22 
AnswerRe: Desktop Apps with web UI?? Pin
Joshua Quick24-Oct-05 15:39
Joshua Quick24-Oct-05 15:39 
Questiontreeview and listview Pin
andy3824-Oct-05 15:05
andy3824-Oct-05 15:05 
AnswerRe: treeview and listview Pin
Steve Pullan24-Oct-05 15:21
Steve Pullan24-Oct-05 15:21 
Andy,

I think what you need to do is to trap the TreeView's ItemSelectChange event and populate the listview within it.

A sample of code from an old VB 6.0 program shows the method, but you'll need to find the exact name of the event to trap in VB.NET (look at the help for the TreeView class). Note that this example uses slightly different classes but the method is the same.

Hope this helps.

Private Sub tvIDMTreeView_ItemSelectChange(ByVal Item As Object, ByVal ObjType As IDMTreeView.idmObjectType)

    '
    ' Populate the ListView with the database query.
    ' I did this in a separate Sub but you could place your
    ' code in here.
    '
    Call PopulateListView(Item)
    
End Sub

Private Sub PopulateListView(ByRef oItem As Variant)

    lstIDMListView.ClearItems
    
    If Not oItem Is Nothing Then
        If TypeOf oItem Is idmobjects.Folder Then
            lstIDMListView.AddItems oItem.SubFolders, -1
            lstIDMListView.AddItems oItem.GetContents(idmFolderContentDocument), -1
        End If
    End If
    
End Sub



...Steve
Questionproblems with control colors when set the 256 colors Pin
isgrom24-Oct-05 9:57
isgrom24-Oct-05 9:57 
AnswerRe: problems with control colors when set the 256 colors Pin
StewBob24-Oct-05 10:33
StewBob24-Oct-05 10:33 
QuestionMultiple item ComboBox? Pin
DCgamer24-Oct-05 8:32
DCgamer24-Oct-05 8:32 
AnswerRe: Multiple item ComboBox? Pin
Greeky25-Oct-05 2:21
Greeky25-Oct-05 2:21 
Questionmps file format Pin
Anonymous24-Oct-05 7:15
Anonymous24-Oct-05 7:15 
Question.NET MODBUS component Pin
Dwayner7924-Oct-05 6:45
Dwayner7924-Oct-05 6:45 
AnswerRe: .NET MODBUS component Pin
Joshua Quick24-Oct-05 15:34
Joshua Quick24-Oct-05 15:34 
GeneralRe: .NET MODBUS component Pin
Dwayner7925-Oct-05 7:00
Dwayner7925-Oct-05 7:00 
QuestionRemote calls for a 3-Tier application Pin
Nito Jose24-Oct-05 3:55
Nito Jose24-Oct-05 3:55 
QuestionHow do I erase SQL Connections? Pin
Isobar24-Oct-05 2:18
Isobar24-Oct-05 2:18 
AnswerRe: How do I erase SQL Connections? Pin
rwestgraham24-Oct-05 9:09
rwestgraham24-Oct-05 9:09 
QuestionCancable DB-request Pin
evertbylt24-Oct-05 1:33
evertbylt24-Oct-05 1:33 
AnswerRe: Cancable DB-request Pin
S Douglas24-Oct-05 23:50
professionalS Douglas24-Oct-05 23:50 
GeneralRe: Cancable DB-request Pin
evertbylt25-Oct-05 2:46
evertbylt25-Oct-05 2:46 
GeneralRe: Cancable DB-request Pin
S Douglas25-Oct-05 3:27
professionalS Douglas25-Oct-05 3:27 
GeneralRe: Cancable DB-request Pin
evertbylt25-Oct-05 4:08
evertbylt25-Oct-05 4:08 
GeneralRe: Cancable DB-request Pin
S Douglas25-Oct-05 4:27
professionalS Douglas25-Oct-05 4:27 

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.