Fredrik Mörk

Sweden

fmork.net

Age: 42

Senior .NET Consultant in Sweden working for Webstep.

When I am not at work, I still do a fair share of programming, for the fun of it, when I am not spending time with my family, out biking or doing some photography.

Various internet traces:

1d
awarded Guru
Jan
21
awarded Nice Answer
Jan
21
awarded Enlightened
Dec
22
comment Can I place the mouse event handler on a separate thread?
@Vahid The problem is that you are trying to manipulate UI components from a non-UI-thread. Here is how to solve that: stackoverflow.com/a/872815/93623
Dec
6
comment 'System.OutOfMemoryException' was thrown when there is still plenty of memory free
@Neolisk Thanks :-) Added a (very) brief summary. Hope it fills the purpose.
Dec
6
revised 'System.OutOfMemoryException' was thrown when there is still plenty of memory free
added 379 characters in body
Nov
16
awarded visual-studio-2008
Oct
21
comment What is the difference between User Control, Custom Control and Component?
@NickAlexeev I haven't worked much in the winforms world since a few years back, but I believe that would be the way to go, yes.
Oct
20
awarded Great Answer
Oct
17
awarded Good Answer
Oct
5
comment Raise event thread safely - best practice
Thanks for sharing that observation, @rism! Corrected the text.
Sep
30
awarded Explainer
Sep
30
answered Is await with Task.Run (NonAsyncMethod()) any better?
Sep
30
comment Error in Copying File using C#
The problem is not that the directory does not exist, but that the File.Copy call does not have the target file name, but only the target directory.
Sep
30
comment Error in Copying File using C#
Actually it works just as well with forward slashes as with back slashes, the system figures that out.
Sep
30
answered Error in Copying File using C#
Sep
23
comment Overloading Console.ReadLine possible? (or any static class method)
@BenPretorius not sure, but I think that you can click the downvote arrow again to "toggle" it. If not, no worries :-)
Aug
23
comment Should enums in C# have their own file?
Yes @DebugErr, I agree with you. Since this answer was posted back in 2010 I have changed between various approaches and tend to go with one file per type, or declaring enums in the same file as the related class.
Jul
15
awarded Yearling
Jul
15
awarded Yearling
1 2 3 4 5