Search:

Type: Posts; User: Mc_VB

Page 1 of 6 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    9
    Views
    2,462

    Re: How to center-rotate an image in VB.NET?

    Show me your code
  2. Replies
    9
    Views
    2,462

    Re: How to center-rotate an image in VB.NET?

    I would probably create a user control for this but just for the example you can create this on a Windows form.

    I created a gif image called Needle sized at 201 x 201 pixels with a transparent...
  3. Re: View actual values on MouseMove within a VB .NET Chart object

    With the addition of one line and the modification of another you can display the date and I did not see anywhere that it displayed "unknown", sorry if this is not helpful just something I had laying...
  4. Re: View actual values on MouseMove within a VB .NET Chart object

    I have an old project where I played around with the hit test in MS Chart using only one series. It simply cleared the old annotations and displayed any new ones that were on a datapoint as series...
  5. Replies
    4
    Views
    1,045

    VS 2019 Re: Optimizing received serial data

    Here is a link to MS Docs describing Scope, the Scope passel refers to is described in the section Module Scope
    ...
  6. Replies
    4
    Views
    1,045

    VS 2019 Re: Optimizing received serial data

    A few questions

    What is the baud rate
    How many data samples are transmitted each second
    What device is transmitting the data
    Does the data packet have a protocol for example...
  7. VS 2015 Re: How to read negative numbers from Arduino using Visual Basic.net

    To identify and order your data you need a protocol. The bare minimum function of the protocol should separate each element of data in the packet and identify the start or end of the packet. The...
  8. VS 2015 Re: How to read negative numbers from Arduino using Visual Basic.net

    Hi, Delany is right, the Arduino serial will take an Integer and transmit it as a string.

    The error that you received "Cross-thread operation not valid" is because the VB data received handler...
  9. Replies
    7
    Views
    1,536

    VS 2015 Re: Convert text to integer

    Integer.TryParse will test your string to ensure that it is an integer, if it is it will place the value in an integer variable, at the same time if the text is a integer this function will return...
  10. Replies
    6
    Views
    2,916

    VS 2019 Re: [vb.net] Turn off COMPORTS and turn it on

    Probably one of the better options is a USB to UART cable or development board that exposes its I/O. One of the more popular manufacturers is FTDI who make a 5v and 3.3v.

    Here is a link to a...
  11. Replies
    11
    Views
    4,753

    VS 2019 Re: Unable to load DLL

    Just for reference if the library is 64 bit it would normally be found in System32 folder or if it is 32 bit then found in SysWOW64 folder. Whichever folder the dll is placed perhaps try specifically...
  12. Replies
    7
    Views
    1,764

    VS 2019 Re: How to remove traces from a chart

    I'm thinking its along the following lines, replace "FirstSeries" with the name of the series you want to clear


    Chart1.Series("FirstSeries").Points.Clear()
  13. Re: Receive Data from Serial Port and show them in Datagridview

    You original code contained a delegate which you have discarded with this new code , when you use the DataReceived event handler you need a delegate so that it can safely communicate with the User...
  14. Re: Receive Data from Serial Port and show them in Datagridview

    The EOL that others are suggesting can be achieved by modifying two lines, one at the MCU and one in your VB code

    MCU


    printf("%d:%d:%d\n",TEMP_MIN,CURRENT_TEMP,TEMP_MAX);

    appends a newline...
  15. Re: Receive Data from Serial Port and show them in Datagridview

    I believe what you would need to do is the following


    printf("%d:%d:%d\n",TEMP_MIN,CURRENT_TEMP,TEMP_MAX);
  16. Re: Receive Data from Serial Port and show them in Datagridview

    A couple of things, first I wonder if you can modify your mcu code so that the transmitted code has a newline appended something like the following


    Serial.println("data1:data2:data3")

    This...
  17. Replies
    6
    Views
    1,396

    Re: Read the whole packet of a serial port - loop

    Reading and writing data from/to the serial port requires some kind of protocol, a set of rules which help allow the data to be processed with the least amount of error. This does not have to be...
  18. Replies
    4
    Views
    560

    Re: read string into array

    If you need to work with individual characters of a string convert it to a character array


    Dim CipherAlphabet As String = "ABCDEFG"
    Dim arrCipher() As Char =...
  19. Thread: Panel scrollbar

    by Mc_VB
    Replies
    5
    Views
    6,159

    VS 2017 Re: Panel scrollbar

    The minimum and maximum of a panel vertical scroll bar should automatically adjust from zero to the bottom of the last control.

    For example if you have a panel docked in a form that is 450 high...
  20. Replies
    4
    Views
    1,277

    Re: how to set up address-bit mode in serial port

    I Googled for similar cases of address bit mode and although I didn't come across a VB.net solution, there is probably one out there somewhere, I did come across a solution that used the serial ports...
  21. Replies
    4
    Views
    1,297

    VS Code Re: Recieving Complex MIDI Signals

    So would I be right in thinking that a bank change is 3 x 7 bit values?

    If that is the case then any 7 bit value that has not already been assigned to a status byte must be the first byte of a...
  22. Replies
    4
    Views
    1,297

    VS Code Re: Recieving Complex MIDI Signals

    I don't know much about the MIDI protocol but taking a quick look it seems there is a status byte followed by a number of data bytes determined by the status byte.

    Data bytes are 7 bit values and...
  23. VS 2010 Re: VB 2010 - It's possible translate HEX text into a binary file?

    That really does not show how the arduino is sending the data. What you can try is the following code snippet to see if it acts like your "serial monitor".

    Before you try this change your arduino...
  24. VS 2010 Re: VB 2010 - It's possible translate HEX text into a binary file?

    Yes this is possible but for you to get help we need a little more information. You say the data is framed with "start" and "end" "tags", can you show an example of how the arduino transmits this 16...
  25. Re: Color Change of Line in Rich Text Box Based on Number of

    Looking at the lines you are using perhaps a regular expression picking out the 2nd and 3rd values would work, once the numbers are converted and placed in their own variable you can do whatever you...
  26. Replies
    10
    Views
    806

    VS 2010 Re: Serial port cannot received HEX reply

    You are right that line of code is not really needed in this scenario.

    The line is there from another piece of code I have on my PC and I just copied across while giving you an example for your...
  27. Replies
    10
    Views
    806

    VS 2010 Re: Serial port cannot received HEX reply

    This is an example of formatting the byte values as a hex string while keeping your original ReceivedText sub routine, the example should be enough to allow you to modify to your needs.


    Private...
  28. Replies
    10
    Views
    806

    VS 2010 Re: Serial port cannot received HEX reply

    When you use the DataReceived event handler you have to declare the serial port "WithEvents". Here is an example based on your existing code that collects the data in a slightly different way, it...
  29. VS 2010 Re: Can you add a macro to Excel worksheet button through VB.NET?

    You can create a code module with an event procedure for your button and then insert your lines of code. The create event proc returns a value which is the first line of the code module.The following...
  30. Replies
    13
    Views
    2,086

    Re: [RESOLVED] Text Behind Image

    I have played around with this and found very little out there that was relevant, I managed to get something that works using a VSTO add in which seemed to make the word app extremely laggy.

    I'm...
  31. Replies
    9
    Views
    1,480

    VS 2017 Re: Copy a string into excel using stringbuilder

    There seems to be a couple of errors so for the moment I have a snippet that you could run and maybe describe if it displays anything like what you want it to be. This displays nine separate strings...
  32. Thread: Please Delete.

    by Mc_VB
    Replies
    11
    Views
    1,747

    Re: Playing audio file from resoureces using PlayFile class

    Thanks for taking the time to explain that in such an in depth way which is what I needed to grasp the problem. It's not that I don't read your posts but some problems take longer than others to...
  33. Thread: Please Delete.

    by Mc_VB
    Replies
    11
    Views
    1,747

    Re: Playing audio file from resoureces using PlayFile class

    I'm adding wav files to Resources which gives me a Resource folder in Solution explorer, if I change the wav file properties Build Action to Content and Copy to Output Directory and make it Copy...
  34. Replies
    11
    Views
    3,772

    VS 2010 Re: Serial Port Hang Up during Looping

    It looks like you need to target a newer version of the .Net Framework.

    Project---->Properties---->Application in the dropdown labelled Target framework: you need to select .Net Framework 4 or...
  35. Replies
    11
    Views
    3,772

    VS 2010 Re: Serial Port Hang Up during Looping

    That's the truth, the serial write inside the loop is part of the problem, if the j loop was increased from 10 to 1000 with the current data the GUI would freeze for almost 2 1/2 minutes
  36. Replies
    11
    Views
    3,772

    VS 2010 Re: Serial Port Hang Up during Looping

    The for next loops are not really the best way to be transmitting data over serial and will make your user interface unresponsive for a brief period of time, if the loops are extended then the user...
  37. Thread: EPPlus and VB/VS

    by Mc_VB
    Replies
    9
    Views
    6,408

    Re: EPPlus and VB/VS

    There are many examples of VB.Net in conjunction with Excel, Googling VB and Excel this was my first hit https://www.tutorialspoint.com/vb.net/vb.net_excel_sheet.htm
  38. Replies
    10
    Views
    6,121

    VS 2017 Re: Show progress while form is loading

    Along the lines of your original train of thought you can use the ReportProgress and ProgressChanged to communicate information from the BackgroundWorker to the GUI, this example is probably the...
  39. VS 2015 Re: Serial communication protocole : RTS/CTS

    Rts Cts hardware flow control can be automatic or it can be controlled programmatically. Unless the sensor contains a program that can be user modified I would say the flow control is completely...
  40. Replies
    15
    Views
    1,241

    VS 2017 Re: Serial write without a button

    There are parts missing and looking at the link from topshot (I don't know how you found that link, some good Googling) the original author says it was his first play around with Visual Studio Visual...
Results 1 to 40 of 231
Page 1 of 6 1 2 3 4



Click Here to Expand Forum to Full Width