Outputting In Listbox....

Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2008
Posts: 23
Reputation: gopi17 is an unknown quantity at this point 
Solved Threads: 0
gopi17 gopi17 is offline Offline
Newbie Poster

Re: Outputting In Listbox....

 
0
  #11
Sep 25th, 2008
thanks again for your jx....i don't understand a few things....will u explain them...thank u...here is my updated code
  1. Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
  2. Dim btimeA As DateTime
  3. btimeA = FormatDateTime(Btime1.Value, DateFormat.LongTime)
  4. If FormatDateTime(TimeOfDay, DateFormat.LongTime) = btimeA.AddMinutes(20) Then
  5. MsgBox("Booking Time up Mr/Miss " & Bcusname1.Text & " is late,reservation canceled")
  6. Table1.BackColor = Color.PaleGreen
  7. status2 = "Available"
  8. End If
  9. End Sub

As you can see the above one is for the
timer....i would like to place the btimeUp in the button,coz once i click the button it changes in yellow...so, i decided to put the btimeup in the button...i did something like this...

  1.  
  2. Private Sub bubu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RButton.Click
  3. If tableno = 1 Then
  4. Dim bTimeUp As DateTime
  5. bTimeUp = TimeSerial(btime1.Hour - 2, btime1.Minute, btime1.Second)
  6. If TimeSerial(TimeOfDay, DateFormat.LongTime, DateFormat.LongTime) Then
  7. status1 = "Booked"
  8. Table1.BackColor = Color.Khaki
  9. Spanel.Hide()
  10. Rpanel1.Show()
  11. End If

But somehow this line is giving problem
  1. bTimeUp = TimeSerial(btime1.Hour - 2, btime1.Minute, btime1.Second)

can u help me out with this....
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Outputting In Listbox....

 
0
  #12
Sep 25th, 2008
what problem come up?any errors?
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 23
Reputation: gopi17 is an unknown quantity at this point 
Solved Threads: 0
gopi17 gopi17 is offline Offline
Newbie Poster

Re: Outputting In Listbox....

 
0
  #13
Sep 25th, 2008
  1. bTimeUp = TimeSerial(Btime1.Hour - 2, Btime1.Minute, Btime1.Second)

this line says tat 'hour' is not a member of ' System.Windows.Forms.DateTimePicker'

This line says
  1. If TimeSerial(TimeOfDay, DateFormat.LongTime, DateFormat.LongTime)

value type date cannot be converted into integer....

i'm really confused now...
Reply With Quote Quick reply to this message  
Reply

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



Other Threads in the VB.NET Forum


Views: 1707 | Replies: 12
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