| | |
Outputting In Listbox....
Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Sep 2008
Posts: 23
Reputation:
Solved Threads: 0
thanks again for your jx....i don't understand a few things....will u explain them...thank u...here is my updated code
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...
But somehow this line is giving problem
can u help me out with this....
VB.NET Syntax (Toggle Plain Text)
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick Dim btimeA As DateTime btimeA = FormatDateTime(Btime1.Value, DateFormat.LongTime) If FormatDateTime(TimeOfDay, DateFormat.LongTime) = btimeA.AddMinutes(20) Then MsgBox("Booking Time up Mr/Miss " & Bcusname1.Text & " is late,reservation canceled") Table1.BackColor = Color.PaleGreen status2 = "Available" End If 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)
Private Sub bubu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RButton.Click If tableno = 1 Then Dim bTimeUp As DateTime bTimeUp = TimeSerial(btime1.Hour - 2, btime1.Minute, btime1.Second) If TimeSerial(TimeOfDay, DateFormat.LongTime, DateFormat.LongTime) Then status1 = "Booked" Table1.BackColor = Color.Khaki Spanel.Hide() Rpanel1.Show() End If
But somehow this line is giving problem
VB.NET Syntax (Toggle Plain Text)
bTimeUp = TimeSerial(btime1.Hour - 2, btime1.Minute, btime1.Second)
can u help me out with this....
what problem come up?any errors?
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
•
•
Join Date: Sep 2008
Posts: 23
Reputation:
Solved Threads: 0
VB.NET Syntax (Toggle Plain Text)
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)
If TimeSerial(TimeOfDay, DateFormat.LongTime, DateFormat.LongTime)
value type date cannot be converted into integer....
i'm really confused now...
![]() |
Other Threads in the VB.NET Forum
- Previous Thread: save to Database
- Next Thread: Generating unique filenames
Views: 1707 | Replies: 12
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net .net2008 2008 access account application array arrays basic beginner browser button buttons center checkbox client code convert cuesent data database datagrid datagridview date datetimepicker design designer dissertation dissertations dissertationtopic eclipse excel fade filter forms generatetags gridview html images input insert intel internet lib listview mobile monitor net objects open panel passingparameters pdf picturebox port position print printing problem read remove richtextbox save searchvb.net select serial settings shutdown sorting sqlserver studio survey table temperature textbox time timer timespan transparency trim update user validation vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web webbrowser winforms wpf wrapingcode year






