Search results for query: *

  1. jmcilhinney

    Visual Studio can't start debugging because the debug target.

    The error message indicates that the EXE for your project that you're trying to debug does not exist in the expected location. The first thing to do would be to check that path to see whether the file actually does exist or not. You can do that in File Explorer or in VS. If you right-click on...
  2. jmcilhinney

    Convert Number in VB.net

    The code you originally posted is performing bitwise logic, which is basically Boolean logic on corresponding pairs of bits, treating 1 as True and 0 as False. And and Or are bitwise operators in that context and << and >> are bit-shift operators. If you want to get a better understanding of...
  3. jmcilhinney

    Convert Number in VB.net

    If you don't know what that code does then why use it at all? If you want to reverse the order of the bytes then just get the bytes and reverse the order. The BitConverter class has methods to convert between an Integer and a Byte array and vice versa, so all that's left is reversing the array...
  4. jmcilhinney

    Convert Number in VB.net

    There are four lines of code that do the calculations and three lines contains multiple operators. It doesn't sound to me like you're debugging at all but just looking at the final result. If you don't understand what each operation is doing, maybe the first thing to do is learn that.
  5. jmcilhinney

    Convert Number in VB.net

    You need to debug your code and actually look at the bits at each step to see what's happening and whether it is what you expect to happen. You don't fix code simply by looking at the initial input and the final output. Set a breakpoint at the top and then step through the code line by line...
  6. jmcilhinney

    Resolved Timer control is not visible on my main form VB.NET 2017 - 2022

    There is no Timer control. The System.Windows.Forms.Timer class is a component, not a control. Components can be added to a form in the designer and controls are specialised components that inherit the Control class. That Timer class is basically an alarm clock. You set the Interval, Start it...
  7. jmcilhinney

    copy data from database

    If that's the case then it sounds like you should be executing SQL code against the existing database to modify the schema as required, not copying data from an existing database to a new one.
  8. jmcilhinney

    copy data from database

    I don't know what that means. Please provide a FULL and CLEAR explanation of the problem.
  9. jmcilhinney

    copy data from database

    You can just ignore the field3 column. If you insert a record and don't refer to that column in the INSERT statement, it will remain NULL, just as you want.
  10. jmcilhinney

    I changed VB 2017 to 2022 and my Imports system.data.Sqlclient turned light color

    If it's an existing project then, assuming it's still on the same machine, the target framework is already installed. If it's a new project then VS wouldn't let you target a framework that isn't installed.
  11. jmcilhinney

    I changed VB 2017 to 2022 and my Imports system.data.Sqlclient turned light color

    Did you create a new project or did you open an existing project? In either case, what framework is the project targeting?
  12. jmcilhinney

    Resolved Must declare the scalar variable @ID?

    I'm sure that @Rythorian can defend themselves if they feel the need. There's no need for you to do it. Helping is great and I'm certainly not trying to discourage that but unnecessary quotes - especially long ones - don't help anyone and just make reading the thread harder. You concentrate on...
  13. jmcilhinney

    Resolved Must declare the scalar variable @ID?

    Note that, if you're comparing the same column to multiple values using = and then using OR to combine those criteria, you can do it more succinctly using an IN clause. The equivalent of this: SearchColumn = @ID OR SearchColumn = @Company OR SearchColumn = @Solutions would be this: SearchColumn...
  14. jmcilhinney

    Resolved Must declare the scalar variable @ID?

    @Rythorian, please don't quote other posts without any good reason. Why would you need to quote post #1 when it's the only post from the thread starter? It's obvious you're responding to that post. Your posts are already long enough, which is fine, but don't make them even longer and clutter up...
  15. jmcilhinney

    Resolved Must declare the scalar variable @ID?

    Apart from that, your SQL code makes no sense. Your WHERE clause is malformed. It ends with a comma, which is wrong, and this makes no sense: SearchColumn = @ID, @Company, @Contacts, @Telephone, @Address, @Email, @AppoDate @AppoTime, @Matters, @Solutions Did you actually mean to AND or OR...
  16. jmcilhinney

    Resolved Must declare the scalar variable @ID?

    Your SQL code contains 10 parameter placeholders but, according to the code you posted, you're only adding one parameter named @Company. What about @ID, @Contacts, ..., @Solutions?
  17. jmcilhinney

    Resolved Object reference no set to an instance or object ?

    @manny cash, if your issue is resolved, please click the Resolved button above the first post so that everyone can see without opening the thread and reading the whole thing. Also, if a specific post provides the solution, please mark that post by clicking the tick/check mark on the right. I've...
  18. jmcilhinney

    Resolved Unexpected behavior

    Please don't quote a post unless there's a reason to do so. Quoting a post and then adding nothing yourself, only to mark your post as the solution rather than the original is not a reason. If you're just replying to the previous post then there's no need to quote anything. If you're replying to...
  19. jmcilhinney

    TreeView BeforeSelect event

    Show us the code. This is not something that we should need to ask for. The code with the issue is always relevant when asking questions about an issue with code. We can try writing some test code ourselves but it may not be the same as you have so may not behave the same. Provide us with the...
  20. jmcilhinney

    import google contacts in vb.net

    I've searched very little - only a few seconds, in fact - and already I know that Google provides an API for accessing contact data: https://developers.google.com/people/v1/contacts Do some reading on that API to see how you would access the data you want and then do some reading on how to...
Back
Top