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 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

Related Questions

I'm creating my first class, mainly guided by Overland's C++ Without Fear. I've made
I'm creating my first real binary parser (a tiff reader) and have a question
I often refactor code first by creating an inner class inside the class I'm
I'm creating a multi-tenancy web site which hosts pages for clients. The first segment
When loading a page for the first time (!IsPostback), I am creating a button
When creating a web application, and lets say you have a User object denoting
Creating a patch is very easy in SubVersion, With Tortoise, you right-click and select
Creating hashes of hashes in Ruby allows for convenient two (or more) dimensional lookups.
Creating Traversals for Binary Search Tree with Recursion. void inOrder(void (*inOrderPtr)(T&)) { if(this->left !=
Creating an XPathDocument with referenced DTD sometimes throws a web exception. Why?

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.