Hey guys! I've been working on this ping server project and I need some help rounding the numbers which appear. take a look at this picture : http://puu.sh/4Fqa5.png the label with the 00:00:00:0...:. Is there a way I can just make it show only 41?

Thanks.

Recommended Answers

All 2 Replies

You could use the SubString method.

Try this from a form event:
lblYourLable.Text = Microsoft.VisualBasic.Mid(lblYourlable.Text, 11, 2)
The lable will change to the 2 characters starting with the 11th character.
Good Luck!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.