Search:

Type: Posts; User: softwareguy74

Page 1 of 13 1 2 3 4

Search: Search took 0.48 seconds.

  1. How to refresh data when data changes in database?

    I have a WinForms app that connects to SQLite to get data. I populate that data in various controls. I have a method which updates the data in the database at certain intervals. If data in the...
  2. Re: How to get instance of extended object at runtime

    The ThirdParty method signatures I'm interested in are:

    public int DoSomething1<T>(
    long primaryKey
    )
    where T: class, new()

    public T DoSomething2<T>(
    T value
    )
  3. Re: How to get instance of extended object at runtime

    This looks promising! However, doSomething is not static. Can you please give me the revised code for non static? Also, DoSomething returns a long which I need access to.
  4. Re: How to get instance of extended object at runtime

    Overloading does make it cleaner although I would still like to find a more generic solution.
  5. Re: How to get instance of extended object at runtime

    No. AccountBase is from my code. ThirdPartyLibrary accepts a generic type. The problem is it will only act on the defined type in the code. It is not seeing the extended class properties.
  6. How to get instance of extended object at runtime

    I'm not even sure the title correctly explains the situation that I'm running into, but I'll try my best to describe it.

    I've got the following classes defined:

    public class AccountBase
    public...
  7. Re: Advice on naming (Account vs Connection)

    Good point. Although you might consider the basic credentials (username and password) as an "account", I must also store the protocol, host, and other various connection related properties. So I...
  8. Advice on naming (Account vs Connection)

    So I'm working on building an application that at it's core will provide connections to various server types (FTP, WWW, etc). The application will allow the user to store these connections for later...
  9. Re: WebClient DownloadFileAsync with resume support

    Dang, I wish I saw this earlier! I was working on my own. Thanks for doing this awesome work!
  10. Replies
    8
    Views
    2,386

    VS 2010 Re: Bug in DrawImageUnscaledAndClipped?

    Actually, the method I mentioned is not shrinking or stretching the image. It is in fact clipping it. But I'll take a look at your code as well. Thanks!
  11. Replies
    8
    Views
    2,386

    VS 2010 Re: Bug in DrawImageUnscaledAndClipped?

    Thanks for the clarification boops!

    Just in case anyone is interested, I was able to accomplish the task by using the DrawImage with the double Rectangle signature. The first Rectangle is the...
  12. Replies
    8
    Views
    2,386

    VS 2010 Bug in DrawImageUnscaledAndClipped?

    It seems that despite having the word "unscaled" in it's name, this method is in fact drawing the image to scale to the rectangle.

    I believe the way it should work is that the image should be...
  13. Replies
    4
    Views
    1,539

    Re: Regex help

    That seems to do the trick. Thanks!
  14. Replies
    4
    Views
    1,539

    Re: Regex help

    The issue is efficiency. What I didn't say is that this is in a loop with potentially hundreds or thousands of these. I need the most efficient method possible. What is more efficient? RegEx or...
  15. Replies
    4
    Views
    1,539

    [RESOLVED] Regex help

    I've got a string such as:

    "3;#bctest/Lists/Test List 1/Folder 1\"

    I want to use Regex to extract that last folder, in this case: "Folder 1"

    So essentially, I need to always extract the...
  16. Replies
    2
    Views
    2,017

    VS 2010 MVC naming help - singular or plural?

    I'm struggling a bit with how to properly name the controllers in MVC. Should they be singular or plural? For example, lets say I have the tables Customer and Product in my database. Should the...
  17. VS 2010 Re: Entity Framework - specify read only property?

    Tried, that didn't work. I actually found the answer through some real digging. Turns out, the way to do it actually doesn't really work. There is some apparent long standing bug in the EF...
  18. VS 2010 [RESOLVED] Entity Framework - specify read only property?

    I'm struggling a bit with Entity Framework 4.x. Let's say I have a model called Product. It was generated from a database table. There is a field in this entity called CreatedDate. The MySQL...
  19. Re: Help with simple horizontal menu

    That did it! Thanks SambaNeko!
  20. [RESOLVED] Help with simple horizontal menu

    I've got a good start, but having an issue with the content below the menu. I need #content div to be visible underneath the menu, but it is not. If the menu wraps by shrinking the page, #content...
  21. VS 2010 Re: Conditional Membership Provider from email address?

    Thanks for the info. This definitely sounds like the way to do it. I'll take a look at this.
  22. VS 2010 Conditional Membership Provider from email address?

    I inherited a project whereby a website is utilizing the Membership Provider to allow for new account signups. This site utilizes different domains which point to the same root. In code, different...
  23. Replies
    4
    Views
    1,242

    VS 2010 Re: ASP.NET Membership provider problem

    Well, if you think about it, it does sorta make sense. How else would you be able to tell if someone is "online", given the stateless nature of the web? You have to resort to tricks like this. ...
  24. Replies
    4
    Views
    1,242

    VS 2010 Re: ASP.NET Membership provider problem

    I may have found the answer to this. It seems that calling GetUser with certain arguments will cause this field to be updated. I have to go through the code that someone else wrote and see if this...
  25. Replies
    4
    Views
    1,242

    VS 2010 ASP.NET Membership provider problem

    One of the database fields that the ASP.NET Membership provider manages is the "LastActivityDate" field. We are attempting to utilize this field to determine the last time the user was online. Yes,...
  26. VS 2008 Use Regular Expression to count occurrence of

    I need to count the number of:

    Alpha
    Numeric
    Other (non alpha-numeric, like symbols)
    Upper Alpha
    Lower Alpha

    in a string.
  27. VS 2008 Re: [RESOLVED] Help with regular expression

    Perfect, thanks!
  28. VS 2008 [RESOLVED] Help with regular expression

    I need to test a string of text that needs to contain a certain type of char values. The known is allowing of a-z,A-Z,0-9. But the variable (which will be coming from a database field) will be the...
  29. Re: How to get div to resize to width of contents?

    I think I'm getting close. The following code almost works. I have the div fitting the contents correctly, but Line 2 is not going underneath the Line 1, it is floating to the right. How do I...
  30. Re: How to get div to resize to width of contents?

    That doesn't quite work because if the content in the span extends multiple lines (see example code below), it doesn't render correctly. Problem 1 is that there is a visible gap between the lines...
  31. How to get div to resize to width of contents?

    I have the following code:


    <div style="background-color: Blue;">Line 1</div>
    <div>Line 2</div>

    What style information would I add to the first div so that the blue background is only...
  32. Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    Yes, Ballmer...
  33. Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    That's very surprising, and even more surprising if it works the same way on XP and Win7. It seems that I could NEVER prevent the Task Manager from coming to the top, unless we totally disabled the...
  34. Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    Oh ya, and God forbid you have more than one screen.
  35. Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    LOL, good luck with this! I tried to implement something like this at work and probably spent 5,000 hours on this stupid thing, trying to solve what should have been a personnel issue with...
  36. Replies
    3
    Views
    2,478

    VS 2010 Re: Graphic Equaliser Display?

    You'll probably need to brush up on GDI if you want to do any custom, responsive graphics.
  37. Replies
    2
    Views
    579

    VS 2010 Custom query against List

    I have a List<string> that contains paths, such as:

    \Root\Folder1
    \Root\Folder1\Folder1a
    \Root\Folder1\Folder1a\Folder1aa
    \Root\Folder2

    Given a given root, such as \Root, I would like to...
  38. VS 2010 Re: How to reliably know when large file is done copying?

    Good deal, thanks again!
  39. VS 2010 Re: How to reliably know when large file is done copying?

    So use a FileWatcher, and when a new file is detected, try to open it say every 5 seconds or so until it no longer fails, at which time it is assumed that the file has stopped copying? I guess this...
  40. VS 2010 Re: How to reliably know when large file is done copying?

    Ok, interesting solution. I think in most situations, the user will be copying a file via Windows Explorer so there should be no weird behavior, unless they decide to use their own client app that...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width