please write the program in beginner level.I Scan the data using bar code scanner, i want to through the date in perticular TCPIP How done the program VB?
Most barcode scanners send keystrokes to applications, anyway, assuming it sends a TCP packet, you need to use use the MS Winsock control, and set it to receive (listen) a specific TCP port. It has an event that receives a string.
If you're using code39 barcordes, text will simply have asterisks in between, *like this*.
Sunday, December 11, 2011
How to write a scanner for a compiler in VB.NET?
As a part of school project I need to write a scanner and a parser for a compiler, I've chosen to do so using VB.NET. How do I write a language definition part of the scanner?How to write a scanner for a compiler in VB.NET?
Using VB.Net there might be classes which are already defined to do such, use regular expressions to parse your syntax. Your scanner will need to tokenize the text for use by the parser. So in doing such you will need to use regular expressions heavily. Do some research on regular expressions.
If you used a language like C you could use flex/yacc, bison etc. These tools help in development of languages.
Using VB.Net there might be classes which are already defined to do such, use regular expressions to parse your syntax. Your scanner will need to tokenize the text for use by the parser. So in doing such you will need to use regular expressions heavily. Do some research on regular expressions.
If you used a language like C you could use flex/yacc, bison etc. These tools help in development of languages.
How do I change text properties in code in VB.net 2008?
I want to make the font size of the output of a label smaller and bold as well. How do I code this in VB.net 2008?How do I change text properties in code in VB.net 2008?
Dim FontName As String = ';Arial';
Dim FontSize As Integer = 14
Dim FS As New Font(FontName, FontSize, FontStyle.Regular)
Label1.Font = FS
DaneHow do I change text properties in code in VB.net 2008?
'Font size is Single, so do the following:
Dim newSize As Single
newSize = Label1.Font.Size - 1.0F
Label1.Font = New Font (Label1.Font.Name, newSize, _
Font.Style.Bold)
Dim FontName As String = ';Arial';
Dim FontSize As Integer = 14
Dim FS As New Font(FontName, FontSize, FontStyle.Regular)
Label1.Font = FS
DaneHow do I change text properties in code in VB.net 2008?
'Font size is Single, so do the following:
Dim newSize As Single
newSize = Label1.Font.Size - 1.0F
Label1.Font = New Font (Label1.Font.Name, newSize, _
Font.Style.Bold)
How make vb.net find certain text in a iexplorer window?
Also i need to now how to make vb.net save listbox items as a txt fileHow make vb.net find certain text in a iexplorer window?
For the txt file:
Dim file_name As String = DataFile()
Dim stream_reader As New IO.StreamReader(file_name)
Dim line As String
' Read the file one line at a time.
line = stream_reader.ReadLine()
Do While Not (line Is Nothing)
' Trim and make sure the line isn't blank.
line = line.Trim()
If line.Length %26gt; 0 Then _
lstAnimals.Items.Add(line)
' Get the next line.
line = stream_reader.ReadLine()
Loop
lstAnimals.SelectedIndex = 0
stream_reader.Close()
Catch exc As Exception
' Report all errors.
MsgBox(exc.Message, MsgBoxStyle.Exclamation, ';Read '; %26amp; _
';Error';)
End Try
For the DateTimePicker I had luck with using the value.date property. I would also use now.date simply because it's unlikely you are going to choose the exact millisecond that you are looking for:
If DateTimePicker1.Value.Date = Now.Date Then
MsgBox(';HEY!!!!!!!';)
Else
End Ifcamping tent rental anyway to look at someone
For the txt file:
Dim file_name As String = DataFile()
Dim stream_reader As New IO.StreamReader(file_name)
Dim line As String
' Read the file one line at a time.
line = stream_reader.ReadLine()
Do While Not (line Is Nothing)
' Trim and make sure the line isn't blank.
line = line.Trim()
If line.Length %26gt; 0 Then _
lstAnimals.Items.Add(line)
' Get the next line.
line = stream_reader.ReadLine()
Loop
lstAnimals.SelectedIndex = 0
stream_reader.Close()
Catch exc As Exception
' Report all errors.
MsgBox(exc.Message, MsgBoxStyle.Exclamation, ';Read '; %26amp; _
';Error';)
End Try
For the DateTimePicker I had luck with using the value.date property. I would also use now.date simply because it's unlikely you are going to choose the exact millisecond that you are looking for:
If DateTimePicker1.Value.Date = Now.Date Then
MsgBox(';HEY!!!!!!!';)
Else
End If
How make vb.net find certain text in a iexplorer window?
Also i need to now how to make vb.net save listbox items as a txt fileHow make vb.net find certain text in a iexplorer window?
For the txt file:
Dim file_name As String = DataFile()
Dim stream_reader As New IO.StreamReader(file_name)
Dim line As String
' Read the file one line at a time.
line = stream_reader.ReadLine()
Do While Not (line Is Nothing)
' Trim and make sure the line isn't blank.
line = line.Trim()
If line.Length %26gt; 0 Then _
lstAnimals.Items.Add(line)
' Get the next line.
line = stream_reader.ReadLine()
Loop
lstAnimals.SelectedIndex = 0
stream_reader.Close()
Catch exc As Exception
' Report all errors.
MsgBox(exc.Message, MsgBoxStyle.Exclamation, ';Read '; %26amp; _
';Error';)
End Try
For the DateTimePicker I had luck with using the value.date property. I would also use now.date simply because it's unlikely you are going to choose the exact millisecond that you are looking for:
If DateTimePicker1.Value.Date = Now.Date Then
MsgBox(';HEY!!!!!!!';)
Else
End If
For the txt file:
Dim file_name As String = DataFile()
Dim stream_reader As New IO.StreamReader(file_name)
Dim line As String
' Read the file one line at a time.
line = stream_reader.ReadLine()
Do While Not (line Is Nothing)
' Trim and make sure the line isn't blank.
line = line.Trim()
If line.Length %26gt; 0 Then _
lstAnimals.Items.Add(line)
' Get the next line.
line = stream_reader.ReadLine()
Loop
lstAnimals.SelectedIndex = 0
stream_reader.Close()
Catch exc As Exception
' Report all errors.
MsgBox(exc.Message, MsgBoxStyle.Exclamation, ';Read '; %26amp; _
';Error';)
End Try
For the DateTimePicker I had luck with using the value.date property. I would also use now.date simply because it's unlikely you are going to choose the exact millisecond that you are looking for:
If DateTimePicker1.Value.Date = Now.Date Then
MsgBox(';HEY!!!!!!!';)
Else
End If
Can anyone help me to create a multiple user login system in VB?
I am facing problem in creating multiple user login system. Can anyone help me with code that could help me in doing so, also how to save the info in database (MS Access) i.e the username and passwordsCan anyone help me to create a multiple user login system in VB?
James, you can find such a program on planet source code site in visual basic section http://www.pscode.com/vb/default.asp and type your query like user Login, you will get good working examples there. Hope this will solve your problem.
Please go through the comments underneath the download link before working on/using any program on this site.
If u want program in .net you need to go in .Net section.Can anyone help me to create a multiple user login system in VB?
Create a Table for the Username/password
Create a Form that asks for each
On the form have a Login button that checks the U/P against the table.
Create Admin forms for User Management
Save the info in the database with name,pwd and access levels
Using the access levels , restrict the user functionalities.
James, you can find such a program on planet source code site in visual basic section http://www.pscode.com/vb/default.asp and type your query like user Login, you will get good working examples there. Hope this will solve your problem.
Please go through the comments underneath the download link before working on/using any program on this site.
If u want program in .net you need to go in .Net section.Can anyone help me to create a multiple user login system in VB?
Create a Table for the Username/password
Create a Form that asks for each
On the form have a Login button that checks the U/P against the table.
Create Admin forms for User Management
Save the info in the database with name,pwd and access levels
Using the access levels , restrict the user functionalities.
Sunday, November 21, 2010
Does anyone know how to code Yahtzee in VB?
Does anyone know how to code yahtzee in vb?
I am having a lot of trouble with the dice. can anyone please help me?Does anyone know how to code Yahtzee in VB?
If you are having trouble getting a random dice number the code is:
Dim i As Short
Randomize()
i = 1 + (Rnd() * 5)Does anyone know how to code Yahtzee in VB?
since the dice has 6 faces, you can create the program by using
RANDOMIZE.
First ';code'; it in English. Then translating it to VB should be easy.
I am having a lot of trouble with the dice. can anyone please help me?Does anyone know how to code Yahtzee in VB?
If you are having trouble getting a random dice number the code is:
Dim i As Short
Randomize()
i = 1 + (Rnd() * 5)Does anyone know how to code Yahtzee in VB?
since the dice has 6 faces, you can create the program by using
RANDOMIZE.
First ';code'; it in English. Then translating it to VB should be easy.
Subscribe to:
Posts (Atom)