Saturday, 22 April 2017
Main Menu
Home
Blog
News
Software
Forums
Music
Email
Web Links
Blog Links
Musical Links
Nerdery Links
Other Neato Links
Syndicate
 
Custom docking toolbar for Windows 7, because, you know... Microsoft removed them.
User Rating: / 3
Written by WATYF on Friday, 23 September 2011 (5735 hits)
Category: .NET Programming

Well... it's been about 800 years since I last posted something on this blog. There was a blog post that has been sitting in my queue (mostly finished but not published) since December of 2009. I finally threw that up today just for kicks (not that there's anything useful in the article Tongue out). I don't exactly take the time to write much any more... I've closed down the recording studio, so I don't even have the "musical" side of things going any more to post about... and lately I just haven't run into any programming problems that are interesting enough to post a solution for. But Microsoft decided to really, really piss me off again, thus awakening me from my slumber, so I've decided to come out of retirement to offer this (possible) solution for all you poor souls out there who have noticed that...

...WINDOWS DOESN'T HAVE DOCKING TOOLBARS ANYMORE??!?!?1!?eleven!?

W.

T.

F?

With the advent of Windows 7, I no longer have an easy way to open all my apps... and what does a nerd do when his OS doesn't have a built in way to do something? That's right...

...he writes his own. Cool

Read more...
 
If VistaDB was a woman... we'd be going through a messy divorce.
User Rating: / 3
Written by WATYF on Friday, 04 December 2009 (4780 hits)
Category: .NET Programming

Well... it's that time again. Something happened that was frustrating (or informative) enough for me to write about it on a website where no one will read about it. Been a while since the last one. Here's to hoping that I still remember all the buttons I gotta push to make this thing work....

So anyway... many moons ago, I was searching for an embedded database to function as the backend for TaskRunner. I went though much turmoil and gnashing of teeth. Around that time I wrote my infamous (whuh?) article titled Why do all embedded databases suck? Not long after that, I found a solution... VistaDB. They were having a "get the word out" promo that offered a free license for VistaDB to anyone who blogged about it. So I tried VistaDB... it solved my problems... I wrote the blog... I got it for free... I was ecstatic. So I wrote another article called If VistaDB was a woman... I'd marry it.

But oh how times have changed....

Read more...
 
Round a DateTimePicker to 15 minute increments
User Rating: / 1
Written by WATYF on Friday, 23 January 2009 (12657 hits)
Category: .NET Programming

This should be a quick one. Here's the problem... I've got a DateTimePicker (actually, a very large amount of them) on a form, and I want to modify those DateTimePickers so that when a user highlights the "minute" portion and clicks up or down on the spinner, the minutes go up or down in 15 minute increments (instead of one minute increments). Now, the biggest challenge to this is that the separate controls of the DateTimePicker (up, down buttons, formatted textbox, etc) are not exposed in any way (thanks Microsoft!), so I have no way of figuring out if the user clicked up, or down, or entered the minute manually. Because of this, I can't (at least, I personally haven't figured out how to) create a "perfect" solution to this problem. So I settled for the next best thing... a solution that accounts for 90% of the time and that my users will be happy with...

Read more...
 
Formatting databound textboxes...
User Rating: / 0
Written by WATYF on Thursday, 25 September 2008 (10515 hits)
Category: .NET Programming

Whenever I have trouble finding an example on the internet of how to do something in .NET, I usually throw the solution up here so that all of the other poor, unfortunate souls (like myself) have a little better chance of finding it in the future.

Today's solution is a quick one. It involves applying a format to a databound textbox. I recently delved into the wonderful would of Visual Studio Data Binding. I have always done all of my db calls manually in my code. But on this project, I was looking to basically replace an app that I wrote years ago in Access (which consisted of several forms bound to database tables), and the forms had a ridiculously large amount of fields on them (in the hundreds, all told)... so I didn't feel like coding all that myself.

As a result, I started learning how to use the "wizards" in VS.NET to add connections to a database. I created a Data Connection, a Data Source, a DataSet, dragged some controls on to my form (which created a BindingSource and TableAdapter)... and voila... my form is connected to a database.

But this simplicity is not without its problems....

Read more...
 
Get a worker thread to report an exception back to the main or GUI thread that created it.
User Rating: / 0
Written by WATYF on Thursday, 20 December 2007 (175846 hits)
Category: .NET Programming

OK... here's the problem. I'm lazy. But aren't all programmers? I mean... if it wasn't for laziness, we wouldn't have jobs. The whole point of programming is to find something that people don't want to have to do, and write code that will do it for them so they can keep being lazy. Am I right? Tongue out

So when I run into an obstacle while programming, I like to find the simplest way to get around it. If the solutions that are already out there on the internet are cumbersome and complicated, then chances are, I'm not gonna use 'em. And that was the case when I ran into this little problem.

The thing is... most of my applications start new threads. Who wants to wait around staring at a frozen Windows form while something gets processed in the background? But at the same time, you can't just kick off a thread and hope that the user doesn't try to do something else while the thread is running. You have to control the work flow... keep the user in line. So you display some kind of "Please Wait..." dialog and use it to show them the progress of what's going on in the background. But what happens if something goes wrong in the background thread? You can handle the exception in that thread, but how will the main/GUI thread (the one that created the new thread) know that an exception occurred?

....I know how.

Read more...
 
<< Start < Prev 1 2 Next > End >>

Results 1 - 9 of 18

 

© 2017 Musical Nerdery
Joomla! is Free Software released under the GNU/GPL License.