Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. If there is a valid xsd for the xml file then you could try the xsd.exe command line tool. xsd.exe /c /l:vb should work
  2. What version of VS are you using? On my copy (2008 professional) the option is there.
  3. http://www.xtremedotnettalk.com/showthread.php?t=72201 might be worth a read...
  4. Views can make your life a bit easier in a couple of ways though - firstly security may be set on views to allow people to query the view but not requiring them to have permissions on the underlying table. Secondly if the underlying tables change all code based on them will need to be modified, if views are being used then only the view will need to be updated to reflect the underlying changes - code using the view will still work.
  5. Under vb the same attributes should work, you just enclose them in angle brackets rather than square ones. i.e. for the c# [XmlAttribute("Test")] public int Sample; the vb would be _ Public Sample as Integer
  6. Welcome!
  7. As far as I am aware there is no easy way to put user controls onto the toolbox. To do this you would really need to develop a full blown web server control - these are a lot more difficult to do and personally I would really need a strong reason to even consider writing one...
  8. If you try calling the same statement through code do you get any errors generated? What data type is :BEGIN_YEAR defined as?
  9. Have you got the most recent version of the MySQL .net library? Only guessing but it might not be supported in all versions... Failing that you could always wrap the execute reader call in a async delegate call... I can knock up a quick example if you need me to.
  10. I always get caught out by this one myself - the String.Split only splits on characters not strings and Environent.NewLine is two characters long. Effectively it means you are getting the line feed part of the carriage return+line feed combination left over. One alternative is to use a simple regular expression - the following should work aSplitted() As String = System.Text.RegularExpressions.Regex.Split(strTextBuff, Environment.NewLine)
  11. Could you attach the .txt file - I can have a look at it on this pc then and be sure I am using the same data.
  12. How is the text getting into the textbox? Is this being typed in or has it been entered in the designer? If you take the length of the textbox's contents does it reflect the visible text or the mixture of visible and non visible characters?
  13. If you step through the code are you seeing anything returned from the command.EndExecuteReader(result) statement? Have you tried executing the command as a synchronous call just to check it is returning a value correctly? In fact it looks like you could have an error with your command syntax try MySqlCommand command = new MySqlCommand("select * from players where name = '" + name + "' and password = '" + password + "'"); as you seem to be missing a ' character after then name is being concatenated.
  14. Where are these values coming from?
  15. If it works without a where clause then I would suspect there is a problem with the WHERE (TO_CHAR(BEGIN_YEAR) = :BEGIN_YEAR) part. What does the TO_CHAR(BEGIN_YEAR) evaluate to?
  16. You would need to use shutdown.exe even then, remote desktop disables the shutdown / restart options...
  17. Too be honest I have always found McAfee to be a pain, often causing more problems that it claims to solve.
  18. When does the error get raised? If you step through in a debugger is it happening on a particular line?
  19. Programatically either InitiateSystemShutdown or InitiateSystemShutdownEx are the API calls you will need. For this to work you would need the requisite permissions to shut down the target machine. Alternatively windows has a shutdown.exe command you could use via the Process class.
  20. Could you not handle the keypress or keyup events for the textbox and if you detect a carriage return then act on it?
  21. IIRC that syntax should work for access - are you getting any errors?
  22. The datacontext (dc in your snippets) should have a .ChangeConflicts method - this will return all conflicting records. Each record will also have a resolve method you could potentially use to handle the resolution. If you use a synchronised method you would still get the problem if you ever went to multiple servers, or even during application pool recycling when multiple app domains/ processes are in existence. Would it not be possible to get the database to generate the key value when the insert takes place?
  23. Actually moving the data in memory to remove old items is going to be a major performance hit as the buffer gets large. Ideally you would have a 'pointer' to the current location in the buffer for writing and another for reading. This would remove the need to physically be moving raw bytes around. http://www.codeproject.com/KB/recipes/circularbuffer.aspx has a sample with source available - the GUI looks pretty good at explaining the concepts as well. The sample is a .Net 1 app and is using object for everything - converting to generics is no more than 10 minutes work though.
  24. Does the table name need the single quotes around it?
  25. http://www.asp.net/community/projects/ is worth a glance as there are two starter kits that are for e-commerce (one includes pay-pal integration out of the box).
×
×
  • Create New...