tlhIn`toq's Profile User Rating: ****-

Reputation: 5441 Overlord
Group:
Mentors
Active Posts:
11,883 (7.82 per day)
Joined:
02-June 10
Profile Views:
100,360
Last Active:
User is offline Today, 03:45 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Mac
Favorite Browser:
Safari
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Dodge
Dream Kudos:
550
Expert In:
C#
Icon   tlhIn`toq There are very few software issues that liberal application of Mt.Dew and M&Ms wont fix!

Posts I've Made

  1. In Topic: Writing a new method, getting an error

    Posted 31 Jul 2014

    Look in the C# tutorials. There is a very nice tutorial on making extension methods. 20 minutes of reading will save you hours of aggravation trying to re-invent the wheel from scratch.
  2. In Topic: Multiple Desktop Display (Multiple Explorer Windows)

    Posted 31 Jul 2014

    If you follow a few of the links off the site Skydiver linked to you can find the files to download.
  3. In Topic: Multiple Desktop Display (Multiple Explorer Windows)

    Posted 31 Jul 2014

    Is this just for the exercise of making it? Because there are plenty of existing products that do this if its a matter of 'need' not 'practice'

    This is not going to be an API kind of thing, or even a C# kind of thing.
    This is going to be a very low lever project that requires a deep understanding of the OS.
  4. In Topic: C# method isnt working

    Posted 31 Jul 2014

    Well -
    • You call updateString() then you hide the form. Sounds liek that is what it is doing. How is that an 'error'?
      19	        private void cmdOkay_Click(object sender, EventArgs e)
      20	        {
      21	            frmCodeGenerator f = new frmCodeGenerator();
      22	            f.updateString(int.Parse(txtInput.Text));
      23	            this.Hide();
      24	        }
      

    • I wouldn't reach into the generate class to pull out the 'print' variable. Just return the code

      public string GenerateCode(int amount)
      {
         //do work
         return codeString;
      }
      

    • Why does the input form make a new frmCodeGenerator then never show it?
    • I'd probably make the generate class static so I didn't have to instantiate it.
      string newCodeString = GenerateClass.MakeCode(16);
      
      But to make that thread-safe you need to pull your print variable out of class-wide scope and put it in the method.
    • When your input class makes a new form it is a child of the current form. So when you hide the parent it is going to hide its children: That's the nature of forms. Just like having a save dialog open in MS Word: If you hide word the save dialog hides with it.


    Personally I don't think you need 3 classes for this. Its a simple 1980's WinForms application. All you really need is one form and a couple methods in the code behind. Maybe the generator in its own class if you plan to share it amongst a bunch of other classes later. But I sure don't see 2 forms for this.
  5. In Topic: Assigning randomly unique numbers

    Posted 31 Jul 2014

    I have no idea what the numbers are for. That's why I said I dont' get it. Usually you just use an incrementing ID number for each row on the table. That is generated by the database at the time the row is made.

    So a user in Milwaukee adds a row, that becomes ID 1
    A user in Chicago adds a row, that becomes ID 2
    A user in Tampa adds a row, that becomes ID 3

    Think about this... Does Amazon.com pre-assign order numbers to all of its customers? You Bob Smith; you have orders 100-200, you Dave Johnson; you have orders 201-300.

    There isn't much for any of us to go on from your initial post beyond "I'm pre-assigning numbers". What they are, are for etc. we have no idea. But just the idea of pre-assigning like that raises a flag about the design.

My Information

Member Title:
Please show what you have already tried when asking a question.
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
United States of America
Interests:
C#, Photography, Camping/Hiking, Travel
Years Programming:
10
Programming Languages:
C#, WPF, MVVM

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://www.stlaurent.me
Yahoo:
Yahoo  pk_clint@yahoo.com.au

Comments

Page 1 of 1
  1. Photo

    tlhIn`toq Icon

    19 Aug 2013 - 20:28
    Ah - I *am* blind.
  2. Photo

    Michael26 Icon

    19 Aug 2013 - 15:53
    Yes there is, you have Awards, About me, Posts and Blog. That is right under your status.
  3. Photo

    tlhIn`toq Icon

    18 Aug 2013 - 10:16
    Am I just blind, or is there no link on a person's profile page to their blog? That's silly.
    http://www.dreamincode.net/forums/blog/1888-tlhintoqs-blog/
  4. Photo

    tlhIn`toq Icon

    18 Aug 2013 - 10:13
    Yep. They are coding on a "Whole 'nother level" above my last employer. Makes me feel like like I'm in the special slow learners group. But that's a nice side effect of new environments: They make you stretch past your comfort zone and learn new techniques.
  5. Photo

    Michael26 Icon

    05 Aug 2013 - 06:17
    At least you found job :)
  6. Photo

    tlhIn`toq Icon

    04 Aug 2013 - 12:53
    01aug13: I've changed employers and no longer working at home. So I won't be answering posts in real-time through out the work day. Don't take this as disinterest in the site. Its just I can't do that from a new office as a new employee. So its nights and weekends for me.
  7. Photo

    tlhIn`toq Icon

    12 Jul 2013 - 06:55
    Thanks! I've only just gotten on the computer this morning and saw it myself.
  8. Photo

    Michael26 Icon

    12 Jul 2013 - 06:39
    Congrats on 5000 :)
  9. Photo

    tlhIn`toq Icon

    05 Jun 2013 - 11:15
    I need to run through them and clean them up, stitch panoramas together etc. Shot about 700 frames. I'll keep maybe 50 at most. 10% or little less is about average.
  10. Photo

    Michael26 Icon

    05 Jun 2013 - 10:28
    Post some pictures, will you?
  11. Photo

    tlhIn`toq Icon

    05 Jun 2013 - 09:20
    Back from vacation. I was away for nearly a month (if anyone noticed). But Alaska was beautiful.
  12. Photo

    tlhIn`toq Icon

    31 Dec 2012 - 08:56
    Thanks! I see the voting is closed.
    http://www.dreamincode.net/forums/topic/303317-dic-community-awards-2012-voting/
    I had to laugh when I saw I was even on the "nicest member" list - Everyone knows I'm the brutally honest old man LOL.
  13. Photo

    lucky3 Icon

    31 Dec 2012 - 02:28
    Congratulations for the "Most Helpful- Programming" shared 1st place award!
Page 1 of 1