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

  • Home
  • SEARCH
  • 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 619299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:38:23+00:00 2026-05-13T18:38:23+00:00

I am creating my first Windows Forms application, to be deployed on Windows Mobile

  • 0

I am creating my first Windows Forms application, to be deployed on Windows Mobile and I am having some trouble designing a Tabbed Interface.

I had assumed that I could Create a TabControl, then Add some TabPages and then drag Controls on to each Tab Page in turn. This does not appear to be possible and most of the information I see on the web seems to suggest that the controls should be added dynamically at run-time.

Am I missing something obvious here or is this indeed correct?

If you do have to add the controls at runtime then how do people generally manage the design process. Do they create a Custom UserControl for each tab and then add that at runtime?

Design environment (C# Visual Studio 2005, .net 2.0)
Runtime environment (Windows Mobile 6.1)

Update 1

The actual steps taken within visual studio were as follows :-

  1. Select New Project -> SmartDevice -> Windows Mobile 6 Professional -> Device Application
  2. Added a TabControl to Form1. This automatically adds tabPage1 and tabPage2

Update 2

The solution to this is embarrassingly noobish. The TabControl puts the tabs at the bottom of the page, the first thing I was doing was resizing the tab control to a single line which was then hiding the TabPage control.

  • 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-13T18:38:23+00:00Added an answer on May 13, 2026 at 6:38 pm

    Currently i don’t use Windows Mobile, but i think it works quite the same.

    After adding a TabControl to your form you should take a look into the properties and search for TabPages. Here you can add and delete new TabPages to your Control and design it as you like in the designer.

    To your question about using UserControls on each TabPage i would definitely say Yes. It makes easier to separate between each page and what will happen on each one.

    Also at a last step i am going to move the needed code out of the Designer.cs into my own function (e.g. var tabControl = CreateTabControl() where all of my properties are set. Then i put all my UserControls into an

    private IEnumerable<Type> GetAllTypes()
    {
        yield return typeof(MyFirstControl);
        yield return typeof(MySecondControl);
    }
    

    and make an

    private void CreateTabPages(TabControl tabControl, IEnumerable<Type> types)
    {
        foreach(var type in types)
        {
            var control = Activator.CreateInstance(type);
            var tabPage = new TabPage();
            tabPage.Controls.Add(control);
            tabControl.TabPages.Add(tabPage);
        }
    }
    

    this will then be called by

    CreateTabPages(tabControl, GetAllTypes());
    

    With this approach i can easily add another Tab Page with a single line of code and design it in its own scope.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 343k
  • Answers 343k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer That is the default behaviour - are you sure your… May 14, 2026 at 5:31 am
  • Editorial Team
    Editorial Team added an answer Full screen is of course 1024x768 (iPad) / 480x320 (iPhone)… May 14, 2026 at 5:31 am
  • Editorial Team
    Editorial Team added an answer You can optionally specify the name of the action and… May 14, 2026 at 5:31 am

Related Questions

I have a windows form application which needs to be the TopMost. I've set
I am playing back audio in C# using the waveOut functions with the callback
Background I am trying to create a copy of a business object I have
I have set up a dialog with several tabs. One of these contains twenty
I am creating my first game ever using pygame and I've found that in

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.