Click here to Skip to main content
15,891,567 members
Home / Discussions / C#
   

C#

 
AnswerRe: asp.net code with c# Pin
Keith Barrow27-Aug-12 9:15
professionalKeith Barrow27-Aug-12 9:15 
AnswerRe: asp.net code with c# Pin
Paul Conrad27-Aug-12 9:49
professionalPaul Conrad27-Aug-12 9:49 
QuestionRun the web project automatically in browser after deployed the project in IIS Express Pin
vadiveln27-Aug-12 8:25
vadiveln27-Aug-12 8:25 
QuestionInclude existing ContextMenuStrip into taskbar application context menu (C#, .NET 2.0) Pin
Shalfey8927-Aug-12 7:49
Shalfey8927-Aug-12 7:49 
QuestionSendToBack Method is hiding the control. Pin
mohammadkaab27-Aug-12 5:16
mohammadkaab27-Aug-12 5:16 
AnswerRe: SendToBack Method is hiding the control. Pin
Shameel27-Aug-12 5:21
professionalShameel27-Aug-12 5:21 
GeneralRe: SendToBack Method is hiding the control. Pin
mohammadkaab27-Aug-12 7:16
mohammadkaab27-Aug-12 7:16 
AnswerRe: SendToBack Method is hiding the control. Pin
Eddy Vluggen27-Aug-12 5:29
professionalEddy Vluggen27-Aug-12 5:29 
mohammadkaab wrote:
i want the button come before the form (childform)

In that case, the button should be ON the child-form.

mohammadkaab wrote:
i have used the sendtoback method but it's hiding the button instead of send it back to the form .

SendToBack[^] works with the Z-order of the controls-collection of the form, not over "all" forms. You need to add the button to Form1 if you want it in front, or display it on another location where it is not obscured by Form1.

C#
private void MDIParent1_Load(object sender, EventArgs e)
{
  using (var formInstance = new form1())
  {
    formInstance.mdiparent = this;
    formInstance.ShowDialog(this);
    Button newButton = new Button() { Location = new Point(0,0) };
    formInstance.Controls.Add(newButton);
  }
}

Bastard Programmer from Hell Suspicious | :suss:
if you can't read my code, try converting it here[^]

GeneralRe: SendToBack Method is hiding the control. Pin
mohammadkaab27-Aug-12 6:58
mohammadkaab27-Aug-12 6:58 
GeneralRe: SendToBack Method is hiding the control. Pin
Eddy Vluggen27-Aug-12 7:15
professionalEddy Vluggen27-Aug-12 7:15 
GeneralRe: SendToBack Method is hiding the control. Pin
mohammadkaab27-Aug-12 7:24
mohammadkaab27-Aug-12 7:24 
AnswerRe: SendToBack Method is hiding the control. Pin
Eddy Vluggen27-Aug-12 8:10
professionalEddy Vluggen27-Aug-12 8:10 
GeneralRe: SendToBack Method is hiding the control. Pin
mohammadkaab27-Aug-12 8:31
mohammadkaab27-Aug-12 8:31 
GeneralRe: SendToBack Method is hiding the control. Pin
Eddy Vluggen27-Aug-12 9:43
professionalEddy Vluggen27-Aug-12 9:43 
GeneralRe: SendToBack Method is hiding the control. Pin
mohammadkaab27-Aug-12 12:16
mohammadkaab27-Aug-12 12:16 
GeneralRe: SendToBack Method is hiding the control. Pin
Eddy Vluggen28-Aug-12 0:33
professionalEddy Vluggen28-Aug-12 0:33 
GeneralRe: SendToBack Method is hiding the control. Pin
mohammadkaab28-Aug-12 0:24
mohammadkaab28-Aug-12 0:24 
GeneralRe: SendToBack Method is hiding the control. Pin
Eddy Vluggen28-Aug-12 0:25
professionalEddy Vluggen28-Aug-12 0:25 
QuestionC# obtain row values Pin
sc steinhayse27-Aug-12 5:12
sc steinhayse27-Aug-12 5:12 
AnswerRe: C# obtain row values Pin
Shameel27-Aug-12 5:18
professionalShameel27-Aug-12 5:18 
GeneralRe: C# obtain row values Pin
sc steinhayse27-Aug-12 5:28
sc steinhayse27-Aug-12 5:28 
AnswerRe: C# obtain row values Pin
Shameel27-Aug-12 5:39
professionalShameel27-Aug-12 5:39 
GeneralRe: C# obtain row values Pin
pramod.hegde27-Aug-12 6:20
professionalpramod.hegde27-Aug-12 6:20 
GeneralRe: C# obtain row values Pin
PIEBALDconsult27-Aug-12 10:52
mvePIEBALDconsult27-Aug-12 10:52 
GeneralRe: C# obtain row values Pin
Shameel27-Aug-12 14:46
professionalShameel27-Aug-12 14:46 

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.