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 Chriss Miller 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: *

  • Users: NeilTrain
  • Content: Threads
  • Order by date
  1. NeilTrain

    Seperating Data & GUI, What pattern to use?

    So I have a large set of data objects, arranged Hierarchically, i.e.: Project Node - High Level Node - Mid Level Node - High Level Node - Mid Level Node - Low Level Node - Mid Level Node - Low Level Node - More Data - Low Level Node And I...
  2. NeilTrain

    Anyone know a good PDF component for C#?

    I have looked around at a few but all of them seem pretty incomplete or have ugly rendering. The ones that look ok completely lack documentation. Anyone know of a good one they use?
  3. NeilTrain

    Problem calling an external C++ dll

    I have a C# application that uses a legacy C++ dll that runs an operation on a set of Images. During testing some of the output images created by the dll had strange artifacts in them, weird cropping and resizing going on that it wasn't supposed to do. After some pretty intensive testing it...
  4. NeilTrain

    Which control fired the context menu?

    So I have a group of controls, all created dynamically and added to a panel. On creation I set each of thier context menu properies to a context menu I have created. I want the user to be able to right click each control, and select "Disable Cotrol" from the menu, at which point the control...
  5. NeilTrain

    Visual Studio Shortcuts

    I think I may have seen this before, but does anyone know how to do this in VS 2008? When I type an if statement i.e: if(a == b), I would like the editor to automatically do a newline, open bracket, newline, tab, newline, close bracket, then put the cursor at the end of the tab.
  6. NeilTrain

    Design Time Code

    I want to execute some simple code, i.e. myControl.BringToFront(); when a button is selected at design time. I have a form with about 10 panels, the panel that is shown depends on the buton that was last pressed. It works fine in run time however design time is kind of a pain, having to...
  7. NeilTrain

    Calling external DLL in Vista 20 times slower than XP

    I have an app that uses dllimport to call a function in an old VC++ 6 dll. In XP the function on average takes 1-2 seconds to complete. In Vista it takes an average of 28 seconds. Anyonw know how I can speed this up?
  8. NeilTrain

    Elegant way of including large amounts of dynamic JavaScript?

    Ok, since I use repeaters and other types of controls that rename controls on the client side, and since I also have a lot of javascript that calls on these controls, I have to output the javascript using controlName.ClientID all over the place to ensure that the controls are named properly...
  9. NeilTrain

    Application_Error not firing

    This one has been bugging me all day. Usually I try to catch as many errors as possible in each page. However because I have an upload form, and if the file uploaded is larger than the server limit (4MB by default) it will cause an application error, the page never fires. So I cant test for...
  10. NeilTrain

    DB Design, need to allow for archiving and rollbacks

    I am designing a rather large SQL 2k5 DB. I need to track changes on certain tables, and I also need the ability to "roll back" changes. Heres and example of a table and its log/archive UserRoles --------- UserRoleID UserID RoleID UserRolesArchive ---------------- UserRoleID UserID RoleID...
  11. NeilTrain

    How to force control name on client side

    I have an asp.net app, that when it's finished walking the user through a process, submits a form to a legacy(non .net) app which needs email and password parameters. The problem is the controls get renamed the something like CTL$MAIN$email and CTL$MAIN$password How can I force them to stay...
  12. NeilTrain

    Trouble Referencing System.Drawing in web app.

    So i have a file in my App_Code directory called Globals.cs public class Globals { public static string devSqlConnString = "...."; public static string prodSqlConnString = "...."; public static System.Drawing.Size MaxWorkingSize = new Size(400,600); public static...
  13. NeilTrain

    Difference between sqrt and sqr ?

    Hello all, I am attempting to convert an algorithm from Pascal to C#, for the most part it went pretty easily, until I came across "sqrt", which I assumed was Square Root, then soon after was a "sqr" which I assume is something else? Can anyone explain this one to me?
  14. NeilTrain

    Build, Rebuild, and... Clean?

    I've been using VS.Net 2k5 for a while now, but just yesterday noticed the "Clean Solution" and "Clean Project" options in the build menu. What are they for?
  15. NeilTrain

    To Blob or not to Blob

    That is the Question... So we are developing a new version of our application, to replace one developed way back in the ancient days of computers (1996) The currently running version is a wonderful tool, however it is a dog, it is hard coded to use interbase (blech!) as its back end. It gets...
  16. NeilTrain

    Compiling A Webservice

    I have a webservice, mapperservice.asmx, which calls the code behind page defined in App_Code\Service.cs This service is now live, so I would like to have a dev version next to it. So I copied both files, so now I have mapperservice_dev.asmx, and App_Code\Service_dev.cs But even without...
  17. NeilTrain

    Read cookies from a users PC from windows app

    I'm assuming theres a way, from a windows app, to read a cookie from the users PC. The problem is, my application is downloaded from a website. (actually, from many websites) and the boss wants the app to retain user information, such as email and password, that the user entered on the site...
  18. NeilTrain

    Weird Inheritence Issue

    I have a class called "Accessories" which Inherits "Surface", which inherits from the TreeNode class A new instance of Surface class adds a class called "Region" as one of its nodes. It does this in the constructor, shown here: public Surface() { Nodes.Add(new Region()); } The Accessories...
  19. NeilTrain

    Collection Data Type changed to array when returning from Webservice

    I have a webservice, one method, "GetSites()", returns an object of type "SiteCollection" which is a collection of "SiteDefinition" objects (derived from CollectionBase). The webservice compiles ok, but when I try to compile the app that consumes this webservice, I get the error: Cannot...
  20. NeilTrain

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

    I guess the topic title says it all. I have a simple class, with two strings and a date time, and would like to prevent duplicates from appearing in a collection, so need to do a quick compare. Is there a reason Equals() exists when we have the ++ operator? Whats the difference and which is...

Part and Inventory Search

Back
Top