Question : time tracking with microsoft project

I need to if, and if so how, does Microsoft Project 2007 or 2010 do time tracking?

Answer : time tracking with microsoft project


the code that worked for me for auto-sizing is below...I added a Label control with AutoSize = false with some text with font Arial 16 regular with border = fixedsingle. Then in a button click handler i had the below code....when button clicked

two things to note: i used label1.CreateGraphics() and label1.ClientSize (if it is working fine with Size, then better to use size)
This sample is from => http://msdn.microsoft.com/en-us/library/system.windows.forms.control.creategraphics.aspx
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
private void button1_Click(object sender, EventArgs e)
        {
            // Create a Graphics object for the Control.
            Graphics g = label1.CreateGraphics();

            Font nf = new Font(label1.Font, FontStyle.Bold);

            // Get the Size needed to accommodate the formatted Text.
            Size preferredSize = g.MeasureString(
               label1.Text, nf).ToSize();

            label1.Font = nf;
                        
            label1.ClientSize = new Size(preferredSize.Width,preferredSize.Height); // you could add some padding space to the width and height here

            // Clean up the Graphics object.
            g.Dispose();
        }
Random Solutions  
 
programming4us programming4us