| Neil Bamber's profileFriendMap - Made in Expr...BlogLists | Help |
|
8/4/2006 More Bug Fixing.So after some more bug fixing I’m nearly there. There isn’t much to blog about because what I’m doing is revising code I’ve talked about before, though I did figure out something handy that others may find useful.
Say you have a form were the user clicks the create button to submit the details on the form. The create button is the form’s AcceptButton property. If you check the details and find the user has entered something incorrectly, or not entered anything at all how can you prevent the form from closing? After thinking about it for a while (and now I’m writing this I probably could have used ErrorProviders and btnCreate.Enable = false, but oh well) the solution I came up with was to have the check function set a property called CloseForm. If the check function returns false the form still tries to exit, however you can fire the FormClosing event and if the CloseForm property is set to false, set e.Cancel = true; in the FormClosing event. This stopped my cancel button from working however, to fix that I simply set CloseForm to true when the cancel button is clicked, simple.
I also tried to clean up the drawing of the FriendMap so lines didn’t visibly intersect circles (so the circles are drawn on top). It looks a little better though it looks a little more confusing too since you notice a friend has 4 lines going into them. To combat this I tried drawing lines from the centre of the circle rather then the right edge, however that didn’t help much so I reduced the line thickness so lines were easier to trace.
Over tonight and tomorrow I’ll look at figuring out how I can distribute my application and get everything ready for submission for Sunday. I’ll also have a few rounds of Street Fighter II over Xbox Live. It seems that there are more good games coming out on Xbox Live Arcade than there are in stores. TrackbacksThe trackback URL for this entry is: http://madeinexpress9.spaces.live.com/blog/cns!FCF52866CE8B44E6!184.trak Weblogs that reference this entry
|
|
|