Search:
Type: Posts; User: VB-MCU-User
Search:
Search took 0.02 seconds.
-
Thank you. Very informative.
-
Wow, you got it!! That is exactly what was causing the problem. Thanks.
Yes, if I don't select TabPage4 first the program fails.
-
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....
-
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...
-
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...
-
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...
-
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...
-
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...
-
Hmm, it looks like DDE is not supported by VB.Net. It was supported by VB6. I found these comments on Google,
-
This sounds more of what I want. I need to research how to use this DDE.
-
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...
-
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...
-
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...
-
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" ?
-
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...
-
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...
-
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?
...
-
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...
-
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...
-
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...
-
Oops, that is true. Dispose() is unnecessary since it's already called in the Close() implementation. Thanks for pointing that out.
-
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....
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
Thanks for changing the title name to COM. :)
-
Grr, can I change the title to say "COM Ports" instead of "OM Ports? My fast fingers pressed the enter key to soon.
-
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...
-
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...
-
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.
...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
|
Click Here to Expand Forum to Full Width
|