Click here to Skip to main content
15,898,035 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to separate the hours and min.? because the hours is only added to min.? Pin
Real Corks15-Mar-16 12:36
Real Corks15-Mar-16 12:36 
GeneralRe: How to separate the hours and min.? because the hours is only added to min.? Pin
Eddy Vluggen15-Mar-16 13:45
professionalEddy Vluggen15-Mar-16 13:45 
GeneralRe: How to separate the hours and min.? because the hours is only added to min.? Pin
Dave Kreskowiak16-Mar-16 4:38
mveDave Kreskowiak16-Mar-16 4:38 
GeneralRe: How to separate the hours and min.? because the hours is only added to min.? Pin
Richard MacCutchan16-Mar-16 5:35
mveRichard MacCutchan16-Mar-16 5:35 
GeneralRe: How to separate the hours and min.? because the hours is only added to min.? Pin
Real Corks17-Mar-16 1:24
Real Corks17-Mar-16 1:24 
GeneralRe: How to separate the hours and min.? because the hours is only added to min.? Pin
Richard Deeming17-Mar-16 2:01
mveRichard Deeming17-Mar-16 2:01 
GeneralRe: How to separate the hours and min.? because the hours is only added to min.? Pin
Richard MacCutchan15-Mar-16 10:35
mveRichard MacCutchan15-Mar-16 10:35 
AnswerRe: How to separate the hours and min.? because the hours is only added to min.? Pin
Eddy Vluggen15-Mar-16 10:10
professionalEddy Vluggen15-Mar-16 10:10 
Like this;
C#
namespace ConsoleApplication12
{
    class Program
    {
        static void Main(string[] args)
        {
            DateTime date1 = new DateTime(year: 2491, month: 5, day: 1, hour: 0, minute: 0, second: 5);
            DateTime date2 = new DateTime(year: 2491, month: 5, day: 1, hour: 17, minute: 15, second: 3);
            TimeSpan ts = date1 - date2;
            Console.WriteLine(ts.ToString());
            Console.WriteLine(string.Format("The bomb will explode in {0:%h} hours, {0:%m} minutes and {0:%s} seconds.", ts));
            Console.ReadKey();
        }
    }
}

..but then in VB, right?
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

JokeRe: How to separate the hours and min.? because the hours is only added to min.? Pin
Sascha Lefèvre15-Mar-16 10:44
professionalSascha Lefèvre15-Mar-16 10:44 
GeneralRe: How to separate the hours and min.? because the hours is only added to min.? Pin
Eddy Vluggen15-Mar-16 11:02
professionalEddy Vluggen15-Mar-16 11:02 
RantInsert data in multiple table and having froreign key... Pin
Member 1238897313-Mar-16 20:10
Member 1238897313-Mar-16 20:10 
GeneralRe: Insert data in multiple table and having froreign key... Pin
Mycroft Holmes13-Mar-16 21:25
professionalMycroft Holmes13-Mar-16 21:25 
QuestionExperiencing odd behavior when adding new row to datagridview (databound to bs) Pin
Jon_Boy4-Mar-16 3:45
Jon_Boy4-Mar-16 3:45 
AnswerRe: Experiencing odd behavior when adding new row to datagridview (databound to bs) Pin
Eddy Vluggen4-Mar-16 12:04
professionalEddy Vluggen4-Mar-16 12:04 
GeneralRe: Experiencing odd behavior when adding new row to datagridview (databound to bs) Pin
Jon_Boy4-Mar-16 14:39
Jon_Boy4-Mar-16 14:39 
GeneralRe: Experiencing odd behavior when adding new row to datagridview (databound to bs) Pin
Eddy Vluggen4-Mar-16 23:37
professionalEddy Vluggen4-Mar-16 23:37 
GeneralRe: Experiencing odd behavior when adding new row to datagridview (databound to bs) Pin
Jon_Boy9-Mar-16 10:45
Jon_Boy9-Mar-16 10:45 
GeneralRe: Experiencing odd behavior when adding new row to datagridview (databound to bs) Pin
Eddy Vluggen9-Mar-16 10:58
professionalEddy Vluggen9-Mar-16 10:58 
QuestionCan someone help me "How to compute late and total hours and save to another column same datagrid view with this code"? Pin
Real Corks2-Mar-16 12:13
Real Corks2-Mar-16 12:13 
AnswerRe: Can someone help me "How to compute late and total hours and save to another column same datagrid view with this code"? Pin
Richard MacCutchan2-Mar-16 21:12
mveRichard MacCutchan2-Mar-16 21:12 
AnswerRe: Can someone help me "How to compute late and total hours and save to another column same datagrid view with this code"? Pin
Richard Deeming2-Mar-16 22:34
mveRichard Deeming2-Mar-16 22:34 
GeneralRe: Can someone help me "How to compute late and total hours and save to another column same datagrid view with this code"? Pin
Richard MacCutchan2-Mar-16 22:49
mveRichard MacCutchan2-Mar-16 22:49 
GeneralRe: Can someone help me "How to compute late and total hours and save to another column same datagrid view with this code"? Pin
Real Corks3-Mar-16 19:25
Real Corks3-Mar-16 19:25 
GeneralRe: Can someone help me "How to compute late and total hours and save to another column same datagrid view with this code"? Pin
Richard MacCutchan3-Mar-16 21:40
mveRichard MacCutchan3-Mar-16 21:40 
Questioncan someone help me to fix this in mysql vb "INVALID ATTEMP TO READ WHEN READER IS CLOSE "? Pin
Real Corks2-Mar-16 6:40
Real Corks2-Mar-16 6:40 

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.