background preloader

.NET Framework and .NET SDK Downloads

.NET Framework and .NET SDK Downloads

Watch a Folder For Updates in WPF C# In this example I am using a file system watcher to detect updates in a Windows folder. If a new file is added to the specified folder then it will provide notification of it in a listbox and open it. And when some changes are made to the file then notification of that is also done and the modified file will be copied to another folder. If a rename of a file in the folder occurrs then notification also occurs in the listbox. Also if a file is deleted then notification of that also occurs. The file system watcher has options for all these purposes. When an image is copy and pasted to a folder, it will get a statement in the listbox regarding that. When some modification is made to this image and it is saved, the statement regarding that will be put in the listbox and the file will be copied to another folder. Step 1: Create a WPF application Step 3: In the cs page, first declare the file system watcher, as in: Step 5: Use the following for if a new file is added to the folder:

Coding4Fun: WPF Sudoku, Part 1 Getting started with Cinder for Windows Store Apps Rick Barraza will present a high level overview of the state of creative coding on Windows Store apps and then walk through setting up and working with the Cinder library in Visual Studio for creating amazing computational art. MissionControl - A Flexible API for Remote Device Control In a race to optimize everything, developers often go to extremes to build software that performs routine tasks. MissionControl is a system that allows users to program a control center that stores interfaces with attached hardware sensors, allowing the users to control any other devices that can be activated via the underlying protocol. For demo purposes, the MissionControl build at this point is compatible with the Phidgets IR hybrid sensor. Panoramic Camera Head The Pano Head is a rotating platform for a camera that mounts on a tripod and is controlled from your Windows Phone 8 device over Bluetooth. Articles 3 minutes, 49 seconds

Ask HS: What will programming and architecture look like in 2020? This topic has been ripped directly from Lambda the Ultimate's What will programming look like in 2020? post. They are having a lively discussion and if you are interested in flexing your holiday thought muscles we might have a good discussion too. Eight years is a difficult prediction horizon. Some of my lousy predictions: Programmers Will Form Guilds Around New Gamified Training HubsThe Web Will Become More Closed Before it Becomes More OpenNot Everyone Will Become a ProgrammerFocus Will Shift to Creating Bigger People Instead of Chasing Big Ideas Programmers Will Form Guilds Around New Gamified Training Hubs I was reading a book called The Merchant of Prato, the fascinating story of a rich merchant during the Renaissance, drawn directly from his own voluminous records and letters. However different his world was from ours there was also a familiarity. Much was different as well. One thing I noticed was the extensive role guilds played in their economy. Will this happen?

Writing Notifications That Don’t Suck — Design/UX Remember the Desktop Cleanup Wizard from Windows XP? It popped up regularly saying, “You have unused icons on your desktop.” To this day I have no idea what an unused icon is…and it probably gets my vote for worst notification ever. Good notifications and error messages require care. Not surprisingly, great notifications start with your product mantra, with an understanding – or at least a theory – of who’s using it, for what, and why. Do You Need a Notification At All? Sometimes there’s no need to bother the user. 1. An error occurred. If a notification is useful, can you make it more so? 2. When I mute my Android phone from its lock screen, I get a notification: “Sound off.” 3. Something can be unexpected but still known. The app has already disappeared. 4. The right notification at the wrong time is disruptive, especially if it requires interaction. Or consider this popup, from the camera app on my Android phone: Writing Notifications, for People 5. 6. 7. 8. Putting it Together

Windows XP Home and Professional Service Pack 2 Service Configurations by Black Viper > Home > Articles > OS Guides > Windows XP > Service Configuration Introduction Saturday, October 16, 2004 @ 7:03 PM PST I have updated my Windows XP Services Configurations and Windows XP Services Information pages to include additional Service Pack 2 information. For the most part, Microsoft took 3 years to create a "default" configuration for Windows XP Services that took me only one month to test and post on July 28, 2001. An * (asterisk) indicates changes from Service Pack 1a to Service Pack 2. Notes for a Happier Computer and User Do NOT use "msconfig" to disable services, type "services.msc" in the Run box instead! Table Header Information Display Name ~ How it displays in the Services Control Panel.Process Name ~ Name of the Process running in the background (displays in Task Manager by hitting Ctrl+Alt+Del).DEFAULT Home ~ What Bill G. thinks should be running on Windows XP Home.DEFAULT Pro ~ What Bill G. thinks should be running on Windows XP Professional." Configuration Information

