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?
sherifffruitfly
Posts
-
Quick way to switch the scopes of 2 code blocks? -
General issue: When application doesn't have focus, and you click a button on it, it doesn't register....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?
-
Best WinForm approach to presenting XML file in a pretty manner?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. :)
-
Best WinForm approach to presenting XML file in a pretty manner?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
-
2 people create new record in datagridview on dataset, both save, last to save gets primary key violation - fix?Yep - as I was typing the question, I realized that the answer was to simply not create the pk client side. :) Thanks! cdj
-
2 people create new record in datagridview on dataset, both save, last to save gets primary key violation - fix?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
-
C# code for optimal path, given adjacency matrix/cost values?hahaha - yeah, gamer-speak is definitely typical. Lots of exclamation marks too!!!elevens!!! ;)
-
C# code for optimal path, given adjacency matrix/cost values?Yupyup - It's all good - I should have realized how my question would appear to the reader.
-
C# code for optimal path, given adjacency matrix/cost values?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. :)
-
C# code for optimal path, given adjacency matrix/cost values?I know there's lots - but does anyone have favorites, for ease of use and scope?
-
C# code for optimal path, given adjacency matrix/cost values?I'm sure there's lots out there. Maybe you folks have your favorites?
-
What's the period of (cos ax)(sin bx)?For 0 < a, b < 1, if it makes a difference. Thanks!
-
Where's the 10 Last Updated and Beginner's articles on the front page?They aren't there on my screen any more - what happened to them?
-
Don't understand what's required in order to use unmgd c++ class in c# app - help?We'll see how it goes here; if necessary, I will. Thanks!
-
Don't understand what's required in order to use unmgd c++ class in c# app - help?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!
-
Don't understand what's required in order to use unmgd c++ class in c# app - help?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
-
convert an expresion in a resultGoogle "lex yacc".
-
Quickly need a listing of classes/methods/signatures - how?If I can print out the listing, that'll work fine - thanks!
-
Quickly need a listing of classes/methods/signatures - how?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
-
Source Control / CollaborationReasonably clarifying: http://en.wikipedia.org/wiki/Microsoft\_Visual\_SourceSafe