Three method calls that make all the difference

Iโ€™ve been coding like crazy the last few days ๐Ÿ™‚ on an astronomy-related application. I had to remember lots of trigonometry from 15 years ago ๐Ÿ™

The application is supposed to be a tool for discovering white dwarfs in our galaxy utilising information from astronomical archives (e.g. SDSS, SuperCOSMOS) through the use of Web Services. Itโ€™s been interesting so far. I had to deal with asynchrony issues when interacting with services and when updating the GUI. Itโ€™s been fun.

Originally, I used ScPl for drawing the main part of the GUI which deals with a representation of our galaxy and the distribution of stars but due to the large number of plots, the user experience was compromised due to performance issues with the library. So, I decided to do some GDI+ programming myself for the main part of the GUI and only use ScPl (which is fantastic btw) for what it was meant for: the scientific graphs I will have to display later on.

I started drawing on my GUI but I was experiencing flickering during resizing. Then, I discovered these three calls that make a huge difference. Way cool.

SetStyle(ControlStyles.UserPaint, true);

SetStyle(ControlStyles.AllPaintingInWmPaint, true);

SetStyle(ControlStyles.DoubleBuffer, true);

Tools I am usingโ€ฆ Having extreme fun with .NET 2.0 and VS.NET 2005 Beta 1 and a couple of astronomy and trigonometry books.

Today I am having sort of a break (girlfriend is back in the evening so have to clean flat etc :-).

Recent Posts

CVOYA Graph v1.0 is out

Last week, I wrote about the evolution of the CVOYA Graph. After a lot of…

2 weeks ago

CVOYA Graph – Evolution

Last year,ย I released the "Graph Model" library for .NET as an open source project. It…

2 weeks ago

The boat is in the water: Spring Voyage is open source

Today I'm pushing Spring Voyage out of the harbor. You can track its journey on…

2 months ago

My Coding Agent Needed Its Own GitHub Identity

In my last post, I wrote that "the typing of code was parallelized and delegated.…

3 months ago

Rebuilding My AI Team in Twelve Days โ€” And Why

In February, I wrote about the small team I'd stood up instead of hiring humans:…

3 months ago

How I Built My Own Team of AI Developers

Assembling a dream team without a single hire I've been making great progress on CVOYA's…

5 months ago