I've wrote a program that send and receives data via a serial port to a microcontroller. At present when I click (from a menu strip) a certain option I send data such as
Private Sub MsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MsToolStripMenuItem.Click SerialPort1.Write(1) End Sub
What I am wanting to do is instead of sending the data just once when I click this option, I want it to repeatedly send it until I select another option where the same occurs again and so on.Is there a function that acts like a while (1) loop that can do this?
I have a data source that creates a continuous stream of 24-bit samples. I can collect a set of samples and build a .WAV file, and play the file through my speakers. What I want to do is eliminate the middleman, and send the stream of samples directly to the sound card. The data source can run for hours or days. I want to hear it in real time, rather than collect it all and listen to it after the fact. The idea is that I can tune the process that creates the data better if I can hear what it's doing.
I have a textbox that is constantly updating (a log). Every time text is input the textbox is scrolled to the top. I need the textbox to always be scrolled down. Seems simple enough? Im scratching my head on this one. I tried the following code
Private Sub Timer22_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer22.Tick Log.SelectionStart = Log.TextLength Log.ScrollToCaret() End Sub
But the problem is the scroller jumps sporadically because it bounces to the top and then bounces down and it makes the program look sloppy.
I have an event I want to do continuously until a button interrupt is pressed. Here's the pseudo Click button 1: Check if button 2 is pressed If not, do stuff If so, stop doing stuff End routine
So what I currently have is this: Dim randominteger As Integer = 0 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StartSampleButton.Click [Code] ..... Unfortunately, it's never breaking outside of the first loop. How to get around it?
I have an application that has a ProgressBar added to it set to Continuous style. Everything seems to work great except that the progress bars seems to "fill in" slower than needed. As a test, I created a form with a continuous progressbar and a button. The button code only sets the progressbar's value to 100 (which is the max). Basically, for the test, the value changes from 0 to 100, but the ProgressBar seems to incrementally fill in like it is doing a PerformStep or something. I don't get it. Is there a way to get the ProgessBar to go from empty to immediately full when setting the value from 0 to 100 without the animated filling?
Not sure if this is the right thread place or not.And I've been designing an Mp3 player. I've ran across several things that I would love to know how to fix.
1. It won't play the next song when one ends. 2. Click and drag media files into the playlist. 3. Shuffle button would be awesome. 4. Repeat button. 5. I have a pause button, but it dont pickup where it paused...
If you could get the repeat playlist and shuffle into a checkbox form.[code...]
I'm trying to take a print on a Continuous Paper through a Thermal Printer ZP 2844 using Crystal Reports 2008 along with Visual Basic .NET 2008. I've set the page size to 3.00 inches as width & 3.00 inches as height. It prints well when the contents are a few on a single page but it puts gap when printing more than single page. There's no page margins set in crystal reports & the printing setup is the same in Crystal Reports as well as in Printer's Setup. Even in Print Preview of Crystal Report, it shows 2 pages to be printed but there's neither any gap at the end of first page & the start of second page. But! Still, a gap is shown when the report is printed. Here's an example how the print is show:
You can notice the gap between Item3 & Item4 which is due to next page or page break or so. I've noticed that in Crystal Report Viewer for Web, there's an option of SeparatePages = False which let you have a single/continuous page printing but I've not found any such option in Crystal Report Viewer for Desktop.
My app currently sends GET httpwebrequests and parses the content after reading the response stream for each request and the repeats this process over and over. I need to implement a continuous http stream which uses the same GET request but the connection stays open, from what I understand. how would I change my existing code to do this?
The streaming HTTP implementation allows one to cosume data in real time over a single persistent HTTp request. It access a data feed that continues to send activities on that response. I need to read data from the response, process it(parse and store) and then continue reading from the response and continue this process until the connection is closed. Would this be like a asynchronous request instead?
creating a mortgage calculator that display continuous information depending on the user input such as monthly payments, remaining balances, and interest paid. I am attempting to use a list box and am currently stuck. [code] Please use code tags when posting your code. Code tags are used like so.
create a message box that stores my user name, message, and post datetime into the database as messages are sent. Soon came to realise, what if the user changed his name? So I decided to use the user id (icn) to identify the message poster instead. However, my chunk of codes keep giving me the same error. Says that there are no rows in the dataset.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim name As String Dim icn As String Dim message As String
how to create an error message by message box to tell the user to enter a number only if they key in a character value?
I MEAN AFTER THEY PRESS THE CALCULATE BUTTON
Private Sub btnCalcFat_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalcFat.Click Dim intFat As Integer intFat = Integer.Parse(txtFat.Text) lblResultDisplay.Text = txtFat.Text * 9 End Sub
I am using Visual Studio 2005 for coding. I am doing an exercise where I have to create a data lookup program. The program is to illustrate the concepts of using a database to look up information based on user input. The program allows a user to input two search criteria for a product search. The program then displays each individual search result, or record that meets the search criteria in a message box. I am not getting the message box and I don't know why. No errors are present during compiling so I have no indication as to where the problem is.
Option Strict On Imports System.Data.OleDb Public Class Form1
I am sending a DDE message to a client using System.Text.Encoding.ASCII.GetBytes(item) . However, before the message is actually sent, I would like to get the message coded where if the item="Ask" then item=Ask (string variable) and so on. The code is:
Protected Overrides Function OnRequest(ByVal conversation As DdeConversation, ByVal item As String, ByVal format As Integer) As RequestResult ' Return data to the client only if the format is CF_TEXT
I'm making a simple decoder. Type a message in the "message" text box and it spits out a code in the "code" text box. If you pop a code into the "code" text box it spits out the message in the "message" text box. Seems simple, right? Well here's my problem. I typed "The quick brown fox jumped over the lazy dog" to test it and it will put a lowercase "f" at the beginning, put letters that aren't supposed to be in there in there, and replace what should be upper case letters with lower case. I commented out the code for replacing symbols because it seemed to work fine before I put them in the code but still the same result. I checked over the code to see if I mixed stuff up. Like I accidentally put the replacement for a lower case "e" as the replacement for a lower case "h" but I can't find anything.
Using VB2008 Express Data is from Access 2003 Goal to inster a yes/no message box when user selects the delete command.I have added the yes/no message box fine. When I select the yes to confirm the change it deletes it fine. The issue is when i select the "nos" option it still deletes it. The code below is what i have. I have tried an if/then statement with no success.[code]
I have a ftp chat of sorts and I want to make it so users can delete their own messages (Its all basically run off a .txt in the ftp). I just need a little help cause I don't know how to delete the off of a ftp. I
I am trying to display a message box in VB.NET. This should be simple but I cannot get it to work. I have coded in VB before and used MsgBox("Message") but in VB.NET i understand its MessageBox.Show("Message") but i cannot get it to work. Its saying MessageBox is not declared but what do you declare a message box as?
Im trying to get a message box to work. I want the yes button to open up a new form when clicked on and want the no button to close the message box again. And the cancel button to do the same.Heres what i have so far
testMsg = MsgBox("Does the customer want to customise the car?", vbYesNoCancel + vbExclamation, "Deals On Wheels") If testMsg. = Yes Then frmCustomise.Show()
I'm looking on how to go from a Yes/No message box to a pop up text box that you can type into and save it to a word document. But something that just saves and updates the same file over and over. I know I'm a "Noob" and I'm sorry if iv'e annoyed you by asking easy things but its really doing my head in,
i'm actually developing monitoring application based on sms.it have 1 monitoring application and 1 for remote.my problem is how i can control the remote site from the monitoring application based on the sms that received.