Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 796563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:39:35+00:00 2026-05-14T22:39:35+00:00

I am creating an winform application that will run on a tablet PC. One

  • 0

I am creating an winform application that will run on a tablet PC. One form for this app will have a listview control.

I would like to allow the user to change the font size based on preference (ie did they remember their glasses today). A few ways that I can think of would be a numeric-up-down or +/- button controls. Both of these ways require screen real estate that is very limited.

Is there a control or technique that would allow font size changes with a hidden-when-not-used control?

UPDATE 1:

Based on suggestion from @GenericTeaType:

At the class level:

Stopwatch sw = new Stopwatch();

On the listview control:

private void lst1_MouseDown(object sender, MouseEventArgs e)
    {
        //start stopwatch
        sw.Reset();
        sw.Start();
    }

private void lst1_MouseUp(object sender, MouseEventArgs e)
    {
        //stop stopwatch
        sw.Stop();
        //how long did stopwatch run for
        TimeSpan elapsedTime = sw.Elapsed;
        //show font change form if time exceeds 3 seconds
            if (elapsedTime.Seconds >= 3)
            {
                //show form - pass in current listview font size
                frmFontSizeChange ffsc = new frmFontSizeChange(slv.ReleaseFontSize);
                ffsc.ShowDialog();

                //refresh schedule with new font size
                populate_lst1();                    
            }
       }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T22:39:36+00:00Added an answer on May 14, 2026 at 10:39 pm

    You could just show/hide a control for a certain period of time on the form MouseClick event.

    For example:

    public Form1()
    {
        InitializeComponent();
        Timer1.Tick += new EventHandler(Timer1_Tick);
    }
    
    Timer Timer1;
    
    private void Form1_MouseClick(object sender, MouseEventArgs e)
    {
        // Will need handling to ensure it's not already displaying, etc... then:
        FontSizeControl.Show();
        Timer1.Enabled = true;
    }
    
    private void FontSizeControl_FontSizeChanged(object sender, EventArgs e)
    {
    
        // Change the font size
        ...
    
        // Reset the timer
        Timer1.Enabled = false;
        Timer1.Enabled = true;
    
    }
    
    void Timer1_Tick(object sender, EventArgs e)
    {
        FontSizeControl.Hide();
        Timer1.Enabled = false;
    }
    

    What this would basically do is to show the FontSize changing control that you’ve made (or will make) when the user taps the screen. If they then don’t touch the control it’ll change when the Timer ticks. Or, it will go away after the user has stopped tapping the +/- for x amount of milliseconds.

    UPDATE for showing after 3 seconds.

    public Form1()
    {
        InitializeComponent();
        Timer2.Tick += new EventHandler(Timer2_Tick);
        Timer2.Interval = 3000;
    }
    
    Timer Timer2;
    
    private void Form1_MouseDown(object sender, MouseEventArgs e)
    {
        Timer2.Enabled = true;
    }
    
    private void Form1_MouseUp(object sender, MouseEventArgs e)
    {
        Timer2.Enabled = false;
    }
    
    void Timer2_Tick(object sender, EventArgs e)
    {
        FontSizeControl.Show();
        Timer2.Enabled = false;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating desktop application in winform that will use Sqlite Database. So I
I am creating a winform application in c#.and using sql database. I have one
I am creating a WinForm application that basically generates Math worksheets. I know there
I have a c# WinForm application that I need to generate TabPages at runtime.
I have a winform application that handles some data entry and billing. I'd like
I am creating application in Winform which among other things will also need to
Hi, I have a winform application that is hosting a WCF Service(NamedPipes). When reciving
I am creating application in which I would have database which users can´t edit.
I am creating a small modal form that is used in Winforms application. It
I am creating an application in .NET using winforms. That application must draw on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.