Read An Input Usb Board Signal?
Dec 30, 2010I'm newbie in VB and in my project I need a refresh loop to check an input usb board... everything runs well but I want a 100 ms refresh without button click needed[code]...
View 1 RepliesI'm newbie in VB and in my project I need a refresh loop to check an input usb board... everything runs well but I want a 100 ms refresh without button click needed[code]...
View 1 RepliesWe learned How to assemble an input/output control board that would connect to your serial port. We were able to use out statements (back in the old gwbasic) to send output signals to the parallel port to turn on/off different outputs. The board had connections where you could connect lights, relays, etc, and had connections where you could attach switches and sensors.
I have been looking for something simple that I can manipulate in my programs. I already have an ActiveHome X10 interface which includes an activex for receiving and sending x10 signals (home automation, turning lights on/off, etc.). I want something that I can straight out connect relays to, and sensors as well. I don't want something that connects to the serial port since that is already being used up, the parallel port would work fine, or even better usb.
I'm trying to build a form with 2 textbox where I can display latitude and longitude taken from serial input from serial port with a gps ($..GGA or $..GLL telegram)
View 1 RepliesI want to get the data coming from a weighing scale (rs232 signal) to a vb.net prgram, to a text box
View 1 RepliesMy objective is to, instead of entering in the data manually into the text boxes, I want to read in a textfile. The Calculate button will contain the code to read in the file and assign it to the appropriate textboxes. Save the separate file in the \bin\Debug folder.
The text file just needs to have 3 integers on 3 separate lines.The code I posted works without and errors, but.I am having some trouble integrating the Stream Reader.
[Code]...
I know how to read user input using textbox but it only can read character and numbers. Is it possible that I want to read user input equation?
Example:
User type A+B
User put range of A and B.
1.25<A< 3.56
2.45<B< 9.87
I failed to read the equation using textbox. Is it there are other ways that can use to read equation input A+B?I am using VS2005 and VB.Net. I really new in this programming using VB.Net.
i want to read the joystick input?is it somewhat like keyboard input?
Private Sub form1_keydown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
Select Case e.KeyValue
Case Keys.Right
TrackBar1.Value = TrackBar1.Value + 1
[code]...
I am trying to make a program using Visual Basic that will allow the user to add links to web pages (such as www.google.ca) to a list in the program and make it so that they do not dissapear once the program is closed.
So to get into more detail, I have a text box, a listview, and a button. When the user types a link into the text box it needs to be put into an array (called "addlink") and then when the user presses the button, the link is typed into the listview as an object.
Then if the user clicks on that object in the listview, it will open up the browser using the WebBrowser command. How do I set the text in the textbox to an array once the button is clicked?
Specifications:
OS: Windows 7 Ultimate Edition
Software: Microsoft Visual Basic 2010 Express
Experience with Visual Basic: Average
1) Is it possible to input text into a .dll and then read it with some similar code.
Dim lines() As String = IO.File.ReadAllLines(My.Application.Info.DirectoryPath & "
eadme.dll")
For Each line As String In lines
Msg(line)
2) categorys inside a dll.
For example if the "line" string equals to car then find the category black and display it's contains. I would like the .dll to all contain this information. Both the car and the category. All i want is the main .exe to read the information.
What i want to do it be able to read the input of a pin on the parrallel port. I want to supply a constant voltage to the pin and when that voltage drops i want to jump to another procedure.
View 2 RepliesHow to create a console application which would read input from user and assign the input to a variable? The problem is, I need to enter several words on one line separated with blank spaces like "ab cd efg" and then assign ab to one variable, cd to another variable and efg to another variable. Also the entered words can be any lenght.
View 3 RepliesWith my datagridview I have column for datetime. I used the following for format.
Mydatagrid1.Columns(3).DefaultCellStyle.Format = "dd/MM/yyyy"
But the problem is it's getting input like MM/dd/yyyy and after pressing enter it's changing to dd/mm/yyyy style. So is it possible to read input like "dd/MM/yyyy".
My problem is i want to input a fraction a textbox, and receive the value or allow the application to read "/",.
View 1 RepliesI'm trying to read barcode using a scanner through a serial input(com1). Below you will see the code I'm working with, when I scan the barcode the code goes through the datareceived event and doesnt add the read barcode to the listbox. However when I use hyperterminal and scan the barcode it reads and displays the barcode.
[Code]....
I am reading text from a file (*.TXT) 1 line at a time using streamreader. As I read that input, I am looking for specific starting and ending character strings ("<" and ">") . When I find those strings, I would like to select the characters between those string and have it set to BOLD and BLUE before appending that input line to the contents of a richtextbox.The only way I have found to do this is to first append the input line to the richtextbox then use the richtextbox.selection (color and font) methods to change the text.
View 9 RepliesI want to write software in visual basic that reads the barcode of various items into my program.
View 4 RepliesI've been trolling for a long time now and have decided to register as I finally have some time to start jumping into VB. The last time I coded VB, the current version was VB 4. I've been out of programming for a good while now and considered myself a beginner (tutorial example coder haha).
My question is: Where is a good place to start learning VB.NET?
I know it's an often asked and answered question - but let me give you a bit more information so more specialized replies might be given.
I'm in INFOSEC/COMSEC and would like to (eventually) develop a program that contains a DB of information that is read by the application and saves input information into a DB (encrypted) as well. The program will be a 800-53 C&A control assessment program; used for tracking system compliance for federal information systems. I would like to be able to develop such a tool to make my life easier at work instead of using Excel spreadsheets to track everything.
I would like to learn:
- Input / Output methods and validation (for secure coding)
- Read/Write DB Encryption (RSA or other 128-bit) for user input information
- Ability to generate PDF reports from the primary keys and data sets from the above DB
My goal is to create a program that allows a user to install the program, setup a 'master' account that a serial/key has been generated for - that master account is then allowed to create new projects (progress saved in DB). A project asks the user certain questions pertaining to information systems and takes the input and saves it into the DB (encrypted). When the assessment is completed, I would like the program to be able to generate a PDF report from the DB (from a layout template I created).
I've got myself a CSV file with the following contents:
1,The Compact,1.8GHz,1024MB,160GB,440
2,The Medium,2.4GHz,1024MB,180GB,500
3,The Workhorse,2.4GHz,2048MB,220GB,650
It's a list of computer systems, basically, that the user can purchase.I need to read this file, line-by-line, into an array. Let's call this array csvline().The first line of the text file would stored in csvline(0). Line two would be stored in csvline(1). And so on. (I've started with zero because that's where VB starts its arrays). A drop-down list would then enable the user to select 1, 2 or 3 (or however many lines/systems are stored in the file). Upon selecting a number - say, 1 - csvline(0) would be displayed inside a textbox (textbox1, let's say). If 2 was selected, csvline(1) would be displayed, and so on.
It's not the formatting I need help with, though; that's the easy part. I just need someone to help teach me how to read a CSV file line-by-line, putting each line into a string array - csvlines(count) - then increment count by one so that the next line is read into another slot.So far, I've been able to paste the numbers of each system into an combobox:
Using csvfileparser As New Microsoft.VisualBasic.FileIO.TextFieldParser _
("F:folderprogramnameprogramnameinDebugsystems.csv")
Dim csvalue As String()[code]......
But this only selects individual values. I need to figure out how selecting one of these numbers in the combobox can trigger textbox1 to be appended with just that line (I can handle the formatting, using the string.format stuff). If I try to do this using csvalue = csvtranslator.ReadLine , I get the following error message:
"Error 1 Value of type 'String' cannot be converted to '1-dimensional array of String'."
If I then put it as an array, ie: csvalue() = csvtranslator.ReadLine , I then get a different error message:"Error 1 Number of indices is less than the number of dimensions of the indexed array."
Structure systemstructure
Dim number As Byte
Dim name As String[code]............
i have made a pong game and it is relatively simple, but i want to add a timer to time how many points you loose with in 5:00 minutes. then i want to make it save to a form where the user can view it. the code i have used so far is
Public Class Pongmain
Dim speed As Single = 10 ' Ball Speed
Dim rndInst As New Random() ' Random instance
[code]....
I am trying to capture a tv dvb-s signal via vb.net since a long time now.I have tried to get it work with the Microsoft examples, but no success till yet.I had success with analog tv tuning, but digital tuning is still far away, also I don't find any examples with dvb-s and vb.net or c#.
View 1 RepliesI have a number of programs written in VB.NET 2010 that load and run on every computer I've tried them on. This week I replaced my mother board with an IBM mother board using a Pentium 4 running Windows XP Pro. I install the programs but as soon as they start to run, they immediately shut down. If I run them in Visual Studio 2010, they run fine.
View 2 RepliesI am trying to create a high scores board - currently i was experimenting with just typing a number into a textbox and having it automatically order the numbers (in labels) from largest to smallest however i cannot get them all to work. either just the first and second (label) works or the second and third display the same number or the second decreases in value even though it shouldn't[code]...
View 7 RepliesI need to control this terminal Board and I have absolutely no idea if this is can be done. This board is connected to the PC Via PCI Card. Can we do that using .Net Framework?
View 7 RepliesI have a problem with a Management.ManagementObjectCollection object. I can't use a For Each to go through its items, it tells that is not supported...
[Code]...
Is it possible to send information to a BackgroundWorker thread while it is running? Here is my scenario: Parent thread calls background thread to send a data request to a database. If it's a big complicated query it can take a while for the db to respond, so putting the db request on the background worker thread is great. My app can do other stuff while the one thread waits for the db.
Now, db responds with beginning of data. I want my background thread to report back meta data about the result set to the parent thread. No problem there, I can use a custom user state object and the ReportProgress method. But now, how to I send a signal from the parent thread back to the worker thread? I want the background thread to wait while the parent thread does something, and then tells the worker thread to keep going or quit. I know how to cancel a background thread, but I want the parent to be able tell the child some information other than "cancel". Here's one way to think about it:
[Code]....
I need some advises on showing digital signal indicator at this moment I use radio button...but it's then becoming complicated because I have to make them "true" or "false" anytime.
View 24 RepliesWhat I want it to do is, as I'm typing the word, that it highlights it on the board using the button(x,y).doclick sub which highlights it. Right now my implementation finds the first letter, then keeps trying each letter until it meets the 8 corner condition (ie it is neighbored to the last one) but this does not always work. If there are say 2 "G"'s on the board and I want the bottom one, this will not work. Can somebody give me an example of psuedocode
View 1 RepliesI am trying to catch key board events with the form keydown.
I am able to capture all the keydown events except the "Enter" key. When the enter key is pressed this code does not even fire.
Private Sub FrmMain_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
Select Case e.KeyCode
[Code].....
I am making a variation of the board game Trivial Pursuit. I am having trouble moving my piece around the board. The board is a circle divided into 32 squares, that are coloured. I am wondering how to get the players pawn to move around the board if it is a circle. They have to move according the the number they role on the dice. I have the dice rolling and finding numbers, but its the moving i'm having trouble with
View 1 RepliesI'm currently developing a chess program. In my program, the problem I'm currently having is the slow drawing of the initial board. Here's part of my _gameGraph.DrawImage(MyResources.Marble_White, New Rectangle(x, y, 70, 70)) The code here draws the black & white squares using a for/next loop. I later use another for/next loop on the array holding the piece values, which uses the same type of function to draw the pieces on top of the squares. Both the pieces and the squares are .PNG images.
[Code]...