Click here to Skip to main content
15,900,325 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Hangman Game Pin
elindel22-Apr-09 17:23
elindel22-Apr-09 17:23 
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 
Your problem lies at this line:
Laser Steve wrote:

TextBox1.Text = NowIs - NowWas


When you subtract two Dates, you get a TimeSpan structure. TextBox1.Text is a String type. TimeSpan and String aren't directly equatable. If you want to get the TimeSpan in minutes, use this instead:
TextBox1.Text = (NowIs - NowWas).TotalMinutes

It's really messy (if something goes wrong creating the TimeSpan, you get an ugly error. It also looks ugly), but it works. If you want to learn more about date and time, look into these links:
TimeSpan documentation
DateTime documentation
Date and time format strings (used in parsing methods as well as formatting, so these are important)
AnswerRe: How to get the diffrence in time. VB.net #8 Pin
SayreCC22-Apr-09 21:34
SayreCC22-Apr-09 21:34 
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 

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.