Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

sherifffruitfly

@sherifffruitfly
About
Posts
36
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Quick way to switch the scopes of 2 code blocks?
    S sherifffruitfly

    Was happily coding away, and I did this: if (blahblahblah) { ..... lock(blahblahblah) { ..... } ..... } I then realized I had gotten the scopes backwards, and corrected it. Is there any kind of switchscopeify feature somewhere in vs2008 to do that superquick?

    C# question

  • General issue: When application doesn't have focus, and you click a button on it, it doesn't register....
    S sherifffruitfly

    You have to click the button twice to get the desired button effect - once to give the application focus, and then once to actually fire the buttonclick event, I assume. Is there a general approach that's applicable to all (or the vast majority) of controls, so that one click on a button/control suffices to trigger the click event, whether or not the app has focus at the time of the click?

    C# database help question lounge

  • Best WinForm approach to presenting XML file in a pretty manner?
    S sherifffruitfly

    No major reason - I just think of treeview data situations a 2-paned affairs is all. Possibly that's an out-moded frame of mind. I was more interested in alternative methods of getting the data to the app in the first place though, I can fiddle with it once it's there in a variety of ways. :)

    C# csharp linq xml question

  • Best WinForm approach to presenting XML file in a pretty manner?
    S sherifffruitfly

    Hi all, I have an xml file that I want to make a small app to present its contents in a convenient way to the user. Nothing especially fancy is needed here - a pane for a treeview so the user can select what he or she wants to look at, a panel for displaying the selection(s), and the facility to load the file in the first place. I'm thinking this would be a good time for me to get familiar with linq2xml (linq noob here), but wanted to see if there were other equally-or-better good routes to go as well. Thx! -sff

    C# csharp linq xml question

  • 2 people create new record in datagridview on dataset, both save, last to save gets primary key violation - fix?
    S sherifffruitfly

    Yep - as I was typing the question, I realized that the answer was to simply not create the pk client side. :) Thanks! cdj

    Database help database question

  • 2 people create new record in datagridview on dataset, both save, last to save gets primary key violation - fix?
    S sherifffruitfly

    I'm certain this is about as noob-ish as it gets, but I'd like to know what typical solutions to this issue are. 2 people (on two computers) get passed their own dataset instances, representing 1 table in the database. They both want to add a row to the db table. They both click on the new row in the datagridview, and it happily inserts a new row on their monitors, with a new Primary Key value (identity column). Problem is, the number is the same on both computers. So the first person can save just fine, but the second person naturally receives an PK violation error when he or she saves. How is this issue supposed to be dealt with (i.e. avoided)? Avoid creating the PK value at all on the client side,allowing the database to create the PK when insert has been performed, and just refresh the datagridview with that value (created by the database)? Some other approach? Thanks for ideas, cdj

    Database help database question

  • C# code for optimal path, given adjacency matrix/cost values?
    S sherifffruitfly

    hahaha - yeah, gamer-speak is definitely typical. Lots of exclamation marks too!!!elevens!!! ;)

    Algorithms csharp question

  • C# code for optimal path, given adjacency matrix/cost values?
    S sherifffruitfly

    Yupyup - It's all good - I should have realized how my question would appear to the reader.

    Algorithms csharp question

  • C# code for optimal path, given adjacency matrix/cost values?
    S sherifffruitfly

    Hahaha! It didn't even occur to me that people would think - quite naturally - that my question was a homework problem! It's been so long since I've been outta school - HAHAHAHA!! I'm familiar with the standard algorithms (unless a new one has become prominent in the last 10 years) - I was just looking to save myself the hassle with a lil homebrew tool for a game (eve). Nevermind - thanks for being nice about it tho! (giggles) Homework. :)

    Algorithms csharp question

  • C# code for optimal path, given adjacency matrix/cost values?
    S sherifffruitfly

    I know there's lots - but does anyone have favorites, for ease of use and scope?

    Algorithms csharp question

  • C# code for optimal path, given adjacency matrix/cost values?
    S sherifffruitfly

    I'm sure there's lots out there. Maybe you folks have your favorites?

    C# csharp question

  • What's the period of (cos ax)(sin bx)?
    S sherifffruitfly

    For 0 < a, b < 1, if it makes a difference. Thanks!

    Algorithms question

  • Where's the 10 Last Updated and Beginner's articles on the front page?
    S sherifffruitfly

    They aren't there on my screen any more - what happened to them?

    IT & Infrastructure question learning

  • Don't understand what's required in order to use unmgd c++ class in c# app - help?
    S sherifffruitfly

    We'll see how it goes here; if necessary, I will. Thanks!

    C / C++ / MFC csharp c++ help tutorial question

  • Don't understand what's required in order to use unmgd c++ class in c# app - help?
    S sherifffruitfly

    I want instances, so I guess the COM compilation is what would be helpful. I'll look up how to do that. The way I did it, I believe it's "just standard": #ifndef DllExport #define DllExport __declspec( dllexport ) #endif ... class DllExport {...} Thanks for the suggestions!

    C / C++ / MFC csharp c++ help tutorial question

  • Don't understand what's required in order to use unmgd c++ class in c# app - help?
    S sherifffruitfly

    Hi all, I've got the source code and compiled binary for a c++ class library, and I'd like to be able to instantiate & use the class in a c# application. What's the simplest way to do this? I've looked up resources, but they all appear to me more complicated than my basic level of understanding of MS C++ will allow to be helpful to me. Can someone point me to a very simple recipe (and hopefully simple explanation too) on how to turn this unmanaged class into one which c# can use? Also, will there be issues about "return data type matching" between c++ and c#? Thanks, cdj

    C / C++ / MFC csharp c++ help tutorial question

  • convert an expresion in a result
    S sherifffruitfly

    Google "lex yacc".

    C# question

  • Quickly need a listing of classes/methods/signatures - how?
    S sherifffruitfly

    If I can print out the listing, that'll work fine - thanks!

    C# csharp database question

  • Quickly need a listing of classes/methods/signatures - how?
    S sherifffruitfly

    Hi, I'm converting all of the database code in my app, and want to go through every class and every method to ensure that I haven't missed anything. What's a quick way to get a listing of all of my classes/methods? (I code in VS2003/.net1.1) Thanks, cdj

    C# csharp database question

  • Source Control / Collaboration
    S sherifffruitfly

    Reasonably clarifying: http://en.wikipedia.org/wiki/Microsoft\_Visual\_SourceSafe

    C# csharp asp-net visual-studio sysadmin collaboration
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups