CharlieMay's Profile User Rating: *****

Reputation: 1726 Grandmaster
Expert w/DIC++
Active Posts:
5,700 (2.37 per day)
25-September 09
Profile Views:
Last Active:
User is offline Apr 25 2016 06:06 PM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Dream Kudos:
Expert In:

Latest Visitors

Icon   CharlieMay Learning C# and feeling pretty good about it.

Posts I've Made

  1. In Topic: Site not designed for higher resolution displays

    Posted 6 Apr 2016

    Does it look any better here? Just curious, I have nothing to do with the new site that's being worked on but thought you might see if this looks better at 4K.
  2. In Topic: Problem in textBox length !

    Posted 3 Mar 2016

    set the maxlength to 24 and check to see if the length is less than 24 before you continue processing anything.
  3. In Topic: Simple Answers for Simple Questions from Experienced Developers

    Posted 17 Feb 2016

    the original link to the code

    @DarenR. Look at the output from that MSDN snippet. It clearly stated that the string that "Looks like it represents a Double datatype" is not in a recognizable format to be converted to an Integer. (// The String value '-26.87' is not in a recognizable format.)

    I think you're trying to do is imply that since it looks like a double make it a double and convert it to int32 so that it becomes the integer conversion for the double. (ie, 12.57D converts to 13) I'm really not sure how ToString() or even CStr() comes into play here as they would only be needed to put the value back into something that holds a string.
  4. In Topic: Simple Answers for Simple Questions from Experienced Developers

    Posted 17 Feb 2016

    So in my transition from VB.Net to C# I've discovered that I do not grasp Object Oriented Programming :(/>/>

    I'm trying to learn WPF and I really want to focus on the MVVM pattern so while working through a tutorial I came across this question.

    In the code (A demo repository for tutorial purposes) is the following class:
    public class EmployeeRepository
    	readonly List<Employee> _employees;
    	public EmployeeRepository()
    		if (_employees == null)
    			_employees = new List<Employee>();
    		_employees.Add(Employee.CreateEmployee("John", "Smith"));
    		_employees.Add(Employee.CreateEmployee("Jill", "Jones"));
    		_employees.Add(Employee.CreateEmployee("Kathy", "Morts"));
    	public List<Employee> GetEmployees()
    		return new List<Employee>(_employees);

    What is the reason for returning a new List<Employee>(_employees) in the GetEmployees method instead of just returning _employees which is already a List<Employee>. Both seem to work exactly the same so I don't understand the reason for the new List<T> copying an existing List<T>
  5. In Topic: Dim the SelectedItem of a Listbox

    Posted 9 Feb 2016

    Or more likely the op is trying to set the variable in a class scope which would throw a nullreferenceexception as the listbox hasn't been instantiated yet. But since the op hasn't provided any errors, we're only guessing at this point. If that is the case, then you can define username in the class and then in a selection event or similar event set username = listbox1.selecteditem.ToString()
    Public Class Form1
      Dim userName as string = ""
    private sub ListBox1_SelectedIndexChanged event
       userName = ListBox1.SelectedItem.ToString();
    end sub
    private another sub
       userName is available but only holds something other than "" if you triggered the selectedindexchanged event.
    end sub
    End Class

My Information

Member Title:
This space intentionally left blank
48 years old
October 27, 1967
Years Programming:
Programming Languages:

Contact Information

Website URL:
Website URL  http://


  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  1. Photo

    meepy Icon

    13 May 2015 - 13:50
    hi, i'm in school for software development and web programming and am looking for online chat with other developers. i see you're online and wonder if you can direct me. thanks.
  2. Photo

    mireille4U Icon

    30 Apr 2015 - 05:44
    Greeting from mireille i saw your profile today and i became interested in you and i will like to know more about you and if you can mail an email to my mail address ([email protected]) i will give you my is my mail address i hope we can move from here.above. Mireille
  3. Photo

    CharlieMay Icon

    26 Feb 2015 - 14:39
    Damn, and I really could have used that massage too.
  4. Photo

    jannbaby Icon

    20 Feb 2015 - 12:26
    Hello dear,
    please do not be offended to receive this massage, My name is Miss jannet, I saw your profile today at,( and become very interest to be your friend And i have an important issue to discuss with you if you accept Please contact me back on my private email address, ( jannetrubel@ ) for more details about me, thanks,
  5. Photo

    CharlieMay Icon

    30 Apr 2014 - 05:43
    asmalley, please post your question in the forums. Not only does it get you a lot more suggestions and help, it allows others to learn from the solutions provided. :)
  6. Photo

    asmalley Icon

    29 Apr 2014 - 06:43
    Hello Charlie if you have a moment to look at your private message that would be much appreciated :)
  7. Photo

    orangebanana Icon

    03 Dec 2013 - 19:57
    thank you very much :)
  8. Photo

    vks.gautam1 Icon

    11 May 2013 - 06:53
  9. Photo

    CharlieMay Icon

    06 May 2013 - 14:10
    OK, up at the top of this page is the "About Me" tab where my signature is: in there is a link to a very helpful set of videos that should help you with what you want. Start at the beginning video and follow along.
  10. Photo

    pavanvadrevu Icon

    03 May 2013 - 08:53
    i want to learn complete from basics sir
  11. Photo

    nK0de Icon

    01 Feb 2013 - 10:18
    Hey Charlie! :) How's it going over there?
  12. Photo

    beginner_emman Icon

    30 Nov 2012 - 09:05
    i agree, you should teach a programming..thanks for your help..
  13. Photo

    CharlieMay Icon

    22 Oct 2012 - 18:30
    Wow! thanks everyone. I apparently need to check this area more often ;)
  14. Photo

    Wizmeister Icon

    18 Oct 2012 - 17:00
    You are awesome man. You should teach a class on programming.
  15. Photo

    wanabavbcoder Icon

    09 Oct 2012 - 15:38
    hi charlieMay, Thank you so much. It has really helped. I wish I had the knowledge you had.
  • (3 Pages)
  • +
  • 1
  • 2
  • 3