943,981 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 749
  • VB.NET RSS
Nov 19th, 2008
0

radio button to display

Expand Post »
Hi All,
I have a problem with displaying items in a list box. I have inserted a radio button to display 15 lines of calculations, press the OK button and then display another 15 and so on.
VB.NET Syntax (Toggle Plain Text)
  1. intCounter1 += 1 'add one to counter
  2. intPaymentNum += 1 'add one to payment number
  3. decLoanAmount = decBalanceNew 'set new balance to loan amount
  4. intPauseLoop += 1 'add one to loop counter
  5.  
  6. 'button to display pages individually.
  7. If rbtnIndividualPages.Checked = True Then
  8. If (intPauseLoop <= 15) Then
  9. ElseIf (intPauseLoop >= 15) Then
  10. MsgBox("Press OK To Continue..", MsgBoxStyle.OkOnly)
  11. Me.lstOutput.Items.Clear()
  12. intPauseLoop = 1 'reset pause loop variable
  13. End If
  14. End If
The problem is if I don't select the radio button it displays all the results, with a scroll bar, which is fine if that is what I want. But if I want to display only 15 lines at a time, with the code above it doesn't work right. The OK button comes up each time but the output to the list doesn't come up each time, the output is only displayed for the last lines of the process and missing everything in between.
Help Please,
Ken
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
tyserman5674 is offline Offline
25 posts
since Sep 2008

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: data not adding to database properly!
Next Thread in VB.NET Forum Timeline: tcpstatistics null exception error





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


Follow us on Twitter


© 2011 DaniWeb® LLC