Click here to Skip to main content
15,902,114 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Hangman Game Pin
Christian Graus22-Apr-09 18:07
protectorChristian Graus22-Apr-09 18:07 
GeneralRe: Hangman Game Pin
elindel22-Apr-09 18:22
elindel22-Apr-09 18:22 
GeneralRe: Hangman Game Pin
ChandraRam23-Apr-09 0:17
ChandraRam23-Apr-09 0:17 
GeneralRe: Hangman Game Pin
Christian Graus23-Apr-09 0:44
protectorChristian Graus23-Apr-09 0:44 
GeneralRe: Hangman Game Pin
Tiyani Miyambo23-Apr-09 22:02
Tiyani Miyambo23-Apr-09 22:02 
QuestionHow to get the diffrence in time. VB.net #8 *** Thanks for all your help *** Pin
Laser Steve22-Apr-09 8:18
Laser Steve22-Apr-09 8:18 
AnswerRe: How to get the diffrence in time. VB.net #8 PinPopular
0x3c022-Apr-09 8:30
0x3c022-Apr-09 8:30 
AnswerRe: How to get the diffrence in time. VB.net #8 Pin
SayreCC22-Apr-09 21:34
SayreCC22-Apr-09 21:34 
Hi, I have example here on how to get the difference of date and time in C#.

Please follow these step:

Step: 1
Create a timer then set the interval to 10 and enabled to true.


Step: 2
Create 3 Label. Label1,Label2,Label3.


Step: 3
Create 2 Datepicker. Name it dtfrom and dtto.


Step: 4
Create a Button1


Then Copy this Code at your form:

private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{label1.Text = dtfrom.Value.ToString();}
private void timer1_Tick(object sender, EventArgs e)
{label2.Text = string.Format("{0:G}", DateTime.Now);}
private void button1_Click(object sender, EventArgs e)
{
TimeSpan ts = new TimeSpan();
DateTime dt1,dt2 = new DateTime();
dt1 = dtfrom.Value;
dt2 = Convert.ToDateTime(label2.Text);
ts=dt1.Subtract(dt2);
label3.Text = ts.ToString(); //Answer
}

for more information visit this: <a href="http://codeincsharp.blogspot.com/2008/05/how-to-get-date-and-time-difference-in.html">http://codeincsharp.blogspot.com/2008/05/how-to-get-date-and-time-difference-in.html</a>[<a href="http://codeincsharp.blogspot.com/2008/05/how-to-get-date-and-time-difference-in.html" target="_blank" title="New Window">^</a>]
AnswerRe: How to get the diffrence in time. VB.net #8 Pin
Lyndon Schroeder23-Apr-09 9:49
Lyndon Schroeder23-Apr-09 9:49 
AnswerRe: How to get the diffrence in time. VB.net #8 *** Thanks for all your help *** Pin
ormonds23-Apr-09 12:31
ormonds23-Apr-09 12:31 
Questioncombobox last item to first item Pin
johnny196322-Apr-09 1:53
johnny196322-Apr-09 1:53 
AnswerRe: combobox last item to first item Pin
Jay Royall22-Apr-09 2:31
Jay Royall22-Apr-09 2:31 
GeneralRe: combobox last item to first item Pin
johnny196322-Apr-09 4:50
johnny196322-Apr-09 4:50 
GeneralRe: combobox last item to first item Pin
Jay Royall22-Apr-09 5:06
Jay Royall22-Apr-09 5:06 
GeneralRe: combobox last item to first item Pin
johnny196322-Apr-09 5:55
johnny196322-Apr-09 5:55 
GeneralRe: combobox last item to first item [modified] Pin
Jay Royall22-Apr-09 6:21
Jay Royall22-Apr-09 6:21 
GeneralRe: combobox last item to first item Pin
johnny196322-Apr-09 10:16
johnny196322-Apr-09 10:16 
GeneralRe: combobox last item to first item Pin
johnny196322-Apr-09 10:32
johnny196322-Apr-09 10:32 
GeneralRe: combobox last item to first item [modified] Pin
Johan Hakkesteegt22-Apr-09 21:01
Johan Hakkesteegt22-Apr-09 21:01 
GeneralRe: combobox last item to first item Pin
johnny196322-Apr-09 21:37
johnny196322-Apr-09 21:37 
GeneralRe: combobox last item to first item Pin
Johan Hakkesteegt22-Apr-09 21:39
Johan Hakkesteegt22-Apr-09 21:39 
GeneralRe: combobox last item to first item Pin
johnny196322-Apr-09 23:32
johnny196322-Apr-09 23:32 
AnswerRe: combobox last item to first item [modified] Pin
Alan N22-Apr-09 12:18
Alan N22-Apr-09 12:18 
GeneralRe: combobox last item to first item Pin
johnny196322-Apr-09 20:15
johnny196322-Apr-09 20:15 
GeneralRe: combobox last item to first item Pin
Alan N22-Apr-09 22:50
Alan N22-Apr-09 22:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.