|
A barcode doesn't have to have an Article Number - see EAN128 codes which can contain a whole raft full of stuff, with or without an A.N.
If you are building a POS which will use product ANs, be aware there may be legal restrictions on some operations (including the order in which they are done). For example in the UK to change pricing you must:
Raise price on shelf first.
Wait till all customers who might have selected items at the lower price to leave the store.
Raise price on the computer.
Lowering price is simpler:
Lower price on computer.
Lower price on shelf.
Failure to do it this way may result in serious fines for overcharging!
You may have similar restrictions in your country.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
There's an article on CP on how to print barcodes.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hi,
I am trying to create a function that when called takes a pictureBox and make it larger in 5 steps. My problem is that when I run the function the pictureBox is not updated until the last step where the pictureBox is full size.
The picture box is called myPictureBox and has a size of 70,100 at the beginning.
private void button1_Click(object sender, EventArgs e)
{
for (int j = 0; j < 5; j++)
{
zoomOutPicture((j + 1) * 10);
System.Threading.Thread.Sleep(1000);
}
}
private void zoomOutPicture(int zoomF)
{
int myHeight = 100+zoomF;
int myWith = 70 + (int)Math.Round(zoomF * .7, 0);
System.Drawing.Size test;
test = new System.Drawing.Size(myWith, myHeight);
myPictureBox.Size = test;
}
I have spent the last 3 hours searching with out any luck so any help is greatly apriciated.
Thank you.
|
|
|
|
|
Hi,
I tried your code on my machine .Net 2.0 vs2005 and it seems to work fine. I added a line that refreshes the form so maybe try this and see if the results are any different.
private void button1_Click(object sender, EventArgs e)
{
for (int j = 0; j < 5; j++)
{
zoomOutPicture((j + 1) * 10);
this.Refresh();
System.Threading.Thread.Sleep(1000);
}
}
Dave
|
|
|
|
|
Hi Dave,
Thanks a lot, that did the trick.
|
|
|
|
|
Try:
myPictureBox.Size = test;
myPictureBox.Refresh();
My failometer has shot off the end of the scale!
I seem to have misplaced my ban button.. no wait... found it!
|
|
|
|
|
you could "solve" it with some Invalidate() or Refresh() calls, but your approach is fundamentally flawed, since you are blocking the GUI thread for the entire duration of this action, making moving, resizing, e.a. impossible.
The correct approach is by using either a separate thread or a timer; since the actions involve Controls, which need to be handled on the main thread anyway, your best option is to start a Windows.Forms.Timer
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Hi Luc,
I tried the Invalidate() with out luck but the Refresh() is working.
I will look into the timer when I get a bit more time bur for now Refresh() does the trick.
Thank you.
|
|
|
|
|
|
I don't know of a way to make an arrow key into a hot key, other than overriding one of the key events. There may be a way, I just don't know.
As far as why the underline appears or not, in the later versions the underline on menus, buttons, etc. only appears after one presses the Alt key. For better or worse, that's the way the system works. (Personally I liked the underline always showing up, but it's not a big deal.)
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
Collin Jasnoch wrote: Any idea why this is?
Press Alt? (left Alt)
|
|
|
|
|
Isn't that configurable in Windows?
Display properties | Appearance | Effects | Hide underline blah blah blah
I always clear the checkbox.
[Edit] This is for Win XP, and perhaps earlier.
|
|
|
|
|
Thanks PIEBALD, I just learned something.
"If you're using Windows Vista, go to the Vista Control Panel - Appearance & Personalization - Ease of Access Center - Make the Keyboard Easier to Use. Check the box by "Underline keyboard Shortcuts & access keys". "
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
::smack forehead:: Oh, right, my instructions were for a worthwhile version of Windows.
|
|
|
|
|
Hi Have a good day ....
I am bulding a webbrowser by C# ....
and I want to add this features to it ....
Is There is any peice of code , any library or any advice ,
that I can tell the ( Total Upload , Download of Internet Traffic for my application )
Thank in advance
I know nothing , I know nothing ...
|
|
|
|
|
Since you don't say how you are retreiving web pages, it's pretty much impossible to tell you how to do this.
|
|
|
|
|
Couldn't you just add something to a "global" variable every time something is downloaded/uploaded?
|
|
|
|
|
I am using C# WebBroswer Control ...
I know nothing , I know nothing ...
|
|
|
|
|
Stark DaFixzer wrote: I am using C# WebBroswer Control
is slightly different from "I am bulding a webbrowser"
You could try and use the WebBrowser.Navigating event to perform a little WebClient or HttpRequest action getting the size of the page (just ask for the HEAD, it should contain length information) before the WebBrowser loads it.
Alternatively you could hook up the DocumentCompleted event and hope to get the length from the DocumentText property, but I am not sure that would always be correct, and if so, efficient.
For uploads, I don't know.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Counter-acted the B.S. 1 that you got...
|
|
|
|
|
Maybe "I did/didnot create a browser" didn't go down well.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
That's just IE embedded in a control. I have no idea how to steal such statistics from it - if IE even has them then it has* to be possible somehow but maybe you'd need nasty hacks.
* yes it would have to be possible, if the information is somewhere in RAM and someone (IE in this case) knows where it is, then you can get it
|
|
|
|
|
As far as downloading html, you can access the browser control's DocumentText and get the size there. If you're downloading files, graphics, etc., I think you'll need to handle and count those sizes manually.
As for uploading, well, since you'll be controlling what to upload, just get the size when you upload it.
Or did I miss something?
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
What if you use an upload thing that is present on some sites? IE would upload the file then right?
|
|
|
|
|
Probably so. But if IE is handling things directly, then there's no real way that I know of to figure the sizes. As you pointed out earlier, IE might have the statistics -- if there's a way to get to them.
I don't know a general way to do what he wants. I'll be interested in seeing if someone else has a solution, though.
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|