When I create a new group using the web interface, I'm able to use web.Groups["name of group"] to find the group.
When I create a group programatically, I use web.SiteGroups.Add("name of group", etc). But then in my code, web.Groups["name of group"] can't find the group I just created. web.SiteGroups["name of group"] does though.
My questions are:
Why is their a difference when you create the group using the web interface and when you use code to do it?
Should I always be using SiteGroups to find my groups?