Search:

Type: Posts; User: VB-MCU-User

Page 1 of 5 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: Juggling Between TabPages and Controls Issues

    Thank you. Very informative.
  2. Re: Juggling Between TabPages and Controls Issues

    Wow, you got it!! That is exactly what was causing the problem. Thanks.

    Yes, if I don't select TabPage4 first the program fails.
  3. Re: Juggling Between TabPages and Controls Issues

    In the MainForm_Load sub I select tab2 at the beginning of the program (TabControl1.SelectedTab = TabPage2). However, I found out that if I select Tab4 and inmediately I select Tab2, the code works....
  4. Juggling Between TabPages and Controls Issues

    Hi, I'm pulling my hair out here. I'm probably doing something really bad in this code, so go easy on me :).

    Button DataConnect is in TabPage2 of TabControl1. The ListView lvDevices is located in...
  5. Re: Merging Two Windows Form Programs For Data Processing

    Thanks for the repplies. I ended up doing it the hard way copy pasting all the code and controls over to my code. I also added the references. I was hoping to be able to do it only with a few mouse...
  6. Merging Two Windows Form Programs For Data Processing

    Hi,

    I have 2 different Windows form vb.net programs, program A and program B, that somehow I need to merge. Program A is my main program, and I need to call some functions from program B into...
  7. Re: Exporting Data From My Program, Maybe An API

    Thanks for your suggestions. Another idea can be just to tell the third party developer how to read the USB device data in order to be able to use it in his program. This might be the easiest and...
  8. Re: Exporting Data From My Program, Maybe An API

    Shaggy, the device and computer are connected through a USB connection. My program receives the data and does some data processing. Is it possible to pass this data realtime to another program...
  9. Re: Exporting Data From My Program, Maybe An API

    Hmm, it looks like DDE is not supported by VB.Net. It was supported by VB6. I found these comments on Google,
  10. Re: Exporting Data From My Program, Maybe An API

    This sounds more of what I want. I need to research how to use this DDE.
  11. Exporting Data From My Program, Maybe An API

    Hi all,

    I have a Vb.net program that receives data from an external device through a USB connection. I need to have some kind of short program interface that would allow other programmers to...
  12. Replies
    8
    Views
    3,076

    Re: Not a valid Win32, HRESULT: 0x800700C1

    Setting target CPU to x86 fixed the problem. I also upgraded Visual Studio from 2019 to 2022. Not sure if this upgrade had anything to do with the fix. Checking the option "Prefer 32-bit" didn't do...
  13. Replies
    8
    Views
    3,076

    Re: Not a valid Win32, HRESULT: 0x800700C1

    Well, it looks like I'm getting closer to find out the source of the problem. I installed Visual Studio 2022 in the PC giving me problems. The compilation was done in another PC using Visual Studio...
  14. Replies
    8
    Views
    3,076

    Re: Not a valid Win32, HRESULT: 0x800700C1

    Thanks. I will definitely do that. What about the choice for "Platform" at the top right hand side? What option do you recommend here? "Any CPU" or "x86" ?
  15. Replies
    8
    Views
    3,076

    Re: Not a valid Win32, HRESULT: 0x800700C1

    After more testing, I found out that this error is only happening in one Windows 10 x64 processor. The program works fine in other Windows 10 x64 processors, but this particular PC doesn't like the...
  16. Re: "Could not find any recognizable digits" Error

    You are absolutely right. Thanks. This command Integer.TryParse is very powerful. Just read a tutorial about it. The new code is below in case someone is interested. I need to test it more to see if...
  17. Replies
    8
    Views
    3,076

    Re: Not a valid Win32, HRESULT: 0x800700C1

    I will check on that later and report back. Will it run on a x64 PC if I check target CPU to be x86? Can the configuration being "Active (debug)" instead of "Release" be causing this error?


    ...
  18. Replies
    8
    Views
    3,076

    Not a valid Win32, HRESULT: 0x800700C1

    Hi, once again banging my head against the walls here. My program works well when I compile it in my x64 PC where I'm developing it. If I install it in another x64 PC I get this nasty error "Not a...
  19. Re: "Could not find any recognizable digits" Error

    This method doesn't take long to execute, and it is not giving me errors that I'm aware of. I just thought that I was doing it wrong putting this method in this secondary thread instead of putting it...
  20. Re: "Could not find any recognizable digits" Error

    The incoming string data goes from "0" through "F" and the line in red above converts this data to it's HEX equivalent. I have to figure out how to filter out the incoming string data to reject...
  21. Re: "Cannot access a disposed object" When Closing Form

    Oops, that is true. Dispose() is unnecessary since it's already called in the Close() implementation. Thanks for pointing that out.
  22. "Could not find any recognizable digits" Error

    Hi. I have a program that receives data from a Bluetooth device using a serial COM port. I have two questions regarding my code.

    1. Every 2 or 3 minutes I'm getting the handled error shown below....
  23. Re: "Cannot access a disposed object" When Closing Form

    You are definitely right. After changing the order of these two lines, many of the crashes went away.

    Thank you all for your advice. I'm getting a new handled error now, so I will open a new...
  24. Re: "Cannot access a disposed object" When Closing Form

    Thank you both for your great help. You definitely pointed me in the right direction. I used the code below, which is almost the same as dbasnett's code except for the uncommented line in red. I hope...
  25. Re: "Cannot access a disposed object" When Closing Form

    I wrote the code shown below. How does it look? It has crashed only one time so far. I'm still testing it. I modified your code and took out the TASK part. Is this okay?

    I tried using TASK, but...
  26. Re: "Cannot access a disposed object" When Closing Form

    Okay, okay, I'm learning here ;).



    I thought that it wasn't important, but it is the source of the problem. The two errors I get are



    at ALL64v1.MainForm.ValidateWithPython() in...
  27. "Cannot access a disposed object" When Closing Form

    Banging my head here against the walls. I have a program that sometimes when I close it I get the "Cannot access a disposed object" error. The error I'm getting is



    The line that gives me the...
  28. Replies
    9
    Views
    1,347

    Re: SerialPort Using All The COM Ports

    Jdc2000,

    I found an easy way to delete the extra COM ports. Just go to "More Bluetooth Options" in "Bluetooth & Other Devices", then remove the extra ports that you don't need. I attached some...
  29. Replies
    9
    Views
    1,347

    Re: SerialPort Using All The OM Ports

    Well, for this project I'm using the HC-05 BT modules. I have two sets of the same modules with different firmware versions. The modules with the older firmware will get disconnected very often for...
  30. Replies
    9
    Views
    1,347

    Re: SerialPort Using All The OM Ports

    Thanks for changing the title name to COM. :)
  31. Replies
    9
    Views
    1,347

    Re: SerialPort Using All The OM Ports

    Grr, can I change the title to say "COM Ports" instead of "OM Ports? My fast fingers pressed the enter key to soon.
  32. Replies
    9
    Views
    1,347

    Re: SerialPort Using All The OM Ports

    Jdc2000, thanks for your response. Those instructions are for Windows XP. I am using Windows 10. This software is to be distributed to customers, so playing with the RegEdit might not be a...
  33. Replies
    9
    Views
    1,347

    SerialPort Using All The COM Ports

    Hi,

    I have a program that receives Bluetooth data through a SerialPort connection. The program works well, but I see that it opened a bunch of "Standard Serial Over Bluetooth Link (COMx)" COM...
  34. Replies
    7
    Views
    1,295

    Re: UnhandledException Doesn't Work

    Well, I was able to do it. You need to add the following code to the app.config file in your project. All the unhandled errors are been sent to a directory "Errors" in my app bin directory.



    ...
  35. Replies
    7
    Views
    1,295

    Re: UnhandledException Doesn't Work

    Niya, I tried that and it worked for me. The problem for me is that I'm trying to write the errors to a log file in the app directory, but that part is not working for me.

    After more research, I...
  36. Re: Cannot Maximize form after it has been Minimized

    Yes, I know. I'm learning.



    Thanks, I used the BackgroundWorker and it worked. I used the DoWork event handler to update the UI incrementally. Below is my modified code. I used the INVOKE...
  37. Replies
    7
    Views
    1,295

    Re: UnhandledException Doesn't Work

    Nope, I didn't have any luck. I tried both codes below and it didn't work. I ran the exe file in the bin directory. Your original suggested code gave me an error, so I defined variable ex as an...
  38. Replies
    7
    Views
    1,295

    UnhandledException Doesn't Work

    I'm trying to catch all the unhandled exceptions in my application with UnhandledException. My code is shown below. I understand that I have to build the application (Control F5) in release mode and...
  39. Re: Cannot Maximize form after it has been Minimized

    This code writes certain devices detected by the computer in a ListBox, so when I minimize the window I can't see if it worked. If I change the focus away from the program and go back to it, this...
  40. Cannot Maximize form after it has been Minimized

    After I minimize the main form, the form will stay minimized no matter what I do. I need to right click the program icon in the task bar and close it to restart the program. After some...
Results 1 to 40 of 177
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width