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

Reputation: 6056 Overlord
Group:
Mentors
Active Posts:
13,603 (7.09 per day)
Joined:
02-June 10
Profile Views:
117,585
Last Active:
User is offline Yesterday, 04:44 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
Who Cares
Your Car:
Dodge
Dream Kudos:
600
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: Help With DirectoryInfo and foreach

    Posted 3 Sep 2015

    ChrispyChris: The term you are needing is "recursive". If you call a method, whose job it is to search a directory and when it finds a directory it then calls itself, which searches a directory and when it finds another directory, it then calls itself which searches a directory and when it finds another directory it then calls itself {...} That's recursion.

    See how that's working? If you Google "C# recursive search" you'll get countless examples: The first one from Microsoft. Then sever more good tutorials. Then another from the Micrososft blog. How about that?

    https://support.micr...en-us/kb/303974
    ...
    This example is simple and great as it is only 8 lines: 8! How cool of an example is that?
    http://blogs.msdn.co...ecursively.aspx
  2. In Topic: get a value form listview control

    Posted 3 Sep 2015

    peterpiper: I would urge you to read the article linked below. I think it pretty well covers your VERY SPARSE question, total lack of detail about you or the scenario... The appropriate responses of the mentors that answered you... And your inappropriate responses back to them: First you're mad they talked to you like a beginner then you use your beginner status as an excuse/explanation. Whiskey Tango Foxtrot? Are you fraking 12 years old? I think you really need to remember that we're not telepathic and did not magically know your background from your 24 word post, nor are we watching over your shoulder through your webcam or some sort of screen sharing system to have any idea about your code other than the ONE LINE, ONE, ONE LINE of code you use to explain your problem. Sheeeesh.... <shaking head in disbelief at this wanker>

    http://www.dreaminco...about-the-code/
  3. In Topic: Parse CSV via LumenWorks to DataGrid (WPF)

    Posted 3 Sep 2015

    Awww shucks snoopy11; you're gonna make me blush.

    Thanks!
  4. In Topic: Parse CSV via LumenWorks to DataGrid (WPF)

    Posted 3 Sep 2015

    Well... I can't teach you C# in a thread. You're trying to design a house without knowing anything about plumbing, electrical, load support, or architecture. While at the same time learning how a saw even works.

    Your csvTable only exists within that method. Its a field, not a property (those terms are NOT interchangeable, they are very much two different things), whose scope is just that method. So as soon as that method finishes executing it doesn't exist any more. So there is no way it could be the .ItemSource for your ListView. Do you know anything about the scope or lifespan of objects? There are tutorial in my signature block for 'property' as well as 'object'.

    I might also suggest learning how to Google. There are so many tutorials and code examples at your fingertips it seems a shame to not use them. When I Google "WPF bind to DataTable :MSDN" the top responses are tutorials on how to do what you're attempting.
    https://msdn.microso...y/Aa480226.aspx
    https://msdn.microso...y/dd547149.aspx


    This is WPF, so
    • We don't name every GUI control unless there is an absolute need to: Generally because it is being referenced by another WPF GUI element FROM XAML. Even if you do name something for Pete's sake don't name it "Button1" and "TextBox14" - Give them meaningful names like "btn_Submit" and "txbx_EmailAddress".
    • All of this hard positioning and sizing from Height, Width and Margin are generally avoidable. Think of XAML more like laying out an HTML page where you just nest a control in a control - A grid has Rows and Columns. In Row4 Column3 you have a StackPanel oriented horizontal. In that you have a label and textbox for Email Address [________________]. Let the control manage themselves rather than micro manage like you're doing. That way they can resize and reposition depending on the device. A portrait monitor and a landscape tablet shouldn't require you do to anything with your layout: They should just flow themselves.
    • The .Click event handler is a carry-over from WinForms to help developers migrate. Its fine for really dirty quick R&D testing. But don't use it in anything more than that. Accept that WPF applications are meant to work on an MVVM design pattern with commands.


    It seems like you're trying to make a project from scratch, and use that as a means to learn the language. That never works. Its like saying: "I don't speak Russian, so I'm going to write a mystery novel in Russian to learn the language." Well how are you going to do that if you don't know the syntax, grammar or vocabulary? Same with coding languages. If you don't understand the foundation concepts then you really don't have a way to start your first 'sentence'.
    • I would suggest setting this scratch-build aside until you work at least 2 "Learn C# in 30 days" books from cover to cover. They aren't reference books like a dictionary just to be picked up when you get stuck. Work them from page 1 to page last doing each and every project, exercise and 'bonus' section.
    • Then work through every 'project idea' in the pinned threads at the head of the C# forum.
    • When you can knock out all of those THEN start thinking about architecting a project from scratch.
  5. In Topic: Parse CSV via LumenWorks to DataGrid (WPF)

    Posted 3 Sep 2015

    Your .ItemsSource is set to "csvTable" - but I don't see that property in your C#, or even a reference to it being populated.

    Are you aware that you need to make a public property or dependency property to be the collection source?

    There are a couple "WPF for the WinForms developer" tutorials linked in my signature block that should help you transition out of the 1990's. <laugh>

My Information

Member Title:
Freelance developer
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
United States of America
Interests:
Software development, Shooting, Photography, Camping/Hiking, Travel
Years Programming:
12
Programming Languages:
C#, WPF, MVVM

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://www.stlaurent.me

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