Honestly, this is not really something that should need to be explained. Any time you start using new software, one of the first things you should be doing is opening the Options/Settings/Preferences dialogue and having a good look through to see what's available. That will enable you to find...
If you were going to build a String that way though, use string interpolation for improved readability:
cmd.CommandText = $"INSERT INTO info (jam, tanggal, computer) VALUES ('{Date.Now:HH:mm:ss}','{Date.Now:yyyy-MM-dd}','{lcom.Text}')"
By the way, you should absolutely not be inserting vaues into SQL code that way. You should ALWAYS use parameters, fopr m,ultiple reasons. For more info on why and how, follow the Blog link in my signature below and check out my post on Parameters in ADO.NET.
Of course it works that way. You are detecting when a particular key press is sent to your form. If your form doesn't have focus, whether it's hidden or not, any key presses you make will not be sent to that form so you can't detect them like that.
It's possible to register a key combination...
As with all new applications, you should have a thorough look through the Options dialogue for VS to see what's there and what you might want to change. There's a load of stuff that you won't need to touch but it's good to have at least a general idea of what's available, so you know where to...
It does sound like you may have installed the current stable version of VS and the preview of the next version. You should uninstall the preview like you would any other app.
Maybe you clicked the close button on the Toolbox window instead of the pin button. Regardless, all tool windows can be...
This particular forum is for questions regarding installation of Visual Studio. Installing Access drivers is not specifically relevant, so I'm going to close this thread. I will offer a little help though.
Based on what you posted, it appears that you have misspelled "quiet". The message you...
Is this really VB.NET or is it actually VBA in Excel? It's not clear from the code but Call is completely unnecessary in VB.NET so it's use makes it look like an older VB flavour.
This is a perfect example of why you ALWAYS need to read the relevant documentation first when you have an issue/question. You'll solve many of your own problems faster by doing so and you'll learn more besides. If you had read the documentation for the TextBox class in this case, you'd have...
You typed your post into a text editor that works like any other text editor. It has a toolbar at the top with buttons for formatting the text. When you hover over those buttons, a tooltip pops up to indicate what that button does. This is just like Microsoft Word or WordPad or any other WYSIWYG...
If you use a reference type, i.e. a class, as the key then retrieving by key will use reference equality, not value equality. That means that it will only be recognised as the same array if it is actually the same array, not a different array containing equal elements. If you want to be able to...
You absolutely should not be trying to directly remove an event handler that's attached via a Handles clause. Just assign something else, including Nothing, to the field and the events of the original object will not be handled any more. Handles clauses associate a handler with a field rather...
Are you targeting .NET Framework or .NET Core? .NET 5 and later are based on .NET Core. If it's the former, there is a Chart control in the Toolbox and you should learn how to use that first. Once you know how to populate a Chart control, then you can do it with the data from your grid or, more...
Keep in mind that pretty much all the framework is written in C#, so there are some things that will be C#-centric where there is some difference to VB. Shared members in VB and static members in C# are the same thing so, as you surmised, that Enum field will indeed search for members declared...
You are correct. The use of the word "static" is a little confusing here. There is a Static keyword in VB but it has nothing to do with this. The static keyword in C# has basically the same meaning as the Shared keyword in VB. It does appear that the whoever wrote that code has forgotten to...
How you go about printing reports depends on the reporting tool you're using. If the tool you're using requires an RPT then you have no choice but to deploy the RPT with your application. If it doesn't then the documentation for the tool will explain that and what it does require. If your actual...
You don't deploy a project to an EXE. You compile a project to an EXE and then you deploy the EXE.
If your question is about printing reports then it's not about deployment, so it doesn't belong in the Deployment forum. Moved.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.