User Profile

Collapse

Profile Sidebar

Collapse
johnmcpherson1
johnmcpherson1
Last Activity: Mar 7 '08, 06:29 PM
Joined: Jul 9 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • johnmcpherson1
    replied to Array assignment
    Do a static declaration like so:

    Private m_CustomColors( ) As Integer = {&H0, &HFFFFFF, &H0, &HFFFFFF, &H0, &HFFFFFF, &H0, &HFFFFFF, &HFFFFFF, &H0, &HFFFFFF, &H0, &HFFFFFF, &H0, &HFFFFFF, &H0}

    I used this to initialize a ColorPicker dialog's custom colors to display an alternating black and white pattern.

    This provides a 16 element array....
    See more | Go to post

    Leave a comment:


  • Assuming:

    Dim oDataGrid as DataGrid

    If IsNothing(oData Grid.DataSource ) Then

    'do something...

    End If

    or,

    if you have set the DataGrid.DataSo urce to a DataTable then

    If CType(oDataGrid .DataSource, DataTable).Rows .Count = 0 Then

    'do something

    End If

    You can clear a DataTable in a DataGrid with:...
    See more | Go to post

    Leave a comment:


  • How to detect ctrl+Right Mouse Click in a vb datagrid

    What's the best method for detecting a ctrl key being depressed simultaniously with a right mouse click in a datagrid in a vb application?

    I need to get row, field resolution.

    Regards,

    John
    See more | Go to post
No activity results to display
Show More
Working...