Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements


Vesuvius vesuvius Count Orlock
  • SmartLayout - Powerful and Easy Layout Manager for Winforms

    figuerres said:
    vkhaitan said:
    well to be honest I find that the windows panels, grid and docking work fine for 90% or more of all layouts.
    in very few cases do I find them to now work as needed.
    and given that you are offering one control.... it just does not seem worth it.

    In my experience most developers who have layout problems just do not know how to use the layout tools they have already.

    yes there are some cases where more can be done, but in the few cases I can handle the issues with a bit of tewaking and some custom code.
    Completely right, I've never felt the need to use a layout manager, once you know how to use the traditional controls well. The important thing to take from this is, whether it is Krypton or DevExpress, they all offer a suite of controls not just the one which you are doing at the moment.

    There is a similar start-up guy here, and he offers far much more than you do. I have the utmost respect for control developers because it is difficult, and unless you can offer a lot more than what is on code project, then you will find it difficult.

    You need a suite of controls or better put, you need a toolbox with loads of different tools to help me create something. As it is you have just a screwdriver, and I need far much more than that.

    Good Luck!

  • SmartLayout - Powerful and Easy Layout Manager for Winforms

    vkhaitan said:
    figuerres said:
    May I get to know where did you find mistakes?

    SmartLayouts is a layout manager for Windows forms on the .Net platform to ease the design and development of GUI. It assists in arranging of various winforms GUI elements, and controls the behaviour of those elements when the form is resized or repositioned.

    GUI designing is often an unnecessarily time-consuming and annoying part of software development. Arranging controls with pixel-based design tools proves to be a laborious task, and usually you still don't get what you desired. Even after that, you require manual coding for repositioning and resizing of controls for various resolutions. If you need to change your GUI in the long run, your work increases exponentially. Although .Net provides basic layout managers, but they are insufficient for any professional GUI development.

    SmartLayouts fills the gap left by .Net platform. It uses a unique methodology and algorithm for almost all of your layout tasks. Unlike many similar solutions, it is natural and unobtrusive. It doesn't get in your way when designing your GUI . Your form design flow remains as previous, but you don't need to bother about pixel-perfect design. After that, adding SmartLayouts to your form is very easy. The result is resolution-independent, maintainable GUI within the least possible time.


    Some tips.

    1. Never start a sentence with the word "And".
    2. the Krypton Tool kit is free and you get the Office 2007 look and feel. For the money you are charging, you could get a Ribbon Control and Navigator and the New docking system out next week.

  • Basic MFC SDI question

    I created a Smart Device MFC SDI application in VS2005.

    I've got some files with names like this: MyApp.cpp, MyAppDoc.cpp, MyAppView.cpp, MainFrm.cpp.

    There are classes in these files. In MyApp.cpp there is a class called CMyAppApp. In MyAppView.cpp there is a class called CMyAppView.

    In MainFrm.cpp there is a class called CMainFrame.

    How do I call public methods in CMyAppView and CMainFrame from CMyAppApp?

    How do I get hold of instances of the classes so I can access the methods?

     I don't want to use "new" on CMainFrame.

     This would create a new form. I want to get hold of the handle to the existing form and view (CMainFrame and CMyAppView). I can't find any good pointers in afxwin.h.

  • Do you use the "var" ​keyword/ali​as liberally

    foreachdev said:
    stevo_ said:
    I disagree. I mostly use it for long namespaces. My current project likes to name things like so:

    When newing up objects of that type via a factory method or even via new constructor its good to not have to figure out what long winded namespace they live in. Knowing it really adds nothing to the programming experience.

    And why not use var in those cases? Its a convienence.
    Yes you are right, that is your convenience but think of the person who will read your code in 3 years time.

    " its good to not have to figure out what long winded namespace they live in"

    This epitomises why using var as little as possible is a good thing. As a developer you are tasked with creating libraries, for the really long ones the using keyword greatly simplifies things. It is so important that someone looking at your code can anticipate why x works with y, and your "convenience" makes things that much harder. A good program should read like a book, without resorting to annotation.

    If you read a historic book, lets say "War and Peace" by Leo Tolstoy, you have the annotation at the bottom saying, the political environment was like this, and the serfs were about to launch a revolt. This is all relevant and important. With your method, it means having to resort to intellisense and it makes for a stuttered way of deducing the code that's written and that much harder.

    This, as they say on the internets, is "My 2 Cents".

  • Do you use the "var" ​keyword/ali​as liberally

    Sven Groot said:
    Type inference has its uses. It's pretty much required for Linq because you just don't want to spend an hour figuring out just what your query is going to return (not to mention if you use anonymous types you can't even explicitly type the result).

    In C# there is the marginal benefit of being able to avoid the repeated types in something like this:
    System.Collections.Generic.Dictionary<string, Foo> someVar = new System.Collections.Generic.Dictionary<string, Foo>();

    That's only a small thing though if you're using VS because you don't actually have to type the second occurrence. VB does this better with the "Dim someVar As New Whatever()" construct that has existed since the old days (although prior to VB.Net 2002, the semantics were different; it was a lazy initialization in old VB).

    The third thing where I think it's useful (and I really use it a lot here) is in foreach loops. It's just nice being able to say "foreach( var item in list )" without having to worry about the exact type in the list, even more so if you're using a dictionary where the enumerated type is a KeyValuePair<TKey, TValue> which I can never remember.
    I never thought I'd see the day where I liked Visual Basic, but in some respects it is far easier  and more sensible than C type languages, where the focus is on being as "terse" as possible maintaining readability, VB can also be terse, and very readable - anyway enough of that.

    Is there absolutely no difference in using "var" in a foreach loop with a Generic Dictionary instead of KeyValuePair<key, value>? Surely you're giving the compiler that much more work to infer the KeyValuePair where if you used the generic syntax it's less work in the loop, hence better performing speed wise?

  • Do you use the "var" ​keyword/ali​as liberally

    In .NET 3.0 (and .NET 2.0 SP1) the var keyword was introduced to assist type inference situations. While I can see the benefits of it when using the

    var query = from x in y
                           where x = "London"
                            select x

    I don't think you should use it "just because you can". It is very easy to use, but if you are reading someone else's code, there is an moment where you have to look at the declaration and decipher what var is, whereby if the person who wrote the code had not been lazy and written (to take PerfectPhase's example)

    MessageQueue mqRx = new MessageQueue(@"FormatName:DIRECT=OS:localhost\private$\inputmessages", false, false, QueueAccessMode.Receive);

     In Visual basic, there is no new var type keyword (I find this consistent) and Dim remains i.e.

    Dim numberOfStudents As Integer, to declare an integer

    where the Linq query would be (though I hate the underscore)

    Dim OrdersShippedToWA = From Ord In Orders _
                            Where Ord.Shipped _
                                And Ord.State = "Washington" _
                                    Select Ord.ID, OrderDate = Ord.Date, _
                                    Ord.Address, Ord.City, _
                                    Ord.State, Ord.Zip

    I just think this results in your code being less readable, for no tangible benefit. What do you think?

  • Cern: Big Bang – start of the world’s biggest science experiment!

    Dr Herbie said:
    vesuvius said:
    So how would finding the Higgs particle help with the state of the world?

    I'm hoping that by colliding these sub-atomic particles, behaviour supportive of nuclear fusion may be witnessed. This is one of the hardest problems to solve, hitherto scientists have been unable to see how sub-atomic particles behave at such extremes.

    Fusion would solve the energy crisis for sure, and negate carbon emissions exponentially. That would go some way to resolving the state of the World.

  • Cern: Big Bang – start of the world’s biggest science experiment!

    Sven Groot said:
    Dr Herbie said:
    My prediction: they won't destroy the world, they won't discover the Higgs Boson, but they will discover a very neat (although slightly expensive) new way of cooking sausages.
    I certainly hope they do find something. I always thought the world running out of oil, food and energy shortages were something my children's children would have to worry about.

    As it is, in Britain (as elsewhere) prices are and have been escalating for some time now, and I don't see a stop to it. Imagine what it must be like in some slum in a less privileged country. Tempestuous weather - Gustav one day, Katrina the next - rising sea levels when does it end?

    Never mind CERN destroying anything, were doing quite well ourselves!

  • Monitoring SQL Tables for changes

    If you want a visual approach then http://windowsclient.net/learn/video.aspx?v=27881 is a complete example. (I just wish he didn't use comic sans as his IDE font, yuk!)

    Judging by a lot of your posts, I hope you are not using Linq, because the more you post, the more you should be using typed datasets. This would be yet another hurdle to overcome with Linq.

  • Silverlight 2 RTM???

    What really surprises me is that everybody "knows" that the PDC conference is coming in a month or so, and Keynote speakers always need something big to announce. You can bet-your-bottom-dollar that Silverlight will be officially released at PDC, or we will be told it will RTM in 4 weeks. The same can be said for Internet Explorer, though due to the Chromium phenomenon, I suspect it could be December or the start of 2009 before it is released. Oslo will be another huge announcement and the development of MESH.

    Charles offered a temporal valedictory upon the commencement of his holiday. As PaoloM has already intimated, expect things to be quiet insofar as announcements and Channel 9 because of PDC.