Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. AndrewJMarshall

    IE IsPostBack bug?

    I have a simple app that displays images and allows he user to enter keywords. I build the form dynamically in the Page_Init method (for several reasons). If the user does not want to work on the image, they can click the Skip button. In the Skip_Click method, I mark the item as skipped and...
  2. AndrewJMarshall

    InterDev thinks it's an expired trial version :-(

    My installation of InterDev recently went psycho and would crash every time I ran it. I uninstalled and reinstalled, but now I get the following message immediately after starting: "Your trial version has expired, please uninstall this trial version of 'Visual InterDev 6.0' and install the...
  3. AndrewJMarshall

    Mapping data

    Martil Fowler's book on enterprise architecture patters has a great section on data mapping and how to handle it. I highly reccommend this book.
  4. AndrewJMarshall

    Catching time user leaves application

    What about using the Session_End event in Global.asax? It's dependent on your session timeout, but it'll catch those who don't logout explicitly.
  5. AndrewJMarshall

    suggest c# books

    I really like Wagner's "Effective C#". It's not for newbies, but it teaches you good habits that will launch you into non-newbieness. ;-)
  6. AndrewJMarshall

    Best to override Equals() or to overload == operator?

    ==" checks for reference equality, but ".Equals(obj)" can be overridden to check for attribute equality. My guess is that you want to override .Equals. Andrew
  7. AndrewJMarshall

    Matching text regardless of case

    LOL, I'd pay big money to see you "throw up an error"! Sorry, I couldn't resist. You want "txt1.Text.ToUpper()" Andrew
  8. AndrewJMarshall

    How do I scramble different ranges of numbers?

    InsideEdge, My advice is to write down the algorithm in english. Then translate it to your language of choice. This should help you understand the coding required. I'll also suggest making a bunch of classes to help with your task. I know it seems like overkill, but in the end it will be...
  9. AndrewJMarshall

    same tricky date time question

    Toppy-T, My research shows that MS does not provide the functionality you need. I did find this: http://www.timezonesource.com/. For $199, they have a component that seems to do just what you need. I've never heard of the company and am not affiliated with them in any way. Andrew
  10. AndrewJMarshall

    reading file using c#.. truncates first character of every line

    Could the "while((sr.Read ())!=-1)" be eating the first character? Try this instead: // NOT TESTED/COMPILED!!! string RL = sr.ReadLine(); while(RL != null) { listBox1.Items.Add(RL); RL = sr.ReadLine(); } Andrew
  11. AndrewJMarshall

    Tricky DateTime Question

    Toptomato, I don't understand the problem. Is "9:00 AM EST" time being displayed as "6:00 AM PST"? This seems correct to me since DateTimes use UTC time format. If you want to change the displayed time zone these links looked promising: http://radio.weblogs.com/0126569/2004/09/01.html...
  12. AndrewJMarshall

    How to correct parameter name item cannot be null

    MeonR, I think your problem is the structure of your loop. Here's what you coded: do { try to read something use what was read } while (I actually read something) The ReadLine call will eventually return null which you then try to add to the listbox. That's the error. You...
  13. AndrewJMarshall

    Convert string to double problem

    Tom, I think you are encountering an interesting phenomena related to how computers store fractional numbers. To you an me, 35.71 seems like an easy number - 35 units plus 71 hundreths. For a computer, it has to convert that to binary. The 35 part is easy, 100011, but it's hard to make .71 out...
  14. AndrewJMarshall

    Unique Random Number Generator

    I second the suggestion of using GUIDs for unique identifiers. Identity columns are OK if you will NEVER need to merge data from two instances of the same database, but since "never" never holds true (heh, heh) I now always use GUIDs. Using GUIDs means two records will never have the same ID no...
  15. AndrewJMarshall

    Naming Style Change

    Don't forget DBAs who get a $.05 commission for every "_" used in a name! ;-)
  16. AndrewJMarshall

    What is the best book to learn C#?

    Once you feel comfortable with C#, please read "Effective C#" by Bill Wagner. "50 Specific Ways to Improve Your C#" - some mundane, some quite interesting and important.
  17. AndrewJMarshall

    Application not closing

    If possible, log the creation and destruction of forms/classes to a file. Once you think the program should be done check the log for forms or classes that are not being released.
  18. AndrewJMarshall

    Previously Entered Values

    Jennifer, You might be experiencing the AutoComplete feature (security flaw) of IE. If you select Tools|Internet Options|Content|Auto Complete, your demo computer probably is not using it, but the demo computer is. I *THINK* this is driven by the control's name. Try renaming the control from...
  19. AndrewJMarshall

    Invalid Cast - where am i going wrong?

    It is also generally recommended that the "as" operator be used instead of type casting for several reasons. Here are a few articles: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vclrfas.asp http://www.devx.com/tips/Tip/29463...
  20. AndrewJMarshall

    Object Oriented Analysis and Design Help

    A book that I would recommend for people new to OO is Matt Weisfeld's "Object Oriented Thought Process". I think he has some very good points to make. Also it is easy to read, relatively short and relatively cheap. Andrew

Part and Inventory Search

Back
Top