I want to use a barcode reader machine in a visual basic program. for example when barcode reader reads a value how can i show this value in a label?
205859
bar code readers are just like keyboards..\nyou can have a text box and when the reader scans the barcode, the chars will be typed in the textbox... of course the textbox needs to have the focus...
156756
Create a form with textbox named 'txtDiamond' and give it the following settings: 'MultiLine = True', 'ScrollBars = 2 - Vertical'\n\nThen copy the following code within Either Form_Load() or another subroutine in which you would like to generate the row. The following code is dynamic, and allows you to create diamons with the amount of rows being odd or even. I expect alot of points cuz i had to write this myself ;).\n\nHere it is:\n\n    Dim RowCount As Long\n    Dim Row As Long\n    Dim Stars As Long\n    Dim MiddleRow As Long\n    Dim SpaceCount As Long\n    Dim X As Long\n    \n    RowCount = 11\n    MiddleRow = Round((RowCount / 2) + 0.1, 0)\n\n    Stars = 1\n    \n    For Row = 1 To RowCount\n        If Row = 1 Then\n            txtDiamond = String((RowCount + 1) - Stars, " ")\n        Else\n            txtDiamond = txtDiamond & vbCrLf & String((RowCount + 1) - Stars, " ")\n        End If\n        For X = 1 To Stars\n            txtDiamond = txtDiamond & "*"\n            txtDiamond = txtDiamond & " "\n        Next X\n        \n        If Row < MiddleRow Then\n             Stars = Stars + 1\n        ElseIf Row = MiddleRow Then\n            If InStr(1, (RowCount / 2), ".") > 0 Then\n                'Odd\n                Stars = Stars - 1\n            End If\n        Else\n             Stars = Stars - 1\n        End If\n        \n    Next Row
574992
The sad fact is this, no, not in MS-DOS.  The good side is this: Yes, probably in Visual Basic, or as an actual Windows Console application if you wanted to out of any Win32 capable language.  And better yet, their are several freeware windows scripting languages that may allow this.  I leave it to you to do a couple of searches and find out about most of this, but the URL below may be an excellent place to start.
325010
 Dim frmName As String\n   \n frmName = "form2"\n   \n Select Case frmName\n  Case "form1"\n   Form1.Show\n  Case "form2"\n   Form2.Show\n  Case "form3"\n   Form3.Show\n  Case Else\n   MsgBox "Invalid form name"\n End Select\n\n***EDIT***\nIn VB, you can't convert a string object into a form object.  This is why String.Show doesn't work.  However, you can use a "select case" on the string and if the string matches the form name (i.e. form2), then show the form.\n\nAnother alternative is to loop through the forms collection until you find a form with the same name as your string.\n\nIn any case, if you create a project with 2 forms (called form1 and form2).  Add a button to form1 and paste the above code into the click event of the button.  When pressed, form2 will be displayed.
