|
|
.NET Flea Market
|
|
|
|
All Tags » Code Samples (RSS)
|
|
|
|
|
Visual Studio.NET allows you to set a property that makes your application a single-instance application, where double-clicking the icon while the app is running simply brings the already-running app to the foreground. But what if you wanted the...
|
|
|
|
|
|
|
|
|
|
No, this post isn’t a rant on consumerism and lack of true holiday spirit. I have another blog for that. This is my programming blog. I was thinking hard about what I could post to close out the year. It doesn’t seem much has been...
|
|
|
|
|
|
|
|
|
|
Remember that little idea that Office had a while ago that would hide infrequently-used menu items? Wasn’t that a great idea? For me, it was the very first thing I turned off after installing Office. But I do understand what they were...
|
|
|
|
|
|
|
|
|
|
The other day I was writing some code and I got an error message. It happened to be one of those cases where it should have worked. You know when good code it written it just happens to work like you expect it to. The general idea was...
|
|
|
|
|
|
|
|
|
|
No, I certainly can’t help you get dates or have successful dates. But I can offer a couple of functions that might help you work with dates in your code. I suck at dates (all types). Every time I want to calculate dates, I need to print...
|
|
|
|
|
|
|
|
|
|
I had something that I thought was a simple task and got the solution for it, but when I researched it, I didn’t see a whole lot of other people talking about it. Actually, in my brief searches, I didn’t see anyone talking about it. So here...
|
|
|
|
|
|
|
|
|
|
I recently had a little piece of SQL code that I thought I would post and it reminded me of something I did a long time ago (5 yrs) and thought I'd write something on it. Anyway, first here's the little piece without much celebration. This...
|
|
|
|
|
|
|
|
|
|
It was asked of me once: Why isn't my "please wait" form doing anything? The form had an animation, but the animation never moved. The main form code would show the "please wait" form, run some code, then hide the "please...
|
|
|
|
|
|
|
|
|
|
It's nice that .NET controls have an auto-size property so you don't have to worry about overflow and all. But what about cases where you have a fixed layout? Well, that's simple, you turn autosize off and fix the control to the...
|
|
|
|
|
|
|
|
|
|
When binding business objects to a datagrid, often you have a need to display some information that is not directly exposed by the object itself. Maybe it's a calculated value, maybe it's something nested deeper in the object. When...
|
|
|
|
|
|
|
|
|
|
The last post was really long and I think I tried to do too much in one post. So, here's something smaller. In the last example, we created a custom class for a stack of cards. One thing I want to point out about that class is that it...
|
|
|
|
|
|
|
|
|
|
I will start out with a disclaimer: I am not a C# programmer; I am a VB programmer. I have heard countless people say, "Why don't you just learn C# and be done with it. They're just the same." After this little experiment...
|
|
|
|
|
|
|
|
|
|
In an application I am continuing to write, during startup, the user's security is determined by the user's security groups and permissions are granted within the program based on the group membership. This has worked fine. Then one...
|
|
|
|
|
|
|
|
|
|
Here's another little snip of code I couldn't find online when I needed it. Geez, when I became a programmer, I wasn't thinking I'd have to actually figure things out on my own. That's a lot of work. Anyway, the problem...
|
|
|
|
|
|
|
|
|
|
I am sure this is covered somewhere on the great big Internet, but it's new to me. And it sucked until I discovered what the problem was. Basically, I had random values being generated that were anything but random. "Oh, you...
|
|
|
|
|
|
|