-
Ever thought of how to capitalize the first letter of every word in a string? Here's how: [C#] using System; using System.Globalization; namespace KeithRull.CapitalizingLetters { internal class Program { static void Main( string [] args) { string textToTransform = "keith, you need to post more...
-
Language Integrated Query Language Integrated Query (LINQ, pronounced "link") is a Microsoft .NET Framework component that adds native data querying capabilities to .NET languages using a syntax reminiscent of SQL. Many of the concepts that LINQ has introduced were originally tested in Microsoft's...
-
Introduction This application demonstrates how to send mail with attachments using SMTP server and how to configure the default SMTP server. The System.Web.Mail namespace provides classes for sending email in .NET. The classes involved are MailMessage which manages the content of the mail message and...
Posted to
Coldapoy's Technical Blog
by
coldapoy
on
06-22-2008
Filed under:
Filed under: coldapoy, C#, System.Net.Mail, Asp.Net, SMTP, Mail Body, MailMessage, MailAddress, SendMail, SmtpClient, rad controls, MailAddressCollection
-
My former colleague asked me if it is possible to attach an alternating color to a DropDownList control, similar with the GridView’s alternating rows. I found out that you can achieve that, by setting the background-color of the ListItem using “style” attributes. Here is the code. ...
-
It was my first time to join a community event in Singapore during yesterday's Heroes Community Launch and it was a blast! It was also cool to see that of nine presentors during the event, three of us are Pinoys. I definitely am looking forward to meeting more of the community people soon. First...
-
With the release of .Net 3.5 alongside with Visual Studio 2008 , new enhancements was again introduced . Some maybe well pronounced such as the inclusion of WCF, WPF , LINQ in .Net 3.0 and some just came unnoticed. If you have been accustomed of using a particular method or technique in implementing...
-
I will be speaking tomorrow at the Heroes Community Launch 2008 here in Singapore with my favourite (boring?!) topic...Unit Testing! Only this time it's about the testing framework that comes with Silverlight 2's beta release. Kinda excited and nervous at the same time, since it'll be my...
-
One of the task that a developer needs to accomplish is to code a module for logging, and creating it from scratch will take some of your precious time. So to be a little more productive, we can use a tested library like Log4Net. I have browsed for some pages and found a lot of variations. So putting...
Posted to
Humprey Evangelista Cogay
by
Comgen
on
04-30-2008
Filed under:
Filed under: Add-Ons, C#, .Net, Windows Forms, Text, Transaction Log File, Tracing, Log4Net, Logging, Configuration, Step by Step, windows apllication, How To
-
Wow, I've been in a black hole for months! The usual excuse -- busy at work on projects. Now that we've gotten our app into production, we're now into firefighting, er... I mean maintenance work for that app. Here are some of the lessons I've learned in optimising and debugging our Windows...
-
im curious of what are the preferences of developers . i can recall some friends sharing their experiences on interviews answering questions like " why C# not VB ?" or vice versa . im a c# guy and i love the language . but i dont know what language do you prefer . i know they make use of the...
-
I've stumbled upon a free .Net obfuscator --Eazfuscator.NET. So far, it works well for my purposes. Most obfuscators are costly--ranging from $200 to $2000! But this one is freeware and it works better than the free one bundled with Visual Studio 2005. It is free and easy to use!
-
Okay, after almost a year and an offshore assignment, I finally had a chance to update this blog. I was developing a .Net 2.0 C# windows application wherein I basically have to print PDF files from a Windows application. I tried to use the Adobe Acrobat Reader ActiveX object embedded in my form to preview...
-
i was working a few weeks back on an Outlook 2007 OBA application which involved creating a custom menu to enable user interaction ( a candidate for a post maybe later ) . one of the UI issue i have to deal with is to assign face id prperty to the menu items to make it sexy . Read this article .
-
I was browsing at DevPinoy.org today when I saw this interesting post by n@rds about searching for files in a directory using multiple search patterns and it made me realize that there are alot of ways you can accomplish this task. Here are some examples on how you can search files in a directory using...
-
I have a task that will delete files in a certain directory, specifically a file with “*.csv” and *.log” extensions. Unfortunately System.IO.Directory.GetFiles(string,string) doesn't support multiple search pattern. To be able to achieve my requirement I created a method that accepts...