how to move a control from back to fore

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, all

How are you.

On my form I add a two control.
when I do mousedown event on a control.
I add a new control to form.

But the last I add control is covered by control I have added before.
What should I do, I can move the control I add lastly to the most foreground.

Thanks
 
What kind of control are you adding?? MDI form? Textbox? Button? What?

c#... vb??

~webmasta



| Hi, all
|
| How are you.
|
| On my form I add a two control.
| when I do mousedown event on a control.
| I add a new control to form.
|
| But the last I add control is covered by control I have added before.
| What should I do, I can move the control I add lastly to the most foreground.
|
| Thanks
|
 
Sorry.
My infomation is not enought

Language: C#

Just one form:
First I add a TextBox named text1,
Second add the second TextBox named text2
the margine = 10;
Third add the third TextBox named text3;

When I click text2, I add a ComboBox control at the bottom of text2.
Half of ComboBox is covered by text3,
So I want to make combox on the most foreground.

How to do it?

Thanks.

and the last I add control is ComboBox.
 
ComboBox.BringToFront()

~webmasta


| Sorry.
| My infomation is not enought
|
| Language: C#
|
| Just one form:
| First I add a TextBox named text1,
| Second add the second TextBox named text2
| the margine = 10;
| Third add the third TextBox named text3;
|
| When I click text2, I add a ComboBox control at the bottom of text2.
| Half of ComboBox is covered by text3,
| So I want to make combox on the most foreground.
|
| How to do it?
|
| Thanks.
|
| and the last I add control is ComboBox.
|
| "webmasta" wrote:
|
| > What kind of control are you adding?? MDI form? Textbox? Button? What?
| >
| > c#... vb??
| >
| > ~webmasta
| >
| >
| >
| > | > | Hi, all
| > |
| > | How are you.
| > |
| > | On my form I add a two control.
| > | when I do mousedown event on a control.
| > | I add a new control to form.
| > |
| > | But the last I add control is covered by control I have added before.
| > | What should I do, I can move the control I add lastly to the most foreground.
| > |
| > | Thanks
| > |
| >
| >
 
Back
Top