Click here to Skip to main content
15,917,709 members
Home / Discussions / C#
   

C#

 
AnswerRe: Why cannot delegate set the form control? Pin
Luc Pattyn17-Jun-10 8:17
sitebuilderLuc Pattyn17-Jun-10 8:17 
AnswerRe: Why cannot delegate set the form control? Pin
Adam R Harris17-Jun-10 9:07
Adam R Harris17-Jun-10 9:07 
QuestionPInvoke for DirectoryInfo Class Pin
CodingDaddy17-Jun-10 7:12
CodingDaddy17-Jun-10 7:12 
AnswerRe: PInvoke for DirectoryInfo Class Pin
CodingDaddy18-Jun-10 4:03
CodingDaddy18-Jun-10 4:03 
QuestionHow to add License Functionality in Dot Net Assembly. Pin
codeproject_Tarun17-Jun-10 5:44
codeproject_Tarun17-Jun-10 5:44 
AnswerRe: How to add License Functionality in Dot Net Assembly. Pin
Ennis Ray Lynch, Jr.17-Jun-10 5:49
Ennis Ray Lynch, Jr.17-Jun-10 5:49 
GeneralRe: How to add License Functionality in Dot Net Assembly. Pin
codeproject_Tarun17-Jun-10 23:51
codeproject_Tarun17-Jun-10 23:51 
QuestionGroupBox Set To Back Pin
Endien17-Jun-10 5:36
Endien17-Jun-10 5:36 
Hi all, please take a look at the screenshot below :

http://i.imagehost.org/0954/picture1_6.jpg

Sorry, the red line is for privacy.

As you can see, the groupBox is "above" the grid.
How to set the groupBox so the grid is above it?

I had tried bringToFront from the grid but failed.

Please take a look at my code below :

private void InitializeTab()
        {
            int intJmlChannel = Convert.ToInt32(channel.DefaultPersister.CountChannel());
            intChannelth = 1;

            myTabs = new TabPage[intJmlChannel];
            GroupBox[] myGroupBox = new GroupBox[intJmlChannel];
            Label[] myLabelMsisdn = new Label[intJmlChannel];
            Label[] myLabelPort = new Label[intJmlChannel];
            
            List<channel> listChannel = channel.DefaultPersister.ListAll().ToList();
            myGrid = new iGrid[intJmlChannel];

            for (int i = 1; i <= intJmlChannel; i++)
            {
                myGrid[i-1] = new iGrid();
                myGrid[i-1].BorderStyle = iGBorderStyle.Flat;
                myGrid[i-1].DefaultCol.CellStyle = iGrid1DefaultCellStyle;
                myGrid[i-1].DefaultCol.ColHdrStyle = iGrid1DefaultColHdrStyle;
                myGrid[i-1].Dock = DockStyle.Fill;
                myGrid[i-1].ForeColor = SystemColors.WindowText;
                myGrid[i-1].Header.Height = 19;
                myGrid[i-1].Location = new Point(0, 0);
                myGrid[i-1].RowTextCol.CellStyle = iGrid1RowTextColCellStyle;
                myGrid[i-1].Size = new Size(902, 458);
                myGrid[i-1].TabIndex = 0;
                myGrid[i-1].TreeCol = null;
                myGrid[i-1].TreeLines.Color = SystemColors.WindowText;
                myGrid[i-1].BackColorEvenRows = Color.PaleTurquoise;
                myGrid[i - 1].ReadOnly = true;

                myTabs[i - 1] = new TabPage(listChannel[i - 1].MsisdnChannel);
                myTabs[i - 1].Name = listChannel[i-1].MsisdnChannel;

                if (listChannel[i - 1].SubDealer == 5)
                {
                    //intPosisiSD5 = i;
                    myTabs[i - 1].BackColor = Color.Pink;
                    myTabs[i - 1].ForeColor = Color.Blue;
                }

                myGroupBox[i-1] = new GroupBox();
                myGroupBox[i - 1].Dock = DockStyle.Bottom;
                myGroupBox[i - 1].TabIndex = 1;
                myGroupBox[i - 1].TabStop = false;
                myGroupBox[i-1].Location = new Point(0, 367);
                myGroupBox[i-1].Size = new Size(902, 91);

                myTabs[i - 1].Controls.Add(myGroupBox[i - 1]);
                
                myLabelMsisdn[i - 1] = new Label();
                myLabelMsisdn[i - 1].AutoSize = true;
                myLabelMsisdn[i - 1].Text = "Port : " + listChannel[i-1].PortNumber;
                myLabelMsisdn[i - 1].Location = new Point(7, 20);
                myLabelMsisdn[i-1].Size = new Size(35, 13);
                myLabelMsisdn[i-1].TabIndex = 0;

                myLabelPort[i-1] = new Label();
                myLabelPort[i-1].AutoSize = true;
                myLabelPort[i-1].Location = new Point(7, 44);
                myLabelPort[i-1].Size = new Size(35, 13);
                myLabelPort[i-1].TabIndex = 1;
                myLabelPort[i - 1].Text = "Sub Dealer : " + listChannel[i-1].SubDealer;
                
                myGroupBox[i-1].Controls.Add(myLabelMsisdn[i-1]);
                myGroupBox[i - 1].Controls.Add(myLabelPort[i - 1]);
                
                myTabs[i-1].Controls.Add(myGrid[i-1]);
                
                tabControl.Pages.Add(myTabs[i-1]);
            }
        }


Above code is to create the control needed at runtime.
AnswerRe: GroupBox DockStyle Pin
dan!sh 17-Jun-10 5:40
professional dan!sh 17-Jun-10 5:40 
GeneralRe: GroupBox DockStyle Pin
Endien17-Jun-10 5:55
Endien17-Jun-10 5:55 
AnswerRe: GroupBox Set To Back Pin
Luc Pattyn17-Jun-10 6:32
sitebuilderLuc Pattyn17-Jun-10 6:32 
GeneralRe: GroupBox Set To Back Pin
Endien17-Jun-10 6:58
Endien17-Jun-10 6:58 
GeneralRe: GroupBox Set To Back Pin
Luc Pattyn17-Jun-10 7:15
sitebuilderLuc Pattyn17-Jun-10 7:15 
GeneralRe: GroupBox Set To Back Pin
Endien17-Jun-10 7:16
Endien17-Jun-10 7:16 
GeneralRe: GroupBox Set To Back Pin
Endien17-Jun-10 7:34
Endien17-Jun-10 7:34 
Questioninstallation of c# project Pin
prithaa17-Jun-10 5:11
prithaa17-Jun-10 5:11 
AnswerRe: installation of c# project Pin
dan!sh 17-Jun-10 5:36
professional dan!sh 17-Jun-10 5:36 
QuestionNeed to call methods in Java classes Pin
Adam Brown 317-Jun-10 4:34
Adam Brown 317-Jun-10 4:34 
AnswerRe: Need to call methods in Java classes Pin
dan!sh 17-Jun-10 4:48
professional dan!sh 17-Jun-10 4:48 
Questionhow to detect a remote assistance session programatically Pin
Hert17-Jun-10 2:46
Hert17-Jun-10 2:46 
AnswerRe: how to detect a remote assistance session programatically Pin
dan!sh 17-Jun-10 4:55
professional dan!sh 17-Jun-10 4:55 
AnswerRe: how to detect a remote assistance session programatically Pin
Bernhard Hiller17-Jun-10 5:04
Bernhard Hiller17-Jun-10 5:04 
GeneralRe: how to detect a remote assistance session programatically Pin
Hert17-Jun-10 20:35
Hert17-Jun-10 20:35 
QuestionAxhost problem with unregistered ocx Pin
aevanscambs17-Jun-10 2:32
aevanscambs17-Jun-10 2:32 
AnswerMessage Closed Pin
17-Jun-10 2:56
stancrm17-Jun-10 2:56 

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.