By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,403 Members | 880 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,403 IT Pros & Developers. It's quick & easy.

show Clock and Vertical label

P: n/a
Hi,

i work with VS 2005 and i need to know how to put the windows time(Clock) on
my label that it is on the form that i will see the full time include the
second as they move, and i need to know how to make a label with text on him
to vertical state and not the horizontal normal state.

Thanks
Jun 28 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Avi,

While this isn't completely accurate, I would have a timer that fires
every second. During the timer, I wold get the current time (through the
static Now property on the DateTime structure).

Then, you can paint that value on the label as you wish. You will have
to handle the drawing of the text in a vertical manner, but that shouldn't
be too hard.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Avi G" <Av**@discussions.microsoft.com> wrote in message
news:CB**********************************@microsof t.com...
Hi,

i work with VS 2005 and i need to know how to put the windows time(Clock)
on
my label that it is on the form that i will see the full time include the
second as they move, and i need to know how to make a label with text on
him
to vertical state and not the horizontal normal state.

Thanks

Jun 28 '06 #2

P: n/a
isn't a way to show the system clock on the form with out the "timer" in real
time even without the second but when the minute change on the system clock
it's also changed in the form

and about the vertical label i need to write text on the form like this
"
l
a
b
e
l
"
and now like this "label" how i do it?


"Nicholas Paldino [.NET/C# MVP]" wrote:
Avi,

While this isn't completely accurate, I would have a timer that fires
every second. During the timer, I wold get the current time (through the
static Now property on the DateTime structure).

Then, you can paint that value on the label as you wish. You will have
to handle the drawing of the text in a vertical manner, but that shouldn't
be too hard.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Avi G" <Av**@discussions.microsoft.com> wrote in message
news:CB**********************************@microsof t.com...
Hi,

i work with VS 2005 and i need to know how to put the windows time(Clock)
on
my label that it is on the form that i will see the full time include the
second as they move, and i need to know how to make a label with text on
him
to vertical state and not the horizontal normal state.

Thanks


Jun 28 '06 #3

P: n/a
Avi,

I actually looked for that, something that would give you a notification
when the system clock was updated, but I couldn't find anything. This is
why I suggested what I did.

As for the vertical label, I know what you need. You can make your own
easily by using MeasureString method on the Graphics instance. It will
allow you to measure the string and custom paint your own label.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Avi G" <Av**@discussions.microsoft.com> wrote in message
news:0D**********************************@microsof t.com...
isn't a way to show the system clock on the form with out the "timer" in
real
time even without the second but when the minute change on the system
clock
it's also changed in the form

and about the vertical label i need to write text on the form like this
"
l
a
b
e
l
"
and now like this "label" how i do it?


"Nicholas Paldino [.NET/C# MVP]" wrote:
Avi,

While this isn't completely accurate, I would have a timer that fires
every second. During the timer, I wold get the current time (through the
static Now property on the DateTime structure).

Then, you can paint that value on the label as you wish. You will
have
to handle the drawing of the text in a vertical manner, but that
shouldn't
be too hard.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Avi G" <Av**@discussions.microsoft.com> wrote in message
news:CB**********************************@microsof t.com...
> Hi,
>
> i work with VS 2005 and i need to know how to put the windows
> time(Clock)
> on
> my label that it is on the form that i will see the full time include
> the
> second as they move, and i need to know how to make a label with text
> on
> him
> to vertical state and not the horizontal normal state.
>
> Thanks


Jun 28 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.