| | |
Outputting In Listbox....
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
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
| Thread Tools | Search this Thread |
.net .net2008 2008 access add advanced application array basic beginner browser button buttons center click code combo cpu cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic employees excel exists fade filter forms generatetags html images input intel internet listview map mobile module monitor msaccess mysql net number objects open pan panel pdf picturebox picturebox2 port position print printing printpreview regex remove reuse right-to-left save search searchvb.net serial settings shutdown socket sqldatbase sqlserver storedprocedure survey temperature textbox timer timespan transparency txttoxmlconverter user usercontol vb vb.net vba vbnet vista visual visualbasic visualbasic.net visualstudio.net web winforms wpf wrapingcode xml year






