943,959 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 2126
  • VB.NET RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Sep 25th, 2008
0

Re: Outputting In Listbox....

thanks again for your jx....i don't understand a few things....will u explain them...thank u...here is my updated code
VB.NET Syntax (Toggle Plain Text)
  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...

VB.NET Syntax (Toggle Plain Text)
  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
VB.NET Syntax (Toggle Plain Text)
  1. bTimeUp = TimeSerial(btime1.Hour - 2, btime1.Minute, btime1.Second)

can u help me out with this....
Reputation Points: 10
Solved Threads: 0
Light Poster
gopi17 is offline Offline
39 posts
since Sep 2008
Sep 25th, 2008
0

Re: Outputting In Listbox....

what problem come up?any errors?
Reputation Points: 1182
Solved Threads: 392
Posting Sensei
Jx_Man is offline Offline
3,142 posts
since Nov 2007
Sep 25th, 2008
0

Re: Outputting In Listbox....

VB.NET Syntax (Toggle Plain Text)
  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
VB.NET Syntax (Toggle Plain Text)
  1. If TimeSerial(TimeOfDay, DateFormat.LongTime, DateFormat.LongTime)

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

i'm really confused now...
Reputation Points: 10
Solved Threads: 0
Light Poster
gopi17 is offline Offline
39 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: save to Database
Next Thread in VB.NET Forum Timeline: Generating unique filenames





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


Follow us on Twitter


© 2011 DaniWeb® LLC