dcsimg

Search:

Type: Posts; User: Mc_VB

Page 1 of 6 1 2 3 4

Search: Search took 1.01 seconds.

  1. Replies
    4
    Views
    265

    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 =...
  2. Thread: Panel scrollbar

    by Mc_VB
    Replies
    5
    Views
    329

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

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

    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...
  6. 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...
  7. 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...
  8. 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...
  9. Replies
    10
    Views
    455

    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...
  10. Replies
    10
    Views
    455

    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...
  11. Replies
    10
    Views
    455

    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...
  12. 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...
  13. Replies
    13
    Views
    650

    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...
  14. 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...
  15. Thread: Please Delete.

    by Mc_VB
    Replies
    11
    Views
    506

    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...
  16. Thread: Please Delete.

    by Mc_VB
    Replies
    11
    Views
    506

    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...
  17. Replies
    11
    Views
    602

    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...
  18. Replies
    11
    Views
    602

    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
  19. Replies
    11
    Views
    602

    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...
  20. Thread: EPPlus and VB/VS

    by Mc_VB
    Replies
    9
    Views
    1,342

    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
  21. 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...
  22. 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...
  23. Replies
    15
    Views
    640

    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...
  24. Re: VB 2015 how can i add specific colors to combobox?

    In the "SelectedIndexChanged" event handler use a Selct Case


    Select Case ComboBox1.SelectedIndex
    Case 0
    ComboBox1.BackColor = Color.FromArgb(122, 234, 191)
    ...
  25. Replies
    5
    Views
    489

    Re: Merry Christmas / Happy Holidays

    Merry Christmas to all!

    Thanks to the talented people who answer the questions in this forum and thanks to the many people that ask those questions so that the rest of us have a reference for the...
  26. Re: How can I create graphics in Visual Basic 2017 Community?

    Hi, JMC says "formatting tags" and you said "flags"

    You can use the universal [ code][ /code] to enclose your code (without the spaces in the brackets) , optionally you can use the # symbol on the...
  27. Replies
    13
    Views
    804

    VS 2008 Re: Using Serial port to get GPS Data

    ReadLine inside the DataReceived eventhandler reads any incoming string until it sees the Newline character which we declared to be vbCR (Carriage Return)


    SerialPort1.Newline=vbCr


    Because...
  28. Replies
    13
    Views
    804

    VS 2008 Re: Using Serial port to get GPS Data

    Not knowing what the gps data looks like makes it hard to define a solution that will work. So the following example assumes that the gps string is delimited by commas and terminated with a Carriage...
  29. Replies
    13
    Views
    804

    VS 2008 Re: Using Serial port to get GPS Data

    I agree with topshot especially with regard to ReadLine being the preferred method, although it was alluded to I would like to mention that the ReadLine terminator has a default value of 10 decimal...
  30. VS 2008 Re: Rotating Picturebox from 0 to 360 degrees

    I have a template I use which sometimes I will incorporate in a user control.

    I create two images the same size in a drawing program., in my example they were sized 260,260 pixels with a white...
  31. VS 2012 Re: Please help write a contact code via Serial Port

    Hello moftah70 and welcome, this forum is a great place for help and information.

    I think it is unlikely that anyone is going to sit down and write a program for you so you will need to provide...
  32. VS 2012 Re: Replace Yes and No is MessageBox.Show with custom text buttons

    A Dialog gets you good part of the way there without too much effort
  33. Replies
    13
    Views
    1,011

    Re: help with chart values

    Expanding on the suggestions by tommytwotrain here are a couple of obstacles I encountered and the way I resolved it. I don't know if it would work for you but you might try it.

    At one time I...
  34. VS 2015 Re: change forecolore after a character in richtextbox vb.net

    This might give you a few ideas, it splits a line string using the colon as the delimiter.

    It uses the first character index and split string length to make a selection and color it and by...
  35. Re: Loading an RTF File Into A Richtextbox without using dialog?

    I am not sure what's going on, try removing the RichTextBox from your form and adding one during run time.


    Imports System.IO

    Public Class Form1

    Dim filepath As String =...
  36. Re: Loading an RTF File Into A Richtextbox without using dialog?

    Imports System.IO

    Public Class Form1

    Private filepath As String = Path.Combine(Application.StartupPath, "words.rtf")

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles...
  37. Re: Live scale reading from serial port and converting to usable format

    Try this and see if you can receive data from the scale.

    The format will not be right but that can be dealt with once you know data is coming in.

    The example is just a windows form containing a...
  38. Re: Update chart within loop - how to set axis range and control axis tickmarks

    What I have is basically what you have but I thought it may prove useful in your particular application. Loading the data values in a For Next loop is no different to loading from an Excel file or a...
  39. VS Code Re: Comunication Serial Port Usart Visual Basic and avr atmega

    The AVR code does not mean much to me but if you want to read strings echoed back from the AVR append the Newline character to the string.

    Newline is decimal 10, so here you are transmitting...
  40. VS 2010 Re: Converting an integer to Character and saving it to an Array

    You could create a char array from the original string, add the offset then back to a string


    Dim myimportedtext As String = "Placeholder for text"
    Dim encryptedtext() As Char =...
Results 1 to 40 of 214
Page 1 of 6 1 2 3 4



Featured


Click Here to Expand Forum to Full Width