943,696 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 13166
  • VB.NET RSS
Sep 21st, 2007
0

I want to count the number of clicks of buttom

Expand Post »
hi every one
in my vb.net program I need to keep track if the buttom had been clicked befor or not or how many times it had beed clicked. I cant find the property
can u help me please.
thanks in advanced
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
apchidara is offline Offline
18 posts
since Aug 2007
Sep 21st, 2007
0

Re: I want to count the number of clicks of buttom

try ,using viewstate or cookies to find the number of hits for a particular button in page_load()..
i.e, declare an global variable
and on button_click function ....
Reputation Points: 5
Solved Threads: 1
Junior Poster in Training
preetham.saroja is offline Offline
82 posts
since Jun 2007
Sep 21st, 2007
0

Re: I want to count the number of clicks of buttom

Is it a Vb Winform Windows app or a ASP.NET Web app using VB.NET?
Reputation Points: 25
Solved Threads: 18
Practically a Master Poster
binoj_daniel is offline Offline
645 posts
since Dec 2006
Sep 21st, 2007
0

Re: I want to count the number of clicks of buttom

'Try this

Dim intBtnClkCount as Integer = 0
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

intBtnClkCount+= 1

MessageBox.Show("Button1 has been clicked" & intBtnClkCount.ToString() & " times.")
End Sub
Reputation Points: 25
Solved Threads: 18
Practically a Master Poster
binoj_daniel is offline Offline
645 posts
since Dec 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: web page is open or not ?????
Next Thread in VB.NET Forum Timeline: Load form at statup is condition is met





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC