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

C#

 
Question[Solved]Getting a list of installed fonts. [modified] Pin
Jordanwb13-Aug-08 9:29
Jordanwb13-Aug-08 9:29 
AnswerRe: Getting a list of installed fonts. Pin
Manas Bhardwaj13-Aug-08 9:46
professionalManas Bhardwaj13-Aug-08 9:46 
GeneralRe: Getting a list of installed fonts. Pin
Jordanwb13-Aug-08 9:48
Jordanwb13-Aug-08 9:48 
QuestionAccess Mainframe From C# Pin
Kevin Marois13-Aug-08 8:47
professionalKevin Marois13-Aug-08 8:47 
AnswerRe: Access Mainframe From C# Pin
User 665813-Aug-08 10:27
User 665813-Aug-08 10:27 
GeneralRe: Access Mainframe From C# Pin
Kevin Marois13-Aug-08 10:39
professionalKevin Marois13-Aug-08 10:39 
GeneralRe: Access Mainframe From C# Pin
User 665814-Aug-08 10:53
User 665814-Aug-08 10:53 
QuestionRemoving flash during resize Pin
AndrusM13-Aug-08 7:50
AndrusM13-Aug-08 7:50 
If window is resized, listbox flashes.
how to remove flash during resize ?


using System;
using System.Windows.Forms;
using System.Collections.Generic;
using System.Drawing;

public class Test
{
    static void Main()
    {
        Application.Run(new ReportDialogForm());
    }
}

class ReportDialogForm : Form
{

    public ReportDialogForm()
    {
        tabControl1 = new TabControl();
        tabPage1 = new TabPage();
        reportListBox = new ListBox();
        tabControl1.Anchor = ((AnchorStyles)((((AnchorStyles.Top | AnchorStyles.Bottom)
                                | AnchorStyles.Left)
                                | AnchorStyles.Right)));
        tabControl1.Controls.Add(tabPage1);
        tabControl1.Location = new Point(0, 0);
        tabControl1.Padding = new Point(0, 0);
        tabControl1.SelectedIndex = 0;
        tabControl1.Size = new Size(591, 296);
        tabControl1.TabIndex = 0;
        tabPage1.Controls.Add(reportListBox);
        tabPage1.Location = new Point(4, 29);
        tabPage1.Margin = new Padding(0);
        tabPage1.Size = new Size(583, 263);
        tabPage1.TabIndex = 0;
        tabPage1.Layout += new LayoutEventHandler(tabPage1_Layout);
        reportListBox.Anchor = AnchorStyles.None;
        reportListBox.Size = new Size(287, 384);
        reportListBox.TabIndex = 1000;
        ClientSize = new Size(588, 292);
        Controls.Add(tabControl1);

        for (int i = 0; i < 100; i++)
            reportListBox.Items.Add(  "MMMMMMMMMMMMMMMMMMMMMM");

        Load += new EventHandler(ReportDialogForm_Load);
    }

    void ReportDialogForm_Load(object sender, EventArgs e)
    {
        StartPosition = FormStartPosition.Manual;
        Location = new Point(10, 10);
        ClientSize = new Size(400, 400);
    }



    void tabPage1_Layout(object sender, LayoutEventArgs e)
    {
        SuspendLayout();
        int height = 100;
        reportListBox.Top = height;
        reportListBox.Height = tabPage1.Height - height;
        reportListBox.Width = tabPage1.Width / 2;
        reportListBox.Left = 0;
        ResumeLayout();
    }

    TabControl tabControl1;
    TabPage tabPage1;
    ListBox reportListBox;
}


Andrus

AnswerRe: Removing flash during resize Pin
Jordanwb13-Aug-08 9:30
Jordanwb13-Aug-08 9:30 
GeneralRe: Removing flash during resize Pin
AndrusM13-Aug-08 23:47
AndrusM13-Aug-08 23:47 
QuestionDevelopment Strategy Pin
BlitzPackage13-Aug-08 6:44
BlitzPackage13-Aug-08 6:44 
AnswerRe: Development Strategy Pin
PIEBALDconsult13-Aug-08 7:57
mvePIEBALDconsult13-Aug-08 7:57 
AnswerRe: Development Strategy Pin
Kevin Marois13-Aug-08 8:02
professionalKevin Marois13-Aug-08 8:02 
AnswerRe: Development Strategy Pin
Manas Bhardwaj13-Aug-08 8:05
professionalManas Bhardwaj13-Aug-08 8:05 
AnswerRe: Development Strategy Pin
BlitzPackage13-Aug-08 8:53
BlitzPackage13-Aug-08 8:53 
GeneralRe: Development Strategy Pin
PIEBALDconsult13-Aug-08 9:37
mvePIEBALDconsult13-Aug-08 9:37 
QuestionHow do I have a class globally accessible throughout an entire project/application Pin
tkrn13-Aug-08 6:21
tkrn13-Aug-08 6:21 
AnswerRe: How do I have a class globally accessible throughout an entire project/application Pin
BlitzPackage13-Aug-08 6:40
BlitzPackage13-Aug-08 6:40 
AnswerRe: How do I have a class globally accessible throughout an entire project/application Pin
Mark Salsbery13-Aug-08 6:51
Mark Salsbery13-Aug-08 6:51 
GeneralRe: How do I have a class globally accessible throughout an entire project/application Pin
BlitzPackage13-Aug-08 8:30
BlitzPackage13-Aug-08 8:30 
GeneralRe: How do I have a class globally accessible throughout an entire project/application Pin
Mark Salsbery13-Aug-08 8:39
Mark Salsbery13-Aug-08 8:39 
GeneralRe: How do I have a class globally accessible throughout an entire project/application Pin
BlitzPackage13-Aug-08 8:54
BlitzPackage13-Aug-08 8:54 
GeneralRe: How do I have a class globally accessible throughout an entire project/application Pin
Mark Salsbery13-Aug-08 9:05
Mark Salsbery13-Aug-08 9:05 
QuestionWhat is the difference between Excel2003 Addin and Excel2003 Workbook project in c#2008 Pin
Mogaambo13-Aug-08 5:20
Mogaambo13-Aug-08 5:20 
AnswerRe: What is the difference between Excel2003 Addin and Excel2003 Workbook project in c#2008 Pin
Manas Bhardwaj13-Aug-08 5:39
professionalManas Bhardwaj13-Aug-08 5:39 

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.