Search:

Type: Posts; User: VB-MCU-User

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    533

    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.



    ...
  2. Replies
    7
    Views
    533

    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...
  3. 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...
  4. Replies
    7
    Views
    533

    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...
  5. Replies
    7
    Views
    533

    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...
  6. 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...
  7. 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...
  8. Re: Closing The Main Form Faster

    After running the program in debugger mode, I found out that during the MainForm_Closed method the program tried to discard incoming data buffers from SerialPort2, but that port was closed. Just by...
  9. Re: "The semaphore timeout period has expired", Program Crashes

    Jmcilhinney, you definitely pointed me in the right direction. I was getting the semaphore error that pointed to the SerialPort2.Open() line. This line is in a Try-Catch block. When I ran the program...
  10. Re: "The semaphore timeout period has expired", Program Crashes

    It reaches the Catch block because it writes the error to a text file using WriteToErrorLog. What I mean by crashing is that it closes by itself. The error I get is shown in post 1.
  11. [RESOLVED] "The semaphore timeout period has expired", Program Crashes

    Banging my head against the wall with this issue. My program uses a serial COM port to connect to an external HC-05 Bluetooth module. The connection and data transfer works great! Now, if the...
  12. Re: Closing The Main Form Faster

    Good catch, but after commenting those out the program still takes time to close. What is the best way to close all the threads and resources in the Closed sub?
  13. [RESOLVED] Closing The Main Form Faster

    When I close my program, it takes like 5 seconds to completely close. Is this okay? I wonder if there is a faster way to close all the threads and any resources that might be loaded. Is the...
  14. Replies
    2
    Views
    302

    Re: Timer Won't Work Inside Port Listener

    It is nice to hear that there is a logical explanation of why it didn't work. I was going crazy after troubleshooting for hours and nothing. I will review your thread that you mentioned. Thanks.
  15. Replies
    2
    Views
    302

    Timer Won't Work Inside Port Listener

    Hi, I have a SerialPort opened for a Bluetooth connection to receive data from the Bluetooth device. The "SerialPort2_DataReceived" sub is working fine. I can read all the data without any problems....
  16. Re: SQL Works In Debug Doesn't Work In Release Mode

    Hmm, somehow the value of ModulesNumber in debug mode was 189 and in release mode was 0. Thanks, you found the problem.
  17. Re: SQL Works In Debug Doesn't Work In Release Mode

    That part works in debug mode. The whole code works in debug mode. The variable ModulesNumber value is displayed in a textbox already. The reason I put that loop there is because I didn't know how to...
  18. [RESOLVED] SQL Works In Debug Doesn't Work In Release Mode

    Hi, I wrote a program that can read data from an SQL database and it works great while I'm in DEBUG mode. I tried to switch it to RELEASE mode to distribute it to other computers and it just doesn't...
  19. Re: Strings.RSet(String, Int32) Is Not Working Properly

    Hmm, you are right. LSet does what I want, but from the left. RSet doen't seem to follow that logic.



    Dim testString As String = "Left"
    Dim lString As String
    ' Returns "Left "
    lString...
  20. [RESOLVED] Strings.RSet(String, Int32) Is Not Working Properly

    I'm not sure what I'm doing wrong here, but this string method RSet is not working as expected. Below, is the test code that I'm using. Then, below the code there is the output than I'm getting. The...
  21. Re: [RESOLVED] TextBox Message Doesn't Show Right Away

    Yes, I didn't noticed it either. Good catch!
  22. Re: [RESOLVED] TextBox Message Doesn't Show Right Away

    Thanks. That makes sense.
  23. Re: [RESOLVED] TextBox Message Doesn't Show Right Away

    Paul, the code I have seems to work. What is wrong with it? Why is the ProgressChanged event necessary?
  24. Re: TextBox Message Doesn't Show Right Away

    Well, I learned something new today thanks to you guys. I added the component BackgroundWorker to the form and wrote the code shown below. It worked great! Thanks.



    Private Sub...
  25. Re: TextBox Message Doesn't Show Right Away

    Paul and ShaggyHiker, no, the line "txbBluetoothDevices.Refresh" didn't work either. The Click sub takes like 20 or 30 seconds searching for Bluetooth devices. The text "Searching devices..." only...
  26. [RESOLVED] TextBox Message Doesn't Show Right Away

    I have a code that discovers Bluetooth devices. When I click the button btnListDevices the message "Searching devices..." should show immediately, but it shows when the process of Bluetooth devices...
  27. Re: Simple SQL Code Not Working

    That was it!!! I had another "Class SqlConnection" in the program. Thanks.
  28. [RESOLVED] Simple SQL Code Not Working

    I have a simple SQL code that I downloaded from an online tutorial. I created an SQL small database "MySerialNumbersDb" successfully, but any program I write to access this database doesn't work. The...
  29. Re: Access to the path "C:\Program Files (x86)\....\MyFile.txt" is denied.

    Thanks for the explanation.
  30. Re: Access to the path "C:\Program Files (x86)\....\MyFile.txt" is denied.

    Thank you all. I'm working on these changes now. However, I have a question related to this. When I opened a folder showing my C drive, I see like 9 or 10 programs that were installed right in the C...
  31. Re: Access to the path "C:\Program Files (x86)\....\MyFile.txt" is denied.

    I'm sorry PlausiblyDamp. Thank you OptionBase1. I'll give it a try.
  32. Re: Access to the path "C:\Program Files (x86)\....\MyFile.txt" is denied.

    Okay, I'll study the two links provided by OptionBase1. That's beyond my skills level, but I'll give it a try.
  33. Re: Access to the path "C:\Program Files (x86)\....\MyFile.txt" is denied.

    I think you are 100% right :rolleyes:. I have seen some programs that instead of creating the installation under C:\Program Files (x86)\, they install the program under a custom directory like...
  34. Access to the path "C:\Program Files (x86)\....\MyFile.txt" is denied.

    Hi. The first time I run this program works fine. Now, if I close the program and open it again I receive this error that crashes the program "Access to the path "C:\Program Files...
  35. Re: [RESOLVED] File in Internet or Restricted Zone

    Thanks. I tried to unblock the file ALL64v1_M.resx in the properties window, but that wasn't the file that was blocked. I had to unblock everything inside the folder using the method shown above. I...
  36. Re: File in Internet or Restricted Zone

    Thanks dday9. That fixed it. That link has a bunch of possible solutions, but only one fix worked for me. The solution was,
  37. [RESOLVED] File in Internet or Restricted Zone

    Hi,

    This is a weird one. Has anyone encountered this error before? Any ideas on how to fix this issue?

    Thanks,

    Robert
  38. Re: Can't Enable A Timer In Another Thread

    That worked. Thank you for your help.
  39. [RESOLVED] Can't Enable A Timer In Another Thread

    Hi, this should be an easy question for some of you. I can enable the timer TimerHighlightLEDs using the first part of the code below. However, it won't work with the second part of the code in red....
  40. Re: TableLayoutPanel Click Event Won't Work When Cells Are Filled With Other Controls

    Thanks for your help. It worked!!
Results 1 to 40 of 144
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width