Search results for query: *

  1. jmcilhinney

    changing colors in codetext

    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...
  2. jmcilhinney

    keypress when the form is hidden/ minimize?

    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}')"
  3. jmcilhinney

    keypress when the form is hidden/ minimize?

    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.
  4. jmcilhinney

    keypress when the form is hidden/ minimize?

    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...
  5. jmcilhinney

    installing visual studio 2022

    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...
  6. jmcilhinney

    installing visual studio 2022

    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...
  7. jmcilhinney

    microsoft access database engine 64 and 32 install window 10

    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...
  8. jmcilhinney

    Fill cells with color

    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.
  9. jmcilhinney

    How to copy textbox1.text to clipboard

    That makes me realise that I never mentioned that doing it that way would require a call to SelectAll first.
  10. jmcilhinney

    How to copy textbox1.text to clipboard

    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...
  11. jmcilhinney

    Resolved using string() as dictionary key

    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...
  12. jmcilhinney

    Resolved using string() as dictionary key

    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...
  13. jmcilhinney

    Resolved Remove Click Event Handler

    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...
  14. jmcilhinney

    Resolved Remove Click Event Handler

    How was the handler added in the first place?
  15. jmcilhinney

    Question Graphics and data gridview question

    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...
  16. jmcilhinney

    Question Graphics and data gridview question

    Please post in the most appropriate forum for the subject. I have moved this thread to the Charting forum.
  17. jmcilhinney

    Resolved Shared Methods

    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...
  18. jmcilhinney

    Resolved Shared Methods

    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...
  19. jmcilhinney

    Question DEPLOYE PROJECT TO EXE -WITHOUT .RPT FILE

    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...
  20. jmcilhinney

    Question DEPLOYE PROJECT TO EXE -WITHOUT .RPT FILE

    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.
Back
Top