Solved

Determination of current shift Visual Basic

Posted on 2013-01-22
5
161 Views
Last Modified: 2013-01-24
Hi, I need to build something in Visual Basic to determine the current shift. There are 4 shifts:

1. 06:50 AM
2. 12:50 PM
3. 06:50 PM
4. 12:50 AM

Can someone assist?
0
Comment
Question by:JessyRobinson1234
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38804597
You can compare the

Today.TimeOfDay

to those times

http://msdn.microsoft.com/en-us/library/system.datetime.timeofday.aspx
0
 

Author Comment

by:JessyRobinson1234
ID: 38804989
Thank you, silly question but where does Console.WriteLine Output go to ?
I tried Under Tools | Options | Debugging, General and Chose the Redirect all Output Window text to the immediate window but no luck.
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 38805171
That comes to command prompt if its a console app. If its winforms, use msgbox.
0
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 38805393
In the IDE, for WinForms apps, Console.WriteLine() will redirect to the "Output" window.
0
 

Author Closing Comment

by:JessyRobinson1234
ID: 38813832
Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with exporting to excel 4 46
vb.net and creating a class 5 31
Access/Visual Basic Question 3 43
Vb.net progressbar with timer1 in visual studio win app 11 38
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question