Click here to Skip to main content
15,881,709 members

Articles by Ron Beyer (Articles: 7, Tip/Tricks: 6)

Articles: 7, Tip/Tricks: 6

RSS Feed

Average article rating: 4.72

Multimedia
GDI+
8 Jan 2010   Updated: 8 Jan 2010   Rating: 3.67/5    Votes: 13   Popularity: 4.08
Licence: CPOL    Views: 50,978     Bookmarked: 48   Downloaded: 2,709
Please Sign up or sign in to vote.
A signal strength control similar to the ones on cell phones
1 Feb 2013   Updated: 2 Feb 2013   Rating: 5.00/5    Votes: 16   Popularity: 6.02
Licence: CPOL    Views: 41,482     Bookmarked: 37   Downloaded: 0
Please Sign up or sign in to vote.
A WinForms line control that works how you would expect one to.
Programming Languages
C#
13 Dec 2009   Updated: 13 Dec 2009   Rating: 5.00/5    Votes: 19   Popularity: 6.15
Licence: CPOL    Views: 110,087     Bookmarked: 36   Downloaded: 4,892
Please Sign up or sign in to vote.
Tutorial on programmatically setting the screen brightness using C#.
3 Mar 2010   Updated: 3 Mar 2010   Rating: 4.84/5    Votes: 22   Popularity: 6.49
Licence: CPOL    Views: 113,520     Bookmarked: 70   Downloaded: 3,522
Please Sign up or sign in to vote.
Explains producing and consuming .NET remoting events, the drawbacks, and advantages.
29 Dec 2009   Updated: 29 Dec 2009   Rating: 4.79/5    Votes: 21   Popularity: 6.24
Licence: CPOL    Views: 144,101     Bookmarked: 62   Downloaded: 6,281
Please Sign up or sign in to vote.
Implementing a robust PID controller in .NET.
C# 4.0
13 Jan 2014   Updated: 14 Jan 2014   Rating: 4.84/5    Votes: 33   Popularity: 7.28
Licence: CPOL    Views: 35,274     Bookmarked: 60   Downloaded: 819
Please Sign up or sign in to vote.
Convert what System.Convert can't.
Visual Basic
28 May 2013   Updated: 29 May 2013   Rating: 4.87/5    Votes: 23   Popularity: 6.63
Licence: CPOL    Views: 113,615     Bookmarked: 154   Downloaded: 7,611
Please Sign up or sign in to vote.
Developing a component licensing system in .NET.

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.28

Desktop Programming
Windows Forms
16 Feb 2010   Updated: 18 Feb 2010   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 9,510     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
If you are designing in a WinForms component, which is anything that derives from Control at some point (Forms, UserControls, panels, etc), then you can use the following code:if (this.Site.DesignMode) //Do stuff[edit]The above will throw an exception if Site is not set (in...
Programming Languages
C#
20 Nov 2009   Updated: 20 Nov 2009   Rating: 1.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 7,140     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
I think you are confusing how the FromArgb method works. It takes a 32 bit number in the format AARRGGBB, where each element of the color is an 8 bit number of the value 0 to 255. Setting the color to zero creates a black color, but it is transparent (the alpha channel is zero). To set black with an
19 Aug 2010   Updated: 19 Aug 2010   Rating: 4.82/5    Votes: 17   Popularity: 5.67
Licence: CPOL    Views: 17,701     Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
I'm sorry, but that's a horrible way to do it...Here is what I would do... public class NumberToWords { public static string ConvertToWords(int Number) { //Split the string into 3 part pieces string numStr = Number.ToString(); ...
13 Sep 2010   Updated: 13 Sep 2010   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 20,561     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
using System;using System.Runtime;using System.Runtime.InteropServices;public static class InternetConnectionStatus{ [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState(out int Description, int Reserved); public static bool Connected() { ...
24 Sep 2010   Updated: 24 Sep 2010   Rating: 4.86/5    Votes: 4   Popularity: 2.92
Licence: CPOL    Views: 5,370     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
You could also make an extension method...public static class EnumExtensions{ public static string Description(this Enum e) { return e.GetType().GetField(e.ToString()).GetCustomAttributes(typeof(DescriptionAttribute), false) as DescriptionAttribute[])[0].Description; ...
Visual Basic
24 Sep 2010   Updated: 24 Sep 2010   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: CPOL    Views: 7,350     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
You may want to take a look at String.Join:Your code can be compressed to:Dim str as Stringstr = Chr(34) + String.Join(Chr(34) + "," + Chr(34), arr) + Chr(34)(My VB skills are a bit lacking, so the syntax may be a bit off, but you get the idea).

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
President 6D Systems LLC
United States United States
I studied Software Engineering at Milwaukee School of Engineering for 2 years before switching to Management of Information Systems for a more business oriented approach. I've been developing software since the age of 14, and have waded through languages such as QBasic, TrueBasic, C, C++, Java, VB6, VB.NET, C#, etc. I've been developing professionally since 2002 in .NET.