Wednesday, December 3, 2008

Windows Forms Prevent Resize .Net

I was going crazy yesterday trying to figure out how to prevent my form window from being resized. It seemed like it should be a simple variable form.isResizable = False. But I couldn't find that anywhere. After some digging I figured it out. I had to set the border style.

Ex:
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.FixedSingle

That worked like a charm!

Monday, November 24, 2008

Using Visual Basic, get a selected Task

Use the ActiveSelection property to get all of the tasks that are selected.

Globals.[ProjectName].Application.ActiveSelection.Tasks will return the selected tasks.


For each t as MSProject.Task in ActiveSelection.Tasks
If not t is Nothing then
'do something
End IF
Next

Friday, November 21, 2008

Wufoo

http://wufoo.com/

I found this neat site today that uses javascript to embed form information into websites. I did something similar last year with a site called weemailer.com. Weemailer was supposed to act as an html form for people to fill out information on your website and have that information emailed to you. It works but wufoo looks a lot cooler. :)

Visual Studio Run Error: visual basic An error occurred while signing: Keyset does not exist

My visual studio project was compiling and running just fine, then today out of no where I got this weird error when I went to run my project:

Error 1 An error occurred while signing: Keyset does not exist [ProjectName]

I did a bunch of google searching and didn't find anything helpful. Then I found a post that talked about the projects security settings which led me to do some poking around. I found the "Signing" tab. There is a little button to Create Test Certificate. After I pressed that and reran the project the error went again.

Let Me Google That For You

Awesome website a coworker told me about the other day.

http://letmegooglethatforyou.com/?q=san+francisco+engagement+photography

Meebo Me - Add IM to your Website

Have you ever wondered how those websites do it where a "live help" person says "Hello, how may I help you today" as soon as you log into a site? Do you find them annoying or incredibly helpful? If you answered helpful maybe you'd be interested in adding one to your website:

http://www.meebome.com/

I've seen a bunch of realestate agents and other service type businesses where they are there to pull in clients by appearing "real" and "available". I tried it out for fun and it's really simple to install. Just login and throw some javascript on your site. You can even change the colors and your screen name.

Thursday, November 20, 2008

Nerdee Dog Names

So we're going to get a miniature dachshund and she is probably the cutest thing I've ever seen. We're having a hard time coming up with a name for her. Here are some potential nerdy dog names:

  • Java
  • Beaker
  • Host
  • Server
  • XML
  • SQL
  • J2EE
  • Beans
  • Blog
  • Blogger
  • Basic
  • Python
  • C
  • Zero
  • One
  • Binary
  • Patches (bug patch!)
  • Fix
  • Bug
  • Beta
  • 1.0

Mint.com

I found a neat site yesterday that probably has been around forever.... www.Mint.com. You sign in to all of your financial accounts and it merges them together to give you one easy view. It's pretty helpful. We just bought a house and have been keeping to a strict budget so this site looks like it'll be a good way to stay on track.

Renaming a MSProject File

Since we're on the subject of Microsoft VB programming... Here's how you can rename the activeProject:

Globals.[ProjectName].Application.FileSaveAs(newName)

Visual Basic Microsoft Project Focus on First Task

Here's another useful trick. If you're doing a lot of vb work modifying and adding tasks to an msproject file sometimes the page will scroll to the bottom of the list. If you have a bunch of tasks it can be annoying to use the scroll bar to go back to the beginning. So here's what I did to give focus to the very first task:

Globals.[ProjectName].Application.SelectRow(Row:=1, RowRelative:=False)

Visual Basic Microsoft Project Active Project Refresh

I'm doing some visual basic development and for the life of me I couldn't figure out why my Microsoft Project 2007 Gantt chart view wasn't refreshing to show the order of the predecessor tasks correctly. Playing about with Project I figured out I just needed to press F9 to "refresh". But I wanted to know how to do that in code. I did some digging and finally figured it out.

Here's what you do:

Globals.[ProjectName].Application.CalculateProject()

How to Transfer Domain Names using GoDaddy.com

I just found out how to transfer domain names using godaddy.com:

Steps:

  1. Get the new owners details (Full Name, Email, Address, phone, etc).
  2. Login to your GoDaddy.com account
  3. Click Domain Names > My Domain Name
  4. Click on the domain name you want to transfer.
  5. In Manage Domain Names click Change Accounts
  6. Fill in the New Registrant Name on the bottom

The new owner should then get an email to confirm the transfer. Pretty simple.