Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
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 
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 
TRy not to use so many controls since they consume a lot of resources.
To test the true performance use Release mode and not DEBUG mode.
There are plenty of articles discussing custom controls and overriding OnPaint.
Here is a small sample:

///
/// A custom control
///

public class MyUserControl : UserControl
{

#region Constructors and Initializers

///
/// Initializes the <c>ChartControl.
///

public MyUserControl()
{

SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.DoubleBuffer, true);
SetStyle(ControlStyles.ResizeRedraw, true);
SetStyle(ControlStyles.Opaque, true);
UpdateStyles();
InitializeComponent();
}



#region Event Overrides

protected override void OnPaintBackground(System.Windows.Forms.PaintEventArgs pevent)
{
//Do Nothing
}

protected override void OnPaint(PaintEventArgs args)
{
//Paint logic (first call graphics.Clear(BackgoundColor)
// Start drawing
}


#endregion
}

Natza Mitzi

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 
AnswerRe: change date format using c# Pin
Xmen Real 7-Mar-09 4:18
professional Xmen Real 7-Mar-09 4:18 
GeneralRe: change date format using c# Pin
Abdul Rahman Hamidy7-Mar-09 18:28
Abdul Rahman Hamidy7-Mar-09 18:28 

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.