Search:
Type: Posts; User: softwareguy74
Search:
Search took 0.57 seconds.
-
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...
-
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
)
-
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.
-
Overloading does make it cleaner although I would still like to find a more generic solution.
-
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.
-
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...
-
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...
-
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...
-
Dang, I wish I saw this earlier! I was working on my own. Thanks for doing this awesome work!
-
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!
-
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...
-
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...
-
That seems to do the trick. Thanks!
-
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...
-
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...
-
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...
-
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...
-
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...
-
That did it! Thanks SambaNeko!
-
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...
-
Thanks for the info. This definitely sounds like the way to do it. I'll take a look at this.
-
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...
-
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. ...
-
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...
-
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,...
-
I need to count the number of:
Alpha
Numeric
Other (non alpha-numeric, like symbols)
Upper Alpha
Lower Alpha
in a string.
-
-
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...
-
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...
-
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...
-
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...
-
-
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...
-
Oh ya, and God forbid you have more than one screen.
-
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...
-
You'll probably need to brush up on GDI if you want to do any custom, responsive graphics.
-
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...
-
-
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...
-
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...
|
Click Here to Expand Forum to Full Width
|