VS2010 find lag and check the if condition and send the mail function

Hi all

I am very new to this VS2010 (vb.net) programming...
Actually I want to find the difference between the preset time and current system, if the lag more than the preset time, then I send a mail by outlook. but I wrote something, could you please check and clarify this...
Much appreciate your help... I hope you understand the encodings below. in the meantime...
Public void FindTimeDifference()
Try
Var t1 As Date = cbshifttime. Text 'date and time - change of time '.
T2 As Date = DateTime.Now ' now - at the current time of the system
Var elapsed As TimeSpan = t2 - t1
MessageBox.Show (elapsed. TotalMinutes)
If
End If
Catch ex As Exception
MessageBox.Show (ex.) Message)
End Try
End Sub
Private Sub btnlogin_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnlogin. Click
' Dim tmediff As String
' Tme As String = Format (now, "HH: mm: tt")
' Dim tmenw As String = Me.cbshifttime.Text ' 3:30-12:30-19-len
' Dim tmenwhrmin As String = Microsoft.VisualBasic.Left (tmenw, 8) ' 15:30
' Dim tmenwhrmin1 As String = Microsoft.VisualBasic.Left (tmenw, 6) ' 03:30
' Dim tmenwsec As String = Microsoft.VisualBasic.Right (tmenwhrmin, 2) ' PM
Dim t1 As Date = New Date(2012, 9, 16, 18, 3, 25) ' date and time - time offset
T2 As Date = DateTime.Now ' now - at the current time of the system
Var elapsed As TimeSpan = t2 - t1
«MessageBox.Show (elapsed.» TotalMinutes)
If getUserDetails (userAcct) then
writeLogs (userAcct (2) & 'connected')
End If
User name Dim As String
username = getUserName()
CheckUser (username, Me.txtempid.Text, Me.txtpassword.Text, Me.cbshifttime.Text)
Tme if <> then tmenw
tmediff = tme - tmenw
End If
'Compare AM or PM.
If tmenwhrmin1 = Microsoft.VisualBasic.Left(tme, 5) Then
If tmenwsec = Microsoft.VisualBasic.Right(tme, 2) Then
On the other
CreateMail ("* address email is removed from the privacy *", "* address email is removed from the privacy *", "* address email is removed from the privacy *", "Login delay", "HI you have loged wrongly")
End If
On the other
End If

Hello

The question that you have posed would be better suited in MSDN. I suggest you post in the MSDN forums.
http://social.msdn.Microsoft.com/forums/en/category/VisualBasic

Tags: Windows

