radio button to display

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2008
Posts: 25
Reputation: tyserman5674 is an unknown quantity at this point 
Solved Threads: 0
tyserman5674 tyserman5674 is offline Offline
Light Poster

radio button to display

 
0
  #1
Nov 19th, 2008
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.
  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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC