Click here to Skip to main content
15,899,314 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Visual Studio 2008 installation question Pin
Luc Pattyn7-Jan-10 3:53
sitebuilderLuc Pattyn7-Jan-10 3:53 
GeneralRe: Visual Studio 2008 installation question Pin
Abhinav S7-Jan-10 5:12
Abhinav S7-Jan-10 5:12 
QuestionDataSet into DataGridView Pin
spences107-Jan-10 2:03
spences107-Jan-10 2:03 
AnswerRe: DataSet into DataGridView Pin
Dave Kreskowiak7-Jan-10 3:44
mveDave Kreskowiak7-Jan-10 3:44 
GeneralRe: DataSet into DataGridView Pin
spences107-Jan-10 4:28
spences107-Jan-10 4:28 
GeneralRe: DataSet into DataGridView Pin
Dave Kreskowiak7-Jan-10 4:36
mveDave Kreskowiak7-Jan-10 4:36 
AnswerRe: DataSet into DataGridView [modified] Pin
spences107-Jan-10 4:47
spences107-Jan-10 4:47 
QuestionHow to check if a ListView control has been clicked? Pin
Paul Hasler6-Jan-10 19:05
Paul Hasler6-Jan-10 19:05 
I have a Windows Form which uses a Timer to automatically close itself if no user interaction occurs within a given time.

The form contains a Label, a Button and a ListView control.

I basically want to run my UserHasClickedForm() sub if the user clicks anywhere in the form before the Timer ticks.

I've used the Click event of each of the controls as shown below.
The code works for each control except the ListView. If I click on the ListView control at run time, the click event does not get raised.
Anyone know why this is, and what I could do to fix the problem?

Private Sub MyPopupDialog_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Click
   UserHasClickedForm()
End Sub

Private Sub MyButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyButton.Click
   UserHasClickedForm()
End Sub

Private Sub MyLabel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyLabel.Click
   UserHasClickedForm()
End Sub

Private Sub MyListView_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyListView.Click
   UserHasClickedForm()
End Sub

AnswerRe: How to check if a ListView control has been clicked? Pin
Dave Kreskowiak7-Jan-10 0:33
mveDave Kreskowiak7-Jan-10 0:33 
GeneralRe: How to check if a ListView control has been clicked? Pin
Paul Hasler7-Jan-10 3:33
Paul Hasler7-Jan-10 3:33 
GeneralRe: How to check if a ListView control has been clicked? Pin
Dave Kreskowiak7-Jan-10 3:41
mveDave Kreskowiak7-Jan-10 3:41 
AnswerRe: How to check if a ListView control has been clicked? Pin
Luc Pattyn7-Jan-10 3:55
sitebuilderLuc Pattyn7-Jan-10 3:55 
GeneralRe: How to check if a ListView control has been clicked? Pin
Dave Kreskowiak7-Jan-10 4:37
mveDave Kreskowiak7-Jan-10 4:37 
AnswerRe: How to check if a ListView control has been clicked? Pin
DaveAuld7-Jan-10 6:10
professionalDaveAuld7-Jan-10 6:10 
AnswerRe: How to check if a ListView control has been clicked? Pin
Paul Hasler7-Jan-10 15:55
Paul Hasler7-Jan-10 15:55 
QuestionHow to convert open office document to pdf ?? Pin
JC.KaNNaN6-Jan-10 19:03
JC.KaNNaN6-Jan-10 19:03 
AnswerRe: How to convert open office document to pdf ?? [modified] Pin
JC.KaNNaN7-Jan-10 2:12
JC.KaNNaN7-Jan-10 2:12 
QuestionHide a complete row... Pin
MacIntyre6-Jan-10 18:04
MacIntyre6-Jan-10 18:04 
AnswerRe: Hide a complete row... Pin
Dave Kreskowiak7-Jan-10 0:30
mveDave Kreskowiak7-Jan-10 0:30 
QuestionHow to monitor drive activity in vb 2008 Pin
RevEd6-Jan-10 14:21
RevEd6-Jan-10 14:21 
AnswerRe: How to monitor drive activity in vb 2008 Pin
Dave Kreskowiak6-Jan-10 14:49
mveDave Kreskowiak6-Jan-10 14:49 
AnswerRe: How to monitor drive activity in vb 2008 Pin
Andy_L_J6-Jan-10 15:06
Andy_L_J6-Jan-10 15:06 
AnswerRe: How to monitor drive activity in vb 2008 Pin
Dimitri Witkowski6-Jan-10 22:26
Dimitri Witkowski6-Jan-10 22:26 
AnswerRe: How to monitor drive activity in vb 2008 Pin
RevEd7-Jan-10 15:53
RevEd7-Jan-10 15:53 
QuestionOffice version Problem in Outlook Add-in Pin
dcdhingra6-Jan-10 5:02
dcdhingra6-Jan-10 5:02 

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.