Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. Try turning of Norton and running the test again, does it still wait for the app to exit or are the mails sent straight away? Only mentioning this as I've encountered problems in the past with this kind of thing and it turned out to be the AV product.
  2. Could you show the code you are using to create the reader?
  3. What code have you tried so far? Have you looked at http://www.xtremedotnettalk.com/showthread.php?t=96768 as that at least gives the syntax required.
  4. If you are sending binary data then it makes no real sense to talk about sending data as 'hex', hexadecimal is merely a way of representing binary data in a alpha-numeric form. If you are sending strings that need to be formatted as hexadecimal then all the integer data types will allow you to do a .ToString("X") and get a string back that contains a hex representation.
  5. In the past I've had 2003 and then installed 2005 without any problems. On my laptop I had 2005 and needed to install 2003 - that was not fun, had to then repair the 2005 installation and somethings still do not work (oddly enough everything in 2005 works fine it's 2003 that's got odd problems).
  6. If you mean the .Write method of the Stream class (or one of it's sub-classes) then it takes a byte array as a parameter. Also the BinaryWriter class gives you an easy way of handling different data types when saving binary data.
  7. If you are doing work in a background thread and need to update the UI you will need to get the main thread to 'Invoke' it, the InvokeRequired property should tell you if you need to do this. Search these forums and you should find a couple of mentions of this along with examples of the solution.
  8. If you try and read out one of the entries added by their software can you display it in a picturebox? They might not be storing the raw image bytes but doing some additional things to it first, if that's the case then you would need to duplicate the changes - you could add an image via your program and then save the raw bytes out, add the same one via theirs and then save the raw bytes out and compare the results.
  9. Exceptions (in a release build anyway) incur virtually no overhead for the 'normal' (read error free) code path. There can be a performance hit when an exception is throw though; then again something has just gone wrong in your app, performance is probably not your uppermost concern... Even if there is a noticable performance hit often there isn't any alternative way of detecting / handling failures under .Net anyway. Personally I'm with Diesel on this on, Exceptions are great and your tutor probably wasn't that great.
  10. http://www.xtremedotnettalk.com/showthread.php?t=93471&highlight=sendkeys might be worth a read as it covers some of the same (similar) issues.
  11. If you are bringing multiple threads into the equation then that changes everything. Multiple threads will require you to provide synchronisation whenever you access a resource from more than one thread.
  12. If you have the code to both and you can make changes to the one you want to control then it is certainly possible. If you are not in a position to change the source then it looks that it is either impossible or potentially far too much work to be practical.
  13. It would be far esaier to work with if you created a class or structure to hold a person's details and then created an array of them rather than dealing with Arrays of Multi-Dimensional arrays...
  14. If the printer is listening on a particular port then you should be able ton connect. Do you know if it uses TCP or UDP packets? If you try and connect, then send some data what errors / results do you get?
  15. You will need to cast sender to Control, my C++ is a bit rusty but the syntax should be similar to C# Control c = (Control) sender;
  16. That normally happens if a shared file your application relies on has been replaced by a different version. Are you using any 3rd party libraries or any non-.Net dlls?
  17. How are you backing up the SQL Database? Are you using the builtin support (either directly or via a 3rd party) or just backing up the physical files? If you are using the built in routines then it should be truncated on a sucessful full backup / log backup. You can always clear it by doing a BACKUP LOG WITH NO_LOG and then try to shrink it again.
  18. You might be better either creating a windows service that will run in the background ratherthan trying to get an ASP.Net application to do this.
  19. It isn't supported any longer. You can get a similar effect by removing the form's caption and giving it a fixed border style though. Generally speaking preventing a user from being able to position things as they desire could be seen as a poor UI design.
  20. Sounds odd. How are you generating the list? Also what does the rendered HTML for the list look like?
  21. Ahhh, get what you mean. As far as I am aware delegates cannot be defined as a property, this could be due to the fact that not all languages support properties (but I'm guessing), or the fact that a property doesn't seem to be a method call. If you require the multicast functionality of delegates then you are probably out of luck, if it is just as a method signature then you could always define an interface with a single property defined instead.
  22. Have you assigned a valid command to the DataAdapter's .UpdateCommand property? If not then the Adapter has no way of knowing how to send the updates back to the data source. Either write a valid update command (prefered way) or try to see if the CommandBuilder class can do it for you.
  23. Don't call .AcceptChanges until after you have done the .Update(). AcceptChanges resets the RowState of all rows in the DataSet / DataTable, so when the .Update is called it doesn't see any rows has having changes.
  24. If you want to have a property that has a data type of delegate then Public Property TestProp() As [Delegate] Get End Get Set(ByVal Value As [Delegate]) End Set End Property should work.
  25. If that is the only entry then it looks as though the image isn't being embedded correctly, the entry you have will be fore the images etc. used by the form itself. Try changing the options discussed above and keep checking with ildasm to see if something extra appears.
×
×
  • Create New...