|
Dear All!
I need to design an application in VB.NET that can take input from the BarCode reader device and then perform certion steps.
My problem is that when the BarCode is scanned i need to catch that event...
i.e the user comes and scan the Barcode....Now the system will detect that a Barcode is scanned and I have to move forward to other form or what ever.
This is to be noted that the user will not press ENTER etc when the barcode is scanned rather the System will detect itself............But How??????
Thanx in Advance
_mubashir
Why it is called BUILDING when it is already BUILT.
|
|
|
|
|
This really depends on the type of brcode scanner you are using. They are normally either serial or keyboard wedge. Keyboard wedge scanners are most common (probably because they are cheaper and easier to set up).
In general you would have an invisable textbox with the focus set to it . A keyboard wedge scanner basically converts whatever it scans into a simple keyboard input so when an item is scanned the text appears in the textbox. you can then capture the changes event for this textbox and validate the input. When you set up the scanner you set a character so you know the text is from the scanner.
Jon
|
|
|
|
|
Hmm.....
Thanx for ur advice......
But what the hidden textbox is for?????
and also when I put a text change event on the textbox......should it be raised for each character scanned by the scanner.......OR it will raise a single event for the Barcode scan
_mubashir
|
|
|
|
|
The hidden textbox has focus so it recieves the text string from the barcode scanner. It could easily be not hidden but we use it in a POS so it is hidden. the textchange will fire for each character but the scanner should append a particular character to mark the end so you simply check for the first character to confirm it is a barcode then check for the last character which you know marks the end of the barcode. You can then do whatever with the barcode and clear the textbox.
Jon
|
|
|
|
|
Yah now i have a better idea...Thanx
Do me one more favour.........tell me how to append characters at the start and end of the input barcode.....
_mubashir
|
|
|
|
|
That is in the documentation you get with the hardware. It also tells you how to set it up for different languages.
Jon
|
|
|
|
|
Hi
I am developing on Visual Studio 6.0 and VB.Net.
I am looking for a form or code that look like the Microsoft Outlook Appointment recurrence that will be part of my application without working with Microsoft Outlook.
I found aritcle in CPP: http://www.codeproject.com/datetime/daterecur.asp?df=100&forumid=3654[^]
and it is exactly what I need but I cannot work with it because it is write in CPP and MFC.
Please help me to find a solution
Thanks
Sigalit Dekel
|
|
|
|
|
I am building a VB.Net client application. On one form, I have an AxWebBrowser control that I am using to render an HTML form. The application also lets the user select a default Printer and Fax from the available printer drivers, but maintains these defaults within the application and not using Windows standard functions. (I recognize this is not good, but we have requirements that force us outside of the standards).
Anyway, I have the ability, from the AxWebBrowser control to bring up the standard print dialog. I also have the ability to print directly to the default printer without the standard print dialog. Instead, however, I need to print directly to the printer that the user selected from the application as their standard printer (which may not be the default).
Does anyone have any suggestions on how to do this?
As an alternative, I have found that using the PrintDocument object, I can print to whatever printer I want fairly easily. The problem, however, is getting the HTML formatted into the PrintDocument object. If anyone has suggestions on that, it would be just as beneficial from my perspective.
Any help would be greatly appreciated.
Mike
|
|
|
|
|
I am trying to change the height and width of a label, when I change it in code I get no error but it does not change. Any ideas why?
I am trying to make a tall label (vertical)
lblslots(I).Height = 125
lblslots(I).Width = 15
I can draw on like this on a form.
|
|
|
|
|
Double-check the .AutoSize propety on the label, I believe it's set to TRUE as a default.
|
|
|
|
|
Thanks, that is the ticket...
|
|
|
|
|
Trying to convert the output string from datepicker to an integer value,
pick oct10 through oct12 = 2 days...
Trying to use DateDiff...seems to be the right direction, just need some
help with syntax - i.e. DateDiff = (dateinterval.day, datestart,dateend)
Thanks
-- modified at 11:33 Monday 10th October, 2005
|
|
|
|
|
the general format is DateDiff("S", OneTime, OtherTime)
more info at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vafctdatediff.asp
|
|
|
|
|
I want to know exactly what is IspostBack() in vb.net?
When we have to use this?
Why we have to use this?
|
|
|
|
|
IsPOstback is part of ASP.NET. When you first load a page, it's not a postback. When your page is manipulated in such a way that the page is reloaded, so another instance of this class is generated and run, viewstate is loaded, and the page responds to some event, basically, it's a postback. The obvious reason to use this is that if you have a drop down list on the page, the first time your page loads, you need to populate it. After this, if you were to populate it again, you would lose the selected item, and you don't need to, as the contents are already loaded and stored in viewstate. The same holds true for other databound controls, and databound controls would be the major reason to check for postback, if only to save database resources.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Ok now I am geting the clear picture of IsPOstback() function. To be more confident I will just summerize what I have understtod from ur response.
1. If I am displaying list screen then no need to call the bind function inside IsPostBack() function.
2. If I anywhere needs viewstate then it should be called or binded inside IsPostBack() function
|
|
|
|
|
IsPostBack is a property of the WebForm, not a function. It is used to determine whether the page is being loaded in response to a client postback, or if it is being loaded and accessed for the first time.
<br />
If IsPostBack() Then<br />
'Page is being loaded in response to a client postback<br />
Else<br />
'Page is being loaded and accessed for the first time<br />
End If<br />
Hope this helps
Tom
|
|
|
|
|
|
How do I open a folder from a varilable string "c:\Temp".
Sounds simple but I hit a wall (Or need more coffee... )
Want a Button click to open a predifined folder.
Thanks
When people make you see red, be thankful your not colour blind.
|
|
|
|
|
Open it how ? As in an explorer view of the folder ? Process.Start from memory ( whatever the equivelant of shellexecute is ).
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Open in Explorer view...
When people make you see red, be thankful your not colour blind.
|
|
|
|
|
Thanks used the Process.start worked great..
When people make you see red, be thankful your not colour blind.
|
|
|
|
|
Hi
I have a VB.Net application using oracle 8i as backend on win2000, it is working fine on desktop but when we run it on laptop its giving the following problem
the values in the hashtables used in the application are gettin truncated while retrieving...same code works well on the desktop.
if nyone has some solution plz help
Rahul
|
|
|
|
|
There could be many reasons why it won't work on the laptop. The first one being the differences in the O/S installation between the desktop and laptop (are they the SAME O/S version, patch level, etc etc???) Try running it on a different laptop, reinstall all supporting software etc.
...Steve
|
|
|
|
|
well steve i have checked it all ...and the OS verison and other patches are already installed.....well i have tried it on 2 laptops...but the same problem of truncation of values in the hashtable object of VB.Net is there.
|
|
|
|