Get Listbox1 To Be The Selected Comport Used To Do The Send Data And Get Data Back
Nov 14, 2011
I have two issues I am trying to correct...First am trying to get my listbox1 to be the selected Comport used to do the send data and get data back.
My second issue is its requiring me to send two times to get my read data back as complete data and has odd shapes with the data I get back in front of and after the regular txt.
Beware, I am very new at this so please take it easy on me... Most help I did find was for older versions I only have the 2010 Visual studio Professional...
Public Class Form1
Sub GetSerialPortNames()
End Sub
[CODE]...
View 6 Replies
ADVERTISEMENT
Dec 25, 2009
I have a barcode scanner which sends data to USB Port. I want to redirect it into ComPort. So that I can manipulate it. How can I do It in Visual Basic 2008 Or how to convert usb port to ComPort in Visual basic 2008
View 1 Replies
Dec 4, 2009
I have a program which will read data from comport when ever there is data on comport. I am using Comport.DataReceived event to do that.My program will receive data very frequently and it is working fine. The problem is, it will work for 3 to 4 days fine but after that my receive data will slow down. I am receiving data with high delay (about 10-15 min).There will be continuous data to my comport.
View 4 Replies
Mar 25, 2011
I have an existing WSDL which returns information to remote devices using SOAP. However, I'm writing a new app with Android which doesn't support SOAP so I can't use the existing WSDL and have had to code a new app which looks for a querystring from the Android app and returns the data in a JSON packet. I've coded the module which receives the data okay but I'm unsure how to send the data back in JSON forma
View 1 Replies
Dec 17, 2010
I need to send data back to my Apache web server so it can be updated in it's MySQL database, I've looked at NuSOAP as it's written in PHP but man that's hard. I'm lost, is there a more simply way to send it back? even to call a webpage and send data into it?
View 4 Replies
Apr 25, 2010
In WPF I have one window opening a second window that allows some data selections to occur on. Once the selections have been made I then want to submit/close the second/sub window and have the data pushed back to the opening/parent window.
I can push data into the sub window from the parent via public properties, but have not worked out how to get it back the other way.[code]...
View 2 Replies
Feb 16, 2012
I have two DataGridView in a form one of them connected to the database. I want when I select one row of data in first DataGridView could have just information of that row in another DataGridView. Can I do this with DataGridView ? if not which object do you suggest for do this? There is something like MSflexgrid for visual basic 2010?
View 3 Replies
Mar 29, 2012
Im trying to send data from a Windows Form to an aspx page and send back a response. Im running around in circles trying to make this work. The data im trying to send is 4 strings. So fare I have this in my code, using the build-in webclient in visual studio 2010, in the windows form sending to the aspx
[Code]...
View 2 Replies
Nov 2, 2010
I am having trouble sending data to a comport..... I am a noob at this and have been doing my head in... I have done a fair bit to a few programs that I have on the go, but am stuck at sending some data to the comport...
I have in form1 put the serial port contol and added SerialPort1.Open() to that. I have then added 3 buttons that I was to use to send data to the port... Since this is for a radio scanner the buttons turn the backlight on / dim and off.....
LTN is used to turn the light on and works fine in hyperterminal.. I have got the port settings right in vs2008 but the code is wrong.
I have:
code:
Then I get warning of Name 'LTN' is not declared...
View 8 Replies
Dec 25, 2009
I am trying to read data from comport and display data in a rich text box.
View 2 Replies
Sep 28, 2009
I would like to ask about sending an image file through serial port to a external embedded processor....
the way i think i want to do it is that i would like to open the image file in VB.NET as a binary file and then
1)either converting this binary file to a text file and then read the content of that text file to sent it through UART to that external processor or
2)Converting the binary file into an array and send that array through uart.[code]...
View 3 Replies
Mar 11, 2009
When I connect to database located in SQL Server outsite from vb2008 project and when I run XAML Windows1 form the Listbox1 is empty. [code] When I connect to database located in vb2008 project and when I run Windows1 the Listbox1 is fill by data. How to fix that problem?
View 1 Replies
May 9, 2010
A function of my app is to encrypt a file with TripleDES. The problem is that when the app reads the data, encrypts it, and writes it back, the new data is appended. I need it to overwrite the original contents.Here is the code:
Dim
DES As
New
System.Security.Cryptography.TripleDESCryptoServiceProvider[code]............
View 2 Replies
Jul 27, 2011
I have a situation where I serialized data from a dataset to an xml file as a method of backup.I am trying to get the data deserialized back to the dataset.But for some reason, I cannot get the data to persist back to the DB.I don't receive any error messages either.The first chunk of code is the serialization code and the second chunk is the deserialization code.I can show that the deserialization back to the dataset is complete because this code in the 2nd block DataGridView2.DataSource = Movie_dbDataSet.movie_tb - displays the data in correct form all it is all there in the datagridview2.I call the update method but it does not get persisted back to the db.[code]
View 3 Replies
Oct 14, 2010
I just want to display data in a DataGridView (from SQL - already made the connection) based on what is selected in a ComboBox (data that is also coming from SQL). The 2 are separete on the form. I am using VB 2010.
This doesn't work for me:
objCommand2.CommandText = "SELECT ProductID, Name, Color, Size, ListPrice FROM SalesLT.Product WHERE ProductCategoryID = " & cbCategory.SelectedValue
[code].....
View 3 Replies
Feb 15, 2012
how can i insert data from data base with selected Datagridview columns i have insert combobox to Datagridview and it can load data from DB now i need insert data to another columns in Datagridview when i change combobox items?
View 7 Replies
Apr 28, 2011
In order to re-sort the data received in USB easier, I send the data array received in USB (declared as Byte) to a temporary array (declared as SByte) to re-sort. I declared the temporary array as SByte just for easy sorting. After I compiled, an error message came up "make sure not divided by zero". I tried to use convert.SByte but still didn't help. Is it not allowed to send data to an array with different data type declaration?
View 1 Replies
Apr 19, 2012
So I have two ListBoxes. Listbox1 gathers files from a directory and I have an add button to add selected files from Listbox1 over to Listbox2.
Is there a way to manually sort these items? Maybe with an up down buttons?
The reason I'd like to sort/reorder is I'll have a process that will run those selected files and each file will have to produce another file unique to the filename.
A quick example would be process FILE1.txt and produce FILE1.pdf, etc.
Is there an easier way to accomplish the sort/reorder?
UPDATE
Here is currently how I'm populating my listbox1, before adding anything to listbox2, which is the ListBox I'd like to have sorted so way or another.
Dim directoryInfo As _
New System.IO.DirectoryInfo(FolderBrowserDialog1.SelectedPath)
Dim fileInfos() As System.IO.FileInfo
[Code].....
View 2 Replies
Jul 1, 2011
I have 2 listboxes, and i can't get out what i need to do for the method. The method is, if a item in listbox1 is selected, it will select the same line in listbox2 and same in reverse. there can be many many items.
View 5 Replies
Mar 6, 2012
i am using vb 2010 express
im trying to search a selected folder for all extension in listbox1
here is my current code. it only works if i highlight the listbox1 i want it to go thru all the extentsion in the list box. if possible when they click the button can it do a OpenFileDialog and use that dir and add them to listbox2 intead of "c:"
Dim count As Integer = (ListBox1.Items.Count - 1)
Dim words As String
For a = 0 To count
[Code]....
View 5 Replies
Aug 7, 2010
I have a CheckedListBox with some stuff in it and a ListBox with nothing in it. I'm using this code to get the Selected one in CheckedListBox1 to ListBox1 and splitting it:
[Code]....
View 8 Replies
Feb 10, 2009
I have say... 10 lines of text in listbox1. how can I copy lines 5 thru 10 to listbox2 on buttonclick?
View 4 Replies
Jun 7, 2012
this is my first project and i am using vb.net2010
i have list box contains my drives using this code
ListBox2.Items.AddRange(Directory.GetLogicalDrives)
and ListBox1 is empty
i need the code to view all files and folders in listbox1 from the selected drive in listbox2
View 8 Replies
Sep 10, 2010
i have a list box which is populated with folder names via directoryinfo, and i have a second listbox which is also populated with folder names from a user selected folder. So listbox1 is populated like this:
[Code]...
View 2 Replies
Apr 25, 2010
I am using VB.net 2003. I am working on a stand alone windows program that stores data in an Access database via ADO.net via MS jet 4.0 OLEDb. I have progress to the point that I would like to provide the end user the oportunity to back-up the data they have stored and re-install if they choose. I am envisioning a menu item for "maintenance" with sub-items for "back-up" and "restore". I can create the menu items, but I can not find any information on how the back-up should be done.
View 4 Replies
Nov 5, 2010
I am writing an automation program for an associated research HYPOT tester and one of my current problems is trying to split the data i recieve back from the box.Currently i have two commands i use TD? and SALL? both do the same thing but return different data. TD? when sent to the box will return the test results and of course there is no auto return when test is complete so i have to either set some kinda of timer to get the data after the test is complete or just keep pinging the box tell the test returns with either a pass or fail.my problem is when i ping the box with TD? it returns
"M11,ACW,test results{pass|fail},1.50,10.00,10ms"
What I am trying to do is use a split command to split that line into strings based off "," as my dilimeter. Currently i am useing this set up
dim resultstring as string = main.serialport1.readexisting
dimresultarray as string = split(resultstring, ",",6)
txtTestResult.Text = resultarray(2)
for the most part is does return the test results but other times it will either error out saying that resultarray(2) is out side the index or it will display one of the other strings (acw or 1.50).Is there a more accurate way to do this.I am also printing the full string pulled from the buffer into a text doc as a data log.
View 15 Replies
Jun 15, 2012
Here's the function I'm a bit mystified by(Little rusty bitwise operators)
void two_one(unsigned char *in,int in_len,unsigned char *out)
{
unsigned char tmpc;
int i;
[CODE]...
I marked the two places that I don't quite understand. How to convert those pieces to Vb.Net.
Update: So this is what I came up with, but it's not quite giving me back the right data...Anything look wrong here?
Public Function TwoOne(ByVal inp As String) As String
Dim temp As New StringBuilder()
Dim tempc As Char
[code].......
View 2 Replies
Jul 8, 2009
I have an xbap application that connects to a webservice to run different stored procedure. The webmethod loads the data into a data table and returns it to my xbap application. My program gives the user the option to manipulate the data. What is the best option for saving the data back to the database?
View 6 Replies
May 17, 2012
I am having a problem with an application that displays data in datagridview depending on a selection from a combo box.The problem occurs when I want to write the data back to the database.
I get the following error:"Update unable to find TableMapping['Product'] or DataTable 'Product'."
Is this because the table in the dataset is filled in a private sub? If so how do I make it public?
Any ideas what is wrong. Code is as follows:
[Code]...
View 12 Replies
Mar 29, 2011
I'm currently working on a program that would take the binary data from my access database and convert it back into jpeg format so I can store the images in a folder. I'm really new to VB so right now I'm pretty much stumped.
Code:
Option Explicit On
Public Class Form1
Private cn As ADODB.Connection
[Code]....
View 9 Replies