codebabes.com | Learn Coding and Web Development the Fun Way "Yoda Conditions", "Pokémon Exception Handling" and other programming classics Just reading through some of the excellent answers to this question posed on StackOverflow.com by John K What programming terms have you coined that have taken off in your own circles (i.e. have heard others repeat it)? It might be within your own team, workplace or garnered greater popularity on the Internet. Reposting some of the best ones below ... Yoda Conditions Using if(constant == variable) instead of if(variable == constant), like if(4 == foo). Because it's like saying "if blue is the sky" or "if tall is the man". by [zneak] Originally, yoda conditions might have been introduced to reduce the potential of coding errors in the form if (5 = count) which would be picked up at compile time. Pokémon Exception Handling For when you just Gotta Catch 'Em All. try{ // do something}catch{ // catch em all} by [woot4moo] Egyptian brackets The style of brackets where the opening brace goes on the end of the current line ... if (a == b) { printf("hello");} by [computronium] Different kinds of bug reports

jfo's coding : How can I create a wrapping radio button / checkbox? By default the RadioButton and CheckBox class take on the Button's philosophy of AutoSizing - size to fit all contents on one line. If you have an AutoSize=false RadioButton, and size it manually, you'll notice that the text nicely wraps on the word breaks (i.e. spaces between words). It seems that if we could just *change* the size of an AutoSized RadioButton/CheckBox to return the correct height/width, we'd be able to work around this limitation. Fortunately, we can do this by overriding the GetPreferredSize method, the workhorse of AutoSize and PreferredSize. Behind the scenes, it does all the measurement to calculate how large a control should be. GetPreferredSize has a funny variable passed into it, sometimes it's called proposedSize, however you should really think of it as the constraining size. public override Size GetPreferredSize(Size constrainingSize) { ...} Now that we have this "wrapping guidance" how can we use it? See the full code (C#) (VB)

Programming Sucks Every friend I have with a job that involves picking up something heavier than a laptop more than twice a week eventually finds a way to slip something like this into conversation: "Bro, you don't work hard. I just worked a 4700-hour week digging a tunnel under Mordor with a screwdriver." They have a point. Mordor sucks, and it's certainly more physically taxing to dig a tunnel than poke at a keyboard unless you're an ant. But, for the sake of the argument, can we agree that stress and insanity are bad things? Awesome. All programming teams are constructed by and of crazy people Imagine joining an engineering team. Would you drive across this bridge? All code is bad Every programmer occasionally, when nobody's home, turns off the lights, pours a glass of scotch, puts on some light German electronica, and opens up a file on their computer. This file is Good Code. Every programmer starts out writing some perfect little snowflake like this. There will always be darkness "Double you tee eff?"

Shared Assembly Info in Visual Studio Projects - Random Musings of Jeremy Jameson Yesterday I introduced the concept of linked files in Visual Studio solutions with a follow-up on my recommendation for configuring a custom dictionary to eliminate CA1704 code analysis warnings. Another practical application of linked files is what I refer to as "shared assembly info" -- referring to the assembly attributes that should be the same across all projects in the solution, such as AssemblyCompanyAttribute. To implement this, create a file in the solution folder named SharedAssemblyInfo.cs and then add a link in each project to SharedAssemblyInfo.cs. You can also move the linked SharedAssemblyInfo.cs into the Properties folder so that it sits side-by-side with the AssemblyInfo.cs that is specific to each project in the solution, as shown below. Figure 1: Linked SharedAssemblyInfo.cs files in a Visual Studio solution The AssemblyInfo.cs files typically have the following assembly attributes: AssemblyTitleAssemblyCultureGuid Here is a sample SharedAssemblyInfo.cs file:

Related: