Two questions concerning GUI development in C#

Question 1:
Is it not possible to put a frame around a group of objects in C# NETCF 2.0. There are 3 containers available: pointer, panel, tabcontrol. Pointer produces nothing, tabcontrol produces more than a frame, panel has a dashed frame in VS2005 but not in the target system. There doesn't seem to be a border style option amongst the properties.

Question 2:
Is it not possible to get a combobox to have one item selected from the beginning. ("Selected Item") I want it to show:
Language
German
French
Swedish
English

where the Language Item has no function but the other ones have. Now there's a white empty space visible when the page first loads.

/Lars



Answer this question

Two questions concerning GUI development in C#

  • Meg!

    Hi Lars

    To Question 1:
    The easiest solution is to add a Panel container control to the form. Handle the panel's paint event to draw your custom border.

    To Question 2:
    You'll have to set the SelectedIndex property a valid value other than -1. Add this call at the end of your form constructor (just after the InitializeComponents call)

    Hope this helps
    Michael



  • Two questions concerning GUI development in C#