--> .Net Controls 
Author Message
 --> .Net Controls

Hello everyone,

I have 2 question, thanks for your help

1. How do get the contents of a checklistbox control when multiple rows are
checked ?.
2. How can you make a function call when a tab is clicked.

Thank you



Thu, 22 Sep 2005 20:33:23 GMT  
 --> .Net Controls

Here are some answers to your questions:

1. How do get the contents of a checklistbox control when multiple rows are
checked ?.

Ans:
Use the SelectedItems collection to retrieve the items:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click

        Dim s As String
        For Each s In CheckedListBox1.SelectedItems
            Debug.WriteLine(s)

        Next
    End Sub

2. How can you make a function call when a tab is clicked.

Ans:
I assume you are referring to the Tab Control in which case you simply
define an event handler for the click event of each tabpage.
The designer drop downs can do this for you. Select the Tab page  in the
left hand drop down and then select the CLick event in the right hand
dropdown and you will get code like this:

    Private Sub TabPage1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles TabPage1.Click

    End Sub

Hope that helps.
Cameron McColl
Microsoft.



Tue, 04 Oct 2005 04:27:42 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. <<<<HELP- OLE container Control>>>>>>>>>

2. using The Shell Command >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

3. <<<<<<<<ComboBox>>>>>>>>>>>>

4. >>>>>>While Not rst.EOF

5. >>> Weird Data Control Pr

6. >>> Weird Data Control Problem

7. PSUDOCODE HELP >>>>>>>>>>>

8. C# >> VB.NET

9. MS Access(GIF)->VB->NET??

10. System.NET, System.Net.Sockets -> TCPListener Issue

11. VB.Net => Ado.Net = Stored Procedure

12. Remaining differences VB.NET <> C++.NET

 

 
Powered by phpBB® Forum Software