Click here to Skip to main content
15,898,373 members
Home / Discussions / C#
   

C#

 
GeneralRe: WM5.0 Screen Capture - gif format Pin
Handheld Programmer6-May-06 6:29
Handheld Programmer6-May-06 6:29 
AnswerRe: WM5.0 Screen Capture - gif format Pin
Guffa6-May-06 11:25
Guffa6-May-06 11:25 
GeneralRe: WM5.0 Screen Capture - gif format Pin
Handheld Programmer6-May-06 14:41
Handheld Programmer6-May-06 14:41 
AnswerRe: WM5.0 Screen Capture - gif format Pin
Guffa8-May-06 4:36
Guffa8-May-06 4:36 
GeneralRe: WM5.0 Screen Capture - gif format Pin
Handheld Programmer9-May-06 16:56
Handheld Programmer9-May-06 16:56 
AnswerRe: WM5.0 Screen Capture - gif format Pin
Phil C5-May-06 15:00
Phil C5-May-06 15:00 
GeneralRe: WM5.0 Screen Capture - gif format Pin
Handheld Programmer5-May-06 16:03
Handheld Programmer5-May-06 16:03 
QuestionMy User Control keeps resetting properties on Rebuild Pin
Martiankeeper5-May-06 3:26
Martiankeeper5-May-06 3:26 
Hey,

I have a usercontrol which I have written as a custom button control.

However, everytime my project is rebuilt, the properties for my UserControl are reset to their default values:

<br />
using System.Drawing;<br />
using System.Drawing.Drawing2D;<br />
using System.Data;<br />
using System.Windows.Forms;<br />
<br />
namespace MyControl<br />
{<br />
	public class MyControl: System.Windows.Forms.UserControl<br />
	{<br />
		private Font _font;<br />
                <br />
                public MyControl()<br />
		{<br />
			// This call is required by the Windows.Forms Form Designer.<br />
			InitializeComponent();<br />
<br />
			// TODO: Add any initialization after the InitializeComponent call<br />
			_font = new Font("Arial", 12);<br />
		}<br />
<br />
		public override Font Font<br />
		{<br />
		        get<br />
			{ <br />
				return _font; <br />
			}<br />
			set<br />
			{ <br />
                               _font = value;<br />
			}<br />
		}<br />
	}<br />
}		<br />


Any ideas?

I change the Font in design time, but everytime I rebuild my project, the Font is reset to Arial, 10.

help

MK


"imagine how stupid the average person is ...
now imagine that half the planet is more stupid than that!"
AnswerRe: My User Control keeps resetting properties on Rebuild Pin
Josh Smith5-May-06 3:55
Josh Smith5-May-06 3:55 
Questionis it possible to edit the dll files Pin
chakkara20035-May-06 2:35
chakkara20035-May-06 2:35 
AnswerRe: is it possible to edit the dll files Pin
leppie5-May-06 2:43
leppie5-May-06 2:43 
GeneralRe: is it possible to edit the dll files Pin
chakkara20035-May-06 2:59
chakkara20035-May-06 2:59 
GeneralRe: is it possible to edit the dll files Pin
chakkara20035-May-06 3:08
chakkara20035-May-06 3:08 
QuestionDatabinding Problem Pin
malikjhangirahmed@hotmail.com5-May-06 2:19
malikjhangirahmed@hotmail.com5-May-06 2:19 
QuestionBrowser Application using c#.net Pin
ranandbe5-May-06 2:00
ranandbe5-May-06 2:00 
AnswerRe: Browser Application using c#.net Pin
Josh Smith5-May-06 3:48
Josh Smith5-May-06 3:48 
GeneralRe: Browser Application using c#.net Pin
ranandbe8-May-06 21:18
ranandbe8-May-06 21:18 
QuestionDraw curve Pin
amjadamq5-May-06 1:51
amjadamq5-May-06 1:51 
AnswerRe: Draw curve Pin
Wjousts5-May-06 3:07
Wjousts5-May-06 3:07 
AnswerRe: Draw curve Pin
Thomas Stockwell5-May-06 14:34
professionalThomas Stockwell5-May-06 14:34 
QuestionPlay a sound while the app still runs Pin
QzRz5-May-06 1:42
QzRz5-May-06 1:42 
AnswerRe: Play a sound while the app still runs Pin
Ravi Bhavnani5-May-06 2:17
professionalRavi Bhavnani5-May-06 2:17 
AnswerRe: Play a sound while the app still runs Pin
S. Senthil Kumar5-May-06 3:18
S. Senthil Kumar5-May-06 3:18 
QuestionPersisting data in the app Pin
Dinuj Nath5-May-06 1:31
Dinuj Nath5-May-06 1:31 
AnswerRe: Persisting data in the app Pin
S. Senthil Kumar5-May-06 3:20
S. Senthil Kumar5-May-06 3:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.