Windows 10: Get False Datetime From The Program VB.net

Discus and support Get False Datetime From The Program VB.net in Windows 10 Network and Sharing to solve the problem; i have a program that send me a time for any account . some people the program run on their machine and send the datetime to the database like... Discussion in 'Windows 10 Network and Sharing' started by MrX_CF, May 18, 2020.

  1. MrX_CF Win User

    Get False Datetime From The Program VB.net


    i have a program that send me a time for any account .

    some people the program run on their machine and send the datetime to the database like 2020-05-17 11:33:00

    and some people the program on their machine and send the datetime to the database like 0000-00-00 00:00:00

    a photo to prove this : photo of datetime

    and the code which get the datetime is :

    Imports System.GlobalizationImports System.Net Public Shared Function GetNistTime As DateTime Dim myHttpWebRequest = CTypeWebRequest.Create"http://www.microsoft.com", HttpWebRequest Dim response = myHttpWebRequest.GetResponse Dim todaysDates As String = response.Headers"date" Return DateTime.ParseExacttodaysDates, "ddd, dd MMM yyyy HH:mm:ss 'GMT'", CultureInfo.InvariantCulture.DateTimeFormat, DateTimeStyles.AssumeUniversal End Function

    So what is the Selution , what can this people install on their machines to prevent this like install .Net framework 3.5
    and i don't know if .Net framework 3.5 installed can solve this problem !


    i just think it can solve the problem because i found it on my pc and on another pc which i got the datetime like 0000-00-00 00:00:00 don't have it installed on his pc .

    so what is the selution guys !

    :)
     
    MrX_CF, May 18, 2020
    #1

  2. VBS Msgbox

    Denis,

    • I was too lazy to compute the size programmatically. And, it the 2005 version the message box always came up hidden, so I always used 0 for the top. It's also part of my OCD to be able to control everything.
    • I personally don't need it to timeout. I used this in vbs files to ask to continue to the next step, skip the next step or cancel the vbs. BTW, I added the code back in but keep it assign it to 0.
    • Sound was calling Windows Media Player: WshShell.Run "C:\Users\donast\desktop\sndrec32.lnk",7,false the lnk is a shortcut on my old desktop that had: "C:\Program Files (x86)\Windows Media Player\wmplayer.exe"
      "C:\Users\Public\Music\Wavefiles\Twilight.wav"
    • Yes. The value is the number of the button in the order specified when calling it.
    • Never really thought about it as all my VBS/VBA code is relatively simple and I add comments in the file as necessary to remind me what is going on. I don't usually have anyone to share my code.
    FYI I use a VBS to call it. Here's a line from a test vbs I use to run your version:

    choice=Wshshell.run("custommsgbox.vbs " & wscript.scriptname & " ""CopyFiles.vbs done. Continue with UnArchVista.vbs?"" ""White"" ""Black"" 40 ""Yes"" ""No"" ""Cancel""",1,true)

    Copy it to a text editor to see all the spaces, etc. Took me a while back the to figure it out.

    Don
     
    DRARetired, May 18, 2020
    #2
  3. IDE for VBS?

    Not for VBS.
     
    DanTheBanjoman, May 18, 2020
    #3
  4. boshap59 Win User

    Get False Datetime From The Program VB.net

    Avast giving a 15-sec security check time-out to my installer, then VB NET compiled program - but not to OTHERS?

    OK so I compile the VB NET program, and at the deployment when it installs on some PC with Avast antivirus, the Avast stops it and checks it for 15 seconds. Then, on the program's first run, it does the same with the program: a 15-sec intercept then gives it the all-clear.

    This post says to clear out the checkmark against the CyberCapture engine in the Avast - and in fact, this approach kind of works...

    But:

    • CyberCapture in Avast is enabled by default, I can't ask every person on every PC to uncheck it while running my programs
    • ONLY my VB NET programs get this treatment. NONE of the other software I have downloaded/installed in years gets "sandboxed" that way by Avast. This makes me think the culprit is not so much Avast but something else in my own process. What does VB NET compiler do to trigger this security check?

    This is a serious issue that occurs every single time my program is re-installed.

    Though eventually it is always given a green light, that 30-sec total (installer+program start) detention is unacceptable.

    Solutions?
     
    boshap59, May 18, 2020
    #4
Thema:

Get False Datetime From The Program VB.net

Loading...
  1. Get False Datetime From The Program VB.net - Similar Threads - False Datetime Program

  2. Spedire una mail da un app Vb Net

    in Windows 10 Gaming
    Spedire una mail da un app Vb Net: Ho scritto in Vb Net un programma che -tra l'altro- deve spedire email.Se il mittente è google ed uso la password per le app, la mail parte.Se invece il mittente è MSN ed uso la password per le app, il messaggio restituisce sempre un errore smpt.Ecco il mio codice :Imports...
  3. Spedire una mail da un app Vb Net

    in Windows 10 Software and Apps
    Spedire una mail da un app Vb Net: Ho scritto in Vb Net un programma che -tra l'altro- deve spedire email.Se il mittente è google ed uso la password per le app, la mail parte.Se invece il mittente è MSN ed uso la password per le app, il messaggio restituisce sempre un errore smpt.Ecco il mio codice :Imports...
  4. How to bind the SQL query datetime string literal with datetime instead of datetime2 with...

    in Windows 10 Gaming
    How to bind the SQL query datetime string literal with datetime instead of datetime2 with...: While using the SNAC 11 driver for ODBC connection with our application, the query that is filtering on a datetime field and comparing it to a datetime value on the right of the comparison generates the SQL query with a program variable bound to the datetime2 datatype instead...
  5. How to bind the SQL query datetime string literal with datetime instead of datetime2 with...

    in Windows 10 Software and Apps
    How to bind the SQL query datetime string literal with datetime instead of datetime2 with...: While using the SNAC 11 driver for ODBC connection with our application, the query that is filtering on a datetime field and comparing it to a datetime value on the right of the comparison generates the SQL query with a program variable bound to the datetime2 datatype instead...
  6. How to bind the SQL query datetime string literal with datetime instead of datetime2 with...

    in Windows 10 Drivers and Hardware
    How to bind the SQL query datetime string literal with datetime instead of datetime2 with...: While using the SNAC 11 driver for ODBC connection with our application, the query that is filtering on a datetime field and comparing it to a datetime value on the right of the comparison generates the SQL query with a program variable bound to the datetime2 datatype instead...
  7. vb

    in Windows 10 Gaming
    vb: vbgvhj https://answers.microsoft.com/en-us/windows/forum/all/vb/83613166-f6f4-4339-851e-a5f28a93c197
  8. vb

    in Windows 10 Software and Apps
    vb: vbgvhj https://answers.microsoft.com/en-us/windows/forum/all/vb/83613166-f6f4-4339-851e-a5f28a93c197
  9. VB

    in Windows 10 Software and Apps
    VB: How to inside o visual basic 2019 achieve the horizontal scroll with the mouse wheel. I did it with a modifier key and the mousewheel event but only work when i move the wheel down... HELP, please....
  10. VB 2008

    in Windows 10 BSOD Crashes and Debugging
    VB 2008: HO INSTALLATO IL SOFT DI VISUALBASIC 8 (2008) SU WINDOWS 10 X64,ho provato a eseguire una procedura con la cponnessione dati un file di access, quando ho effettuato il debug mi appare l'avviso"si è verificato System.InvalidOperationException Messasggio="il provider...