Similar Questions

  • Cannot delete the file. Says "not not found could not find this item check the location of this object and try again."

    Cannot delete the file.  Says "not not found could not find this item check the location of this object and try again."

    I got this file from my friend got sent - is a word document, I had on their computer.  So I tried to use Disk Cleanup to delete temporary files, temporary internet files and files program downloaded.  Does not work.

    When I check the properties, there is no security tab so I can't transfer ownership in this way.

    I don't want to experiment using the way of the transfer of ownership command prompt as the name of the file is several sentences long.  I can't rename it either, of course.

    Windows 7, a week and I already have a stupid problem which has already lost an hour of my time.

    What I did was to create a Notepad file that was empty and saved in the same location as the file that won't go away.  Once registered.  I click with the right button on the new file and rename the exact name as the file problem.  Don't forget to change the file extension (ex: .doc)

    ex file problem: word.doc

    new file: word.doc

    as long as they match eachother exactly you should see the file problem disappear and once that's gone, you can delete the new file created.

  • If someone checks the mail from yahoo to my computer, their code is displayed if the first letter from my ID is the same with theirs. How can I delete their history on my computer?

    If someone checks the mail from yahoo to my computer, their code is displayed if the first letter from my ID is the same with theirs. How can I delete their history on my computer?

    Hey ioanaatc,

    Go in Tools > Options > Security tab click on passwords saved. This will give you a list of sites that you have saved passwords yahoo just find and delete other connections

    There are a lot of useful information in this article on the Firefox Password Manager. He should answer any other questions you might have.

    It can be saved as Auto form fill data. If this is the case, the article I just linked will show you you how to remove these entries as well.

    Hope this helps!

  • Check the archiving functionality does not work

    Hello

    I'm trying to find out what is the syntax for checking the Archives after it is created. The example of gui says:

    Path local example: D:\work\archive

    I guess that's the part of the path just before the directory AABackup but when I run a check it says that he succeeded for a second and he said: 0 bytes verified.

    I also tried the AABackup directory and also the hexadecimal numbered directory as well.

    I also tried with and without creeping.

    All the ideas!

    Appassure version is 5.4.2.228 running on Windows 2008 R2

    Hi Darryn.hatfield,

    Check in the 5.4.2.228 build archiving functionality verifies the existence of the archive files must include (datafile.bin, index.bin, etc.). Build in the future (5.5.1 and higher) it will run check the metadata feature, of the integrity of the data, checksum data integrity and mark location of archive.

  • How to remove the password requirement to receive and send e-mail

    How can I remove the requirement to enter a password every time I opened TB and whenever I send an email?

    You can tell Thunderbird to remember the password for you, so you won't have to enter each time.
    Check the box when you get the password.

  • Response to the Mail function works not

    When I try to reply to an email in Mail, opens the window of response but the response address does not appear in the address box and the cursor flash, but I can't type the address under. By clicking on the button close the answer window will not close and I can only get rid of it by quitting mail altogether.

    Suggestions anyone?

    Rob

    Exit the Mail.

    In the Finder, select go, then navigate to the folder. Copy and paste the path below and click GO:

    ~/Library/containers/com. Apple.mail

    Move the entire folder com.apple.mail to the Recycle Bin, open Mail and test. If all goes well, you can empty the trash. You may need to re create your user settings.

  • cannot receive and send e-mail

    I'm used to be able to receive and send emails from outlook express. However, recently, I was asked to provide my ID and password of windows security and it will not connect despite numerous attempts. Then I changed my setting, the port number SSl etc, and every time I get a different error message. After 4 hours looking at all the answers and try all the suggestions, I always get errors like the one below:

    Account: 'mail.deepwatercapital.com', server: 'mail.deepwatercapital.com', Protocol: POP3, server response: '-ERR failed authorization ', Port: 110, secure (SSL): no, Server error: 0x800CCC90, error number: 0x800CCC92

    and when I go in to check the SSL, that's what I get:

    The connection to the server has failed. Account: 'mail.deepwatercapital.com', server: 'mail.deepwatercapital.com', Protocol: POP3, Port: 995, secure (SSL): Yes, Socket error: 10060, error number: 0x800CCC0E

    I also changed the number of port 2525, 25, 587, etc. and every time I get a different error message... HELP HELP HELP!

    Vista is not Outlook Express; and here is the forum for Windows Vista Mail.

    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.outlookexpress.General&cat=en_us_67ae557e-CEEA-4691-9CF6-efbe673e7b70&lang=en&CR=us

    Discussions in microsoft.public.outlookexpress.general

    They will help you in the Outlook discussion group to express above.

    See you soon.

    Mick Murphy - Microsoft partner

  • I can't be able to find/doiwnload software check the battery.

    I go to my Advisor of PD to check my status of the battery (G60-120us Notebook) and it says unknown state, download the HP battery check now.   If I click on it it brings me to the download and support page, but there is no HP Battery Check download it that I can find!

    Please read the information located at this link: http://support.hp.com/us-en/document/c00821429.

    According to the information provided in this link, you can download and use as part of the HP Support Assistant for WIN Vista and WIN 7.

    Which computers laptops HP and Compaq HP Battery Check does support?

    HP Battery Check supports consumption all HP Vista and Windows 7, and commercial notebook PC.
  • Rescue and recovery cannot find backups - EXCEPT in the restore function. Help

    I recently optimized files, including placement
    the disk - machine now flying.  "I wanted to start from scratch with R & R).  Thus,.
    delete all local backups and USB.

    I started a basic backup - initialized manually, close,
    restarted, returned the top could not backups - display Message "No. BACKUPS
    FOUND "hen"show all the backups", or"delete backups"Advanced"
    menu.  However I can find them using the RESTORE OF THE BACKUP.

    Repeated starting a new backup, same results exactly, except
    now I have two BASE backups.  I even started in the R & TV R
    environment may find things out there.  No luck - no possibility to launch a backup Boot TV
    environment, but could restore from the backup.

    I don't see any other choice other that uninstall 3.01?  Do you have?  However, the most recent
    version there is 4.22... Any reason why I shouldn't go to the
    new version?  I read all warning, installation notes, bugs, etc., none seem to apply to me.

    If anyone has any ideas, I would be happy, or if you know any
    reason why 4.22 isn't a good option...?

    Thanks in advance

    Type of computer rescue & Recovery version 3.01 T60 = 2623 - model.
    D7U

    All, I finally managed to replace the version of R R & on the Master Boot Record.

    First, I started with a R boot drive at & R.  You can either use one you did with R & R when (if) you put always a full backup on CD (which I do every year), or the startup disk (a, a) that Lenovo is sent to you with the 7 product Recovery CD, you can restore your PC to specifically state that you received from the factory or store (if you have purchased again).

    R & R starts automatically on startup with the version of R CD R & makes the startup disk (be it when you or Lenovo is the startup disk.)

    My experience is that after you start with this CD, I shut down R & R normally, then restarted the computer by using the MBR (pushing the Thinkvantage or F11 key at the beginning in the trunk) and voila - it starts with the same version that you started with the CD in the last step.

    I also discovered that if you use R & R to restore to a time when the Version of R & R was different from what is working on the MBR, which also change the MBR.  Again, both are good information that will certainly be useful trivia some time.

    Thanks again to all who jumped and provided information that ultimatelly led to the solution

    concerning

    Fred

  • The Hotmail icon in another computer, after checking the mails on this computer.

    Original title: my e-mail address I con anothers computer.

    My sister and new mother computers now have my hotmail icon with my name on their computers, after I checked my e-mail on their computer.  Why is this and how to get down them?

    Hi Patty,.

    In dealing with the problem with Hotmail, I recommend you contact Hotmail for assistance support.

    For more information, please visit: Windows Live Hotmail: main problems and Support information

    Hope the helps of information.

  • Check the mail of the cell Samsung Gio

    Original title: mail
    Currently, I get my emails through Windows mail on my pc. I have a Samsung laptop, Gio and I would like to be able to check my e-mail from my cell phone. Any suggestions?

    Hello

    Thanks for posting the request in the Microsoft community!

    To check mail from cell phone Samsung Gio, you can communicate with the support of Samsung.
    GALAXY Gio
    http://www.Samsung.com/hk_en/support/main/supportMain.do

  • Computer went down during a storm and when he came back to the top, all of my Inbox and sending e-mails have been deleted.

    Computer went down during a storm, all messages in Inbox / sending have been deleted (at least I can't find them)

    original title: Inbox/Outbox messages deleted

    See www.oehelp.com/OETips.aspx#4 possible the entire message store is lost, but it's here somewhere.

    Steve

  • Vista Outlook cannot see the Inbox and sending e-mails

    All of a sudden I can't see my Inbox, and sent emails, but I know they are there

    It comes to Office 2010, see if it is similar in 2007.

    Use the view list of folders in the Navigation pane

    In this view, all your folders, including your Inbox folders, remain visible in the Navigation pane when you switch to otherviews (view: views you provide different ways of looking at the same information in a folder by putting it in different arrangements and formats.) There are standard views for each folder. You can also create custom views.), such as calendar or Contacts. Click folder list at the bottom of the Navigation pane.

    If you click on one of the buttons in the Navigation pane, such as mail,Calendar , or Contacts, the Navigation pane is changed to pane view mode.

    If you want to keep the list of folders as your main point of view, do not use the buttons at the bottom of the pane to navigate to other views. Click on the appropriate folder, icon, or name in the folder itself list.

    If you use the display list folders when you quit Outlook, from the folder list opens when you restart Outlook.

  • Where can one find a list of the full functionality for Lightroom?

    I tried the site links Web and Adobe lightroom. Found very nice, but slow to graphical display ads for mobile, tutorials, How - to (the first was 32 minutes long!), but do not see any list of function or even a good description of what it does. I couldn't even of the screenshots. I want to refine my choice of software before you begin to download and try each others.

    A bit of missing information:

    Provide editing of IPTC data? If so, he takes a photo at a time, or can I ask an IPTC data of hundreds of photos at once - for example, the event, date, photographer, and keywords.

    They dodge and burn tools? I'm not full blown photoshop, but this is very useful when the background blown highlights occur near the edge of my crop, or clear background objects distract the subject.

    He plans to print contact sheets with some IPTC data fields printed in the photos?

    It does not send photos to Zenfolio? If so, he plans to create new galleries in Zenfolio as part of the download?

    Does perform exhibition (OK - brightness, but it seems that exposure), contrast and white balance and adjustments to several files in a batch process -l' user can select thumbnails files.

    It supports multiple monitors tools can be on a monitor and the pictures on the other?

    Plan comparison side by side photos?

    Provide a directional light meter to measure the brightness of a specific area of a photo compared to the neutral gray? (Or classic zones.) This is very useful when working on-site with a computer laptop-calibration of the screen isn't much help when you are still working in different ambient light.

    It supports several processor cores for more hearts equals faster processing?

    I shoot sports in RAW format. I use up to three programs in post processing: Photo Mechanic, Canon RAW software, and Corel Photo. It would be my workflow speed if I could use a single program. Lightroom seems to be a combination of Photo Mechanic and Canon RAW software with some features Photoshop which can carry on what I'm doing with Corel.

    I mainly use Photo Mechanic for post-processing: shots of thumbnails selection, the IPTC data entry down of sampling, cropping, move, copy, removal, sharpening, naming, download and printing of the Board contact with legends. He converted Canon RAW to JPEG files more than 10 x faster than the Canon software, with the best options for the taking of samples, but all changes to in the software of Canon RAW files must be saved in a jpeg file (painfully slow) out because Photo Mechanic can not see the RAW changes.

    I use the Canon RAW software for brightness, contrast, white balance and saturation - but only as an exception. Most of the time I can send photos as shot - with the exception of the Photo Mechanic work.

    I use Corel to dodge and burn, corrector and clone tools software. Corel has the same features that I use in the software of Canon - but these features do not work as well in Corel software as Canon, is not a substitute for the Canon software. For example, often light Won ' t bring out shadow details - it turns just black to grey, where the Canon software for the same photo can bring out details in shadows, when I adjust the brightness. The Canon software has adjustments more significant - I can brighten up in 'stops' instead of arbitrary scale from 0 to 100.

    Sorry for the long post. I'm used to seeing lists detailed functionality and screenshots on the boxes of software. Surprised the Adobe site isn't that. If so, please post the link.

    Thank you

    This should help. Here is a link to the manual of Lightoom:

    https://helpx.Adobe.com/Lightroom/topics.html

  • where can I find my contacts in the mail of Cloud?

    is there an icon for the toolbar that gets me to the list of contacts?

    There is no option in customize the toolbar of Yosemite of Mac Mail.

Maybe you are looking for

  • require external dll function prototypes

    Greetings, in the compilation of the CVI Options, I checked "function prototypes require" because I think it's a useful security measure. The project includes about 30 files that all work fine except one that relies on the functions provided by an ex

  • deploy programmatically variable shared within the standalone version of RT (cRIO-9014)

    Hello I have a question about here to use variables shared single process within the standalone version of RT for the cRIO-9014 I simplified my request of LV (LV2010) in two to test the use of shared variables.  See the attached file. (1) only run on

  • Allow specific characters - Regular Expression

    Hello everyone I am new to the regular expression and I have a very simple question. I use the function "read from the text file" to load a file delimited by tabs with 3 columns in my VI. Then, the string is converted to table and I use the values. N

  • Windows Live Photo Gallery Live (led. GIF images)

    Why when I discover an animated .gif its static image? Is there something I can do in addition to open it with the internet to see?

  • Windows XP Pro Installation Disc

    I know that you do not supported Windows XP more, but... I had to replace the hard drive on my laptop. Now, I need to reinstall the OS, but of course, have no installation CD. It's Windows XP Pro and the product key is on the label. I want to stay wi