|
AseelHadlaq wrote: as the web development language.
Depends on what you mean by "web development".
|
|
|
|
|
This might be of interest to you.
http://www.micronovae.com/CSP.html[^]
I played around with it some time back and it looked pretty promising.
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore, Dream. Discover.
|
|
|
|
|
Hi,
I'm looking for a smart solution to receive a barcode scanning from a USB scanner (Symbol LS3408). I'm not interrested in a keyboard event solution.
Previuosly I have been using a comport scanner. I would like a solution like this. Anyone who has made something to get this, without using a comport emulation?
Thanks in advance.
Jakob
|
|
|
|
|
So go find a scanner that doesn't behave like a keyboard wedge.
There are USB scanners that behave like a keyboard, those that show up on USB serial ports, Ethernet based versions, ...
What you pick is up to you.
|
|
|
|
|
I did configure the Symbol LS3408 scanner to be a USB scanner, not a keyboard.
This was not my question. The question was, if anyone has made some C# code, that gets the reading from an USB barcode scanner. I know there are solutions out there, where you get the reading as a keyboard input. I don't want that.
|
|
|
|
|
That makes a little more sense.
Your best bet would be to download the Scanner SDK from here[^]. Using someone else's code is going to be problematic at best as their code is going to make assumptions about the scanner that do no apply to your situation.
|
|
|
|
|
|
All it is is a standard serial interface to pass information over, like COM1, COM2, ...
It has no effect on what can and cannot be read by the scanner.
|
|
|
|
|
hi@all!
i have a listview control in my winRT application and, when the user taps a tile, i´d like to save the previously selectedIndex.
i can´t find an appropriate eventhandler to achieve this;
i only found SelectionChanged-event, but, as one might guess, at this particular time the Event is already fired and i retrieve only the new selected index...
can anyone please Point me to the right direction... eh, to the right Event ?
and - if someone knows where to get an elaborated overview for the LifeCycle - as known form ASP.NET pages - that would be highly appreciated...
thanks in advance, Kind regards,
clodetta
|
|
|
|
|
Hi Clodetta,
The MouseDown[^]-Event might be worth a try.
|
|
|
|
|
hello, Marco.
thank you for your suggestion!!!
i´ll give that a try...
i´m developing for surface, so I thought that this event isn´t what I want...
i´ll report my findings...
until then,
clodetta
edit:
that is winforms-related, I guess...
|
|
|
|
|
Hmm... Can you just look for a similar event in the XAML-control?
Another solution could be that you have a second variable where your current index is stored... You would have to update this variable manually and it would end up kinda unclean but this could be the emergency-solution.
|
|
|
|
|
Hi, Marco.
sorry for replying late....
first of all: thank you for your help.
I´ve found several events (ItemClick, Tapped etc) but none of them seem to suit.
your second suggestion leads me back to my initial question:
where to save the old index...?
I wonder what the softie´s intention was when they decided not to implement a SelectedIndex_Changing in addition to SelectedIndex_Changed.
that would solve the issue perfectly...
|
|
|
|
|
Clodetta del Mar wrote: where to save the old index...?
Create a new control which inherits from the listview control. In the code-behind you can add the logic to handle the case and are maybe able to fire your own, custom selected index changing event...
cheers,
Marco Bertschi
|
|
|
|
|
That´s also a good idea, but I have already solved the problem, I think, I´ll leave it at that.
it now works the way it should, that´s sufficient for me!
Thank you again for your help!
kind regards!
clodetta
|
|
|
|
|
Clodetta del Mar wrote: Thank you again for your help!
You are welcome...
cheers,
Marco Bertschi
|
|
|
|
|
ok, finally I got it...
it´s more like right through the chest into the eye, but now it works...
a healthy mixture of ListView.SelectedIndex_Change and Grid.GotFocus did the trick for me; now I can save the old AND the new index....
thanks to marco for his suggestions!
post scriptum:
I can´t find the checkbox for marking my thread as solved...
I guess i´m blind...
|
|
|
|
|
Hi All,
I have two scheduled tasks running, I want to replace the compiled code for those scheduled tasks without deleting them. How can I do that step by step.
Any help, like link or suggestion over here helps. Thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
You mean replacing the files alone without affecting the schedule task in windows schedule task manager?
|
|
|
|
|
Just replace the .EXE file the task is going to use?? Just keep in mind the filename cannot change.
|
|
|
|
|
Greetings all - I haven't posted here in ages I am entirely new to .Net having been working in it for a week at most so please go easy and be detailed as possible
I have the following PONO:
Public Class WorkOrderEntity
Private intTrackingNumber As Integer
Private intDateReceived As Integer
Private strManufacturer As String
Public Property TrackingNumber() As Integer
Get
Return intTrackingNumber
End Get
Set(value As Integer)
intTrackingNumber = value
End Set
End Property
Public Property DateReceived() As String
Get
Return intDateReceived
End Get
Set(value As String)
intDateReceived = value
End Set
End Property
End Class
The issue I am faced with is how to store date/time as a timestamp (integer) but provide public properties which format/convert accordingly.
I suppose I could provide a an additional getter()/setter() but ideally I wonder if EF has a way of circumventing this "convention"?
Additionally - I am also curious as to whether it's possible to map properties to columns which are not labeled correctly?
Basically if I were working in a existing database (EF automatically builds my PONO with properties named after table fields) I wish to name the fields something more meaningful; some fields for example might be awkward abbreviations but in the object model I want something more English friendly?
I seem to recall being able to do this with Hibernate in java (actually it's PHP port) but never the less does EF support such a feature? Seems obvious that this would be useful in day to day development???
Any ideas?
Regards,
Alex
|
|
|
|
|
When you say "timestamp", what do you mean? If it's the SQL timestamp type[^], this has nothing to do with dates:
a data type that exposes automatically generated, unique binary numbers within a database.
The timestamp data type is just an incrementing number and does not preserve a date or a time.
You can map a property to a column with a different name using either the Column attribute[^] or the fluent API[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I just found some articles that explain how to change the mapping for tables so I imagine columns are just around the corner.
When I say timestamp I mean a unix timestamp which can easily be converted to date AND/OR time - not sure what MSDN is getting at?!?
In the database I wish to store the date "10/10/2013" as 1381381200 but convert to a human friendly date within the PONO.
My entity objects are high level abstractions but I still prefer to store the time in a numeric format - how does EF solve/address this type mis-match? This is/was the impetus behind OR/M frameworks ain't it?
Regards,
Alex
|
|
|
|
|
Ah, OK - "timestamp" in SQL is something totally different.
I don't think there's any built-in way to perform this sort of conversion in the mapping layer. The simplest approach is probably to add a calculated property for the date, decorated with the NotMapped attribute:
Public Class WorkOrderEntity
Private Shared ReadOnly Epoch As New DateTimeOffset(1970, 1, 1, 0, 0, 0, TimeSpan.Zero)
<Column("DateReceived")> _
Public Property DateReceivedTimestamp() As Integer
<NotMapped> _
Public Property DateReceived() As DateTimeOffset
Get
Return Epoch.AddSeconds(DateReceivedTimestamp)
End Get
Set
DateReceivedTimestamp = CInt(Math.Floor((value - Epoch).TotalSeconds))
End Set
End Property
End Class
I'd be inclined to use DateTimeOffset for the property rather than a string; formatting the date should be a UI concern.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
EF will see a .NET type of DateTime in your POCO and use the native DateTime datatype specified by the underlying data provider. It will not convert a DateTime to a "serial number" as you want because the serial number can be based on any arbitrary epoch. For example, UNIX uses 1/1/1970 00:00:00AM whereas .NET uses 1/1/0001 00:00:00AM. So, to each system, the datetime serial number will mean something different.
Why even do this?? Why not just let the underlying database handle the storage and return the correct datetime without your code having to worry about conversion?
|
|
|
|