help with clock

P

pitt

i have datetimepicker with showup on form and customer must select time for
reservation but
if customer click on up or down button datetimepicker must raise(up)
orlowering(down) minute on my clock.

Only selected value can be something like that:

00:00
00:30
01:00
01:30
......
......



i put this code but doesn't work
Private Sub dtpVrijeme_ValueChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles dtpVrijeme.ValueChanged

Dim mjenjam As boolean
If mjenjam = True Then

Dim datum As Date

datum = dtpVrijeme.Value

mjenjam = False

dtpVrijeme.Value = (datum.AddMinutes(30))

mjenjam = True

End Sub



Can some on help me?
 
A

AHadiA

Hi
I can't understand your problem. what's usage of mjenjam variable?
where is End IF of
"If mjenjam = True Then " ?

A.Hadi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top