Click here to Skip to main content
15,884,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: Color of label Pin
mrithula88-Mar-09 6:58
mrithula88-Mar-09 6:58 
AnswerRe: Color of label Pin
Luc Pattyn8-Mar-09 9:50
sitebuilderLuc Pattyn8-Mar-09 9:50 
QuestionInstalling application that queries FoxPro tables Pin
dptalt7-Mar-09 5:12
dptalt7-Mar-09 5:12 
QuestionHow to get the .exe file run after coying from a location to another location Pin
tyrone01097-Mar-09 2:52
tyrone01097-Mar-09 2:52 
AnswerRe: How to get the .exe file run after coying from a location to another location Pin
DaveyM697-Mar-09 3:08
professionalDaveyM697-Mar-09 3:08 
AnswerRe: How to get the .exe file run after coying from a location to another location Pin
sohighthesky8-Mar-09 5:08
sohighthesky8-Mar-09 5:08 
QuestionGUI Problem Pin
anishkannan7-Mar-09 2:13
anishkannan7-Mar-09 2:13 
AnswerRe: GUI Problem Pin
DaveyM697-Mar-09 2:28
professionalDaveyM697-Mar-09 2:28 
Create a Control and do your own drawing instead of using 168 labels!

If you've never created one before it's pretty easy. The code below will simply draw the control's Text at it's point 0, 0 using it's ForeColor and Font properties - and sets the default size for the control to 100, 100.

You can use this as a base to get started.
using System.Drawing;
using System.Windows.Forms;

public class ClockGrid : Control
{
    public ClockGrid()
    {
        // Set default size here
        Size = new Size(100, 100);
    }

    protected override void OnPaint(PaintEventArgs e)
    {
        Point textPoint = new Point(0,0);
        using (Brush brush = new SolidBrush(ForeColor))
        {
            e.Graphics.DrawString(Text, Font, brush, textPoint);
        }
        base.OnPaint(e);
    }
}


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

AnswerRe: GUI Problem Pin
ABitSmart7-Mar-09 3:28
ABitSmart7-Mar-09 3:28 
AnswerRe: GUI Problem Pin
Natza Mitzi8-Mar-09 9:58
Natza Mitzi8-Mar-09 9:58 
QuestionMultiple Record Insert Pin
shafiullah1237-Mar-09 1:19
shafiullah1237-Mar-09 1:19 
AnswerRe: Multiple Record Insert Pin
fly9047-Mar-09 8:23
fly9047-Mar-09 8:23 
QuestionChanging size of Array at Runtime Pin
nagendrathecoder7-Mar-09 1:11
nagendrathecoder7-Mar-09 1:11 
AnswerRe: Changing size of Array at Runtime Pin
Aghosh Babu7-Mar-09 1:19
Aghosh Babu7-Mar-09 1:19 
AnswerRe: Changing size of Array at Runtime Pin
nagendrathecoder7-Mar-09 1:24
nagendrathecoder7-Mar-09 1:24 
GeneralRe: Changing size of Array at Runtime Pin
Aghosh Babu7-Mar-09 1:30
Aghosh Babu7-Mar-09 1:30 
GeneralRe: Changing size of Array at Runtime Pin
nagendrathecoder7-Mar-09 1:34
nagendrathecoder7-Mar-09 1:34 
AnswerRe: Changing size of Array at Runtime Pin
Luc Pattyn7-Mar-09 1:42
sitebuilderLuc Pattyn7-Mar-09 1:42 
GeneralRe: Changing size of Array at Runtime Pin
harold aptroot7-Mar-09 3:21
harold aptroot7-Mar-09 3:21 
AnswerRe: Changing size of Array at Runtime Pin
Luc Pattyn7-Mar-09 3:38
sitebuilderLuc Pattyn7-Mar-09 3:38 
QuestionHow to save application settings in .net C# CF? Pin
Aghosh Babu7-Mar-09 1:01
Aghosh Babu7-Mar-09 1:01 
AnswerRe: How to save application settings in .net C# CF? Pin
Natza Mitzi8-Mar-09 10:14
Natza Mitzi8-Mar-09 10:14 
GeneralRe: How to save application settings in .net C# CF? Pin
Aghosh Babu8-Mar-09 18:26
Aghosh Babu8-Mar-09 18:26 
GeneralRe: How to save application settings in .net C# CF? Pin
Natza Mitzi8-Mar-09 22:48
Natza Mitzi8-Mar-09 22:48 
Questionchange date format using c# Pin
Abdul Rahman Hamidy7-Mar-09 0:58
Abdul Rahman Hamidy7-Mar-09 0:58 

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.