596393
See some examples at http://www.pscode.com, select your language and download examples. If you are using VB, VC++ then visit http://www.msdn.com
635100
I don't use vb.net myself (C# I use).\n\nIf you want to keep the 0's in the front though, it has to be a string, not an integer.\n\nYou convert it over to integer, add the next number, then cast it back to string, and pad the length to the desired number of 0's\n\nPseudo code:\n\nLicenseNoNum = CastToInt(LicenseNostr)\nLicenseNoNum = LicenseNoNum + 1\nLicenseNoStr = CastToStr(LicenseNoNum)\nWhile LicenseNoStr(Length) < 8\nLicenseNoStr = '0' + LicenseNoStr.\n\nYou could also just store it as an integer, and perform the cast for printing, which might be all you were looking for.
154008
I don't understand your question.  Do you want to write an assembler in Visual Basic?  This sounds like a homework exercise for school.  Secondly, no one knows just what this SIC is.
293512
In VBA (as used in PowerPoint) declaring a variable and assigning a value must be separated.\n\nDim astring as String\nastring = "Test"\n\nIn VB 2005, VB.NET, etc. - your expression would be fine.\n\n*** Additional Stuff ***\nSounds like you're really struggling ... In the code module for the presentation you'll need to put the code in a procedure ... here's an example\n\nSub TestThis()\n    Dim astring As String\n    astring = "Test"\n    MsgBox (astring)\nEnd Sub\n\nAfter this, you'll be able to run this code as a macro ... Tools >> Macro >>> Macros ... then select the "TestThis" macro and run it ... you'll get your message box.\n\nGood luck!
281816
instead of \ntitle = "Hello World";  \ntry\ntitle.Text = "Hello World";\n\nthe lable object can not be assigned a string value, but the Text property of the lable object can :)
64399
http://www.intelligentedu.com/newly_researched_free_training/Visual_Basic.html
263923
Hi, I understood two different resolutions to your question. To open a website in VB6, is simply a socket client problem. You open a socket to the website and you grab the contents. (fetch the source of the page, the API does that). and you can read the contents of the website easily, like getting information from that website. Take a look at using the VB6 socket class, the events are alreayd created for  you.\n\nOr you meant, about the WebBrowser control. To implement that control, you simply drag that control from the tool panel to your workplace, and you drag a button to it as well.. You double click on that button, and then inside that method you do:\nmyBrowser.Navigate("http://www.yahoo.com");\n\nThere are many events for the webbrowser control that you could use, take alook at the docs:\nhttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconvisualbasiccontrols.asp\n\nHope it works out with you! Microsoft makes our lifes easier!
450656
If it's a textbox,\nstring strVal = txtControl.Text; // you can aldo do .Text.Trim();\nIf it's a dropdown\nstring strVal = (string) ddlControl.SelectedItem.Value;\n\nSome objects have string properties (.Text) you can access directly and store into string variables; others have "object" types (.Value) that you'll need to cast.  Then you can also convert them to other types by writing\nint iVal = Convert.ToInt32(strVal);\nfor free-hand input, beware of conversion exceptions.\n\nYou can collect the user input either upon clicking of a button (set up an event handler for the button's Clicked event) or by handling the TextChanged or ValueChanged events of controls.\nCreating event handlers is best and most accurately done via the designer.
146587
Bar-code values were created to help in billing and tracking of  goods. The bars are nothing but numbers represented pictorially. Bars of different thickness represent different numbers. A common standard is UPC bar-code that specifies the width of each number. One part of the bar-code represents the manufacturer and the other part is specific to the product. When a bar-code label is scanned, the barcode scanner scans the width of the bars and the software converts it to the information corresponding to the particular product like price, etc.
227475
Go to Microsoft"s home page.  They have a free C++ and a Visual basic compliler under free software.
84879
I already answered this for you in your other thread, using Visual Basic. With a little effort, you ought to be able to convert one type of Basic to another. The languages are virtually identical.\n\nOnce again, what you need to do is create a function. Let's call it DozenBetType. It is going to take one argument: an integer: DozenBetType(someInteger)\n\nThe function is going to return:\n1 if the number passed to it is 1-12\n2 if the number is 13-24\n3 if the number is 25-36\n\nThen you can simply call the function on both the number guessed and the number your program has generated.\n\nFor example, if the number your program generated is declared as intResult, and the number the person guessed is declared as intGuess:\n\nif DozenBetType(intGuess) = DozenBetType(intResult) then they have won the bet, otherwise they have not. (A simple if-then-else statement\n\nIf you don't want to use a function, or if that's too complicated for you, you can declare two new variables: intDozenTypeResult, for the number your program generated and intDozenTypeGuess, for the number your user guessed.\n\nSet intDozenTypeResult to be 1 if the program's random number is between 1-12, set it to be 2 if the value is 13-24, set it to be 3 if the value is 25-36. \n\nDo the same thing for intDozenTypeGuess.\n\nThen, simply compare those two variables:\n\nIf intDozenTypeResult = intDozenTypeGuess then they have won, otherwise they have not (again, a simple if-then-else statement).\n\nPlease, don't create new threads for the same question. Just update your old question.
562908
use the Macro Recorder to code the procedure you want...then you can convert it to VBA (Visual BASIC for Applications) and edit it.
413787
Hello,\n\nWell, I havent used VB 6 for a long time (i using c++ now) but if I not mistaken it does write integer and infact any data type (including the ones you may have created yourself) to files...\n\nIt'd be better if you could post your code.\n\n[]s