Click here to Skip to main content

Articles by tonyt (Article: 1, Tip/Tricks: 4)

Article: 1, Tip/Tricks: 4

RSS Feed

Average article rating: 4.76

Bugs & Workarounds

Workaround for flicker/flashing when programmatically activating MDI child forms
Posted: 8 Jul 2007   Updated: 8 Jul 2007   Views: 54,762   Rating: 4.76/5    Votes: 15   Popularity: 5.60
Licence: The Code Project Open License (CPOL)      Bookmarked: 30   Downloaded: 0
This short class demonstrates how to activate an MDI child form without the fireworks that you see if you just set the ActiveMdiChild property of the MDI parent form.
No blogs have been submitted.
No video articles have been posted.

Average tips rating: 4.22

Dialogs and Windows

How to prevent Form from loosing focus (in the application) [Tip/Trick]
Posted: 25 May 2010   Updated: 25 May 2010   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Form f = new Form(); f.Shown += delegate(object s, EventArgs e) { MessageBox.Show("Here you go!"); } f.ShowDialog();

Miscellaneous

Prevent code executing at Design Time in Visual Studio for Winforms Apps [Tip/Trick]
Posted: 20 Feb 2010   Updated: 20 Feb 2010   Rating: 4.67/5    Votes: 3   Popularity: 2.15
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Either method is good for testing if you are in the designer, but another problem aside from preventing code execution, is preventing code from being jitted in the Designer. For example, you may reference assemblies or components that are dependent on native code, which cannot be loaded into any...

C#

Get CustomAttributes the easy way.... [Tip/Trick]
Posted: 15 Apr 2010   Updated: 15 Apr 2010   Rating: 3.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
How about typing the 'this' parameter as ICustomAttributeProvider ?Also, ToList(...).Where(...) is bad Linq usage, becauseToList() triggers enumeration of the sequence. Try Where(...).ToList() instead.And the ToList() in 'ToList().FirstOrDefault(...)' is entirely pointless.

Programming Tips

Following object inheritance [Tip/Trick]
Posted: 28 Jul 2010   Updated: 31 Jul 2010   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
namespace System{ public static class SystemExtensionMethods { public static string GetAncestry( this object target ) { return string.Join( " -> ", target.GetTypes().Reverse().Select( t => FormatName( t ) ).ToArray() ); } public...

tonyt



United States United States

Member



Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 27 May 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid