Search results for query: *

  1. Stonkie

    Question Case sensitive import

    Hi everybody, I have to migrate an application to replace an old dll made in VB.net with a new one made in C#. One namespace is called LoadBoard.DAL, the other one Loadboard.DAL (notice the case difference?). Both dlls having similar class names, this brought hell upon an otherwise smooth...
  2. Stonkie

    Outlook style month calendar

    I guess you didn't have much luck! :p I think the problem is that we don't understand how you intend to "link" them together... One thing I like about software development is that there is almost always someone else who has had you problem before! And the cheapest code is the one you...
  3. Stonkie

    Make indexing work better

    Solving the problem What I meant when I asked if you were running out of memory was pretty much if you either had a memory leak or you simply used more memory then the system has. The easy way to tell if you're running out of memory is to look in the task manager. I do not use objects...
  4. Stonkie

    Fill datagridview with query using a Join

    That's what I don't like about the auto generate solution. And have you looked at the column headers? By using the dataset, you can use the form designer to order your columns and set localized column headers for your datagridview (the "localized" keyword was the deal breaker in my situation)...
  5. Stonkie

    When to copy to variable or not

    I thought I'd join the debate ;) You should target clarity. Performance doesn't matter until optimization phase. If your code is notifyNewTotal((subTotal + getShippingCost()) * (1 - getPromotionPercentage() / 100) * (1 + getTaxPercentage() / 100), orderType, shippingAddress) Then yeah, add...
  6. Stonkie

    form data not being saved in access db

    Does it throw an Exception? If it was, you would be drowning it with the empty catch so maybe you missed it... Otherwise, the most common error leading to the dataset's state not being updated to a file based database is the copy to output directory setting of the file. You must set it to "Copy...
  7. Stonkie

    Make indexing work better

    No. I'm kidding ;) . I have never seen performance go down from using indexes for too long! What I would suggest is to profile the application. I have tried to make performance improvements before without profiling the application and most of the time, I would waste countless hours making...
  8. Stonkie

    Fill datagridview with query using a Join

    The way I have found to work best for this is to create a new DataTable in the dataset designer and setting it's main query to the join query. You may have to add aliases directly in the SQL so the column bindings have meaningful names. This will give you a strongly typed DataTable that...
  9. Stonkie

    Question Strange error

    Are you using a BackgroundWorker or somehow multithreading? I think I've seen this AccessViolationException sometimes happen when you update the UI through a a thread other than the one thread that created the UI in the first place.
  10. Stonkie

    Question I cannot delete a Newly added record CONCURRENCY VIOLATION

    Haha :) Keep it up! I've never seen the error message you mention, but googling it seems to return some results... Anyway, by my experience, your time is the biggest expense related to developing software. Buying a brand new computer just so you can use the dataset designer would more than pay...
  11. Stonkie

    Question I cannot delete a Newly added record CONCURRENCY VIOLATION

    That's really the hard way of doing a delete (I hear it looked like that in .NET 1.1 but I'm happy I never used it!). And you don't have a primary key? And are you using Format_ID as a String? Anyway, TableAdapters use the number of deleted rows to determine if there was a concurrency...
  12. Stonkie

    Where to Start Learning

    I bought that same book a few months ago. Haven't had the time to read it yet, but it seems like a really good book! Just have to go through Rapid development by Steve McConnel first :)
  13. Stonkie

    Question Problem in disabling close button(X) of window.

    Look into this directory : C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include There should be a winuser.h file that contain the C declarations for the user32.dll which contains the API calls you are using. I would send you the file, but I'm not sure I actually have the legal...
  14. Stonkie

    loading an image?

    I think it's worth explaining how the system works in more detail... The OS keeps a buffer with what your form looks like on the screen. It's a static image and that's what is shown on the screen. Whenever a change is requested, it will ask for a repaint. For example, if you move the form out...
  15. Stonkie

    Text inside a progressbar

    Instead of using X and Y positions for the text when you draw it, draw using a rectangle that spans the whole control and use a StringFormat instance for the alignment (it can be passed in one the the DrawString overload). This will allow you to center the text vertically independently from the...
  16. Stonkie

    button automatically changing property when added to groupbox

    You can add a panel inside each group box and set that panel's Font to the default value so the controls you add to it inherit that value instead. Sorry I don't have any better solution for you...
  17. Stonkie

    Question Image/Pattern Recognition

    Well, there is a Bitmap.GetPixel method that you can use to retrieve the color of a pixel. If the symbol you want to parse from the image are pixel identical, you can easily go through all the pixels in the may image and see how many times you see an area with the exact same pixels as the symbol...
  18. Stonkie

    An existing connection was forcibly closed by the remote host

    From what I get, this message appears when the server breaks the connection to its client. My lucky guess is that there is a time out on the server, maybe because it has too much work to do at the same time and eventually chokes. Can you try to remove the processing and database access and see...
  19. Stonkie

    Question Custom tool : Out of memory

    I have a pretty large dataset. Sometimes, when I modify it and try to compile, I get a full list of compile errors. The first one is "Custom tool error : System.OutOfMemoryException" and the rest are caused by my DataTables not existing. I can simply restart the editor, go back in my dataset...
  20. Stonkie

    Question Updating a Database

    This is pretty hard to read without the code blocks, but here some suggestion. First, I didn't find where you close your connection when you fill the dataset. You seem to open it before filling but never close it. Actually, you don't need to open the connection before calling the Fill()...
Back
Top