Click here to Skip to main content
15,867,453 members
Home / Discussions / C#
   

C#

 
QuestionRe: How can I run multiple powershell commands in a C#/powershell runspace? Pin
Richard MacCutchan18-Jul-16 4:22
mveRichard MacCutchan18-Jul-16 4:22 
AnswerRe: How can I run multiple powershell commands in a C#/powershell runspace? Pin
turbosupramk318-Jul-16 4:35
turbosupramk318-Jul-16 4:35 
GeneralRe: How can I run multiple powershell commands in a C#/powershell runspace? Pin
Richard MacCutchan18-Jul-16 4:51
mveRichard MacCutchan18-Jul-16 4:51 
GeneralRe: How can I run multiple powershell commands in a C#/powershell runspace? Pin
turbosupramk318-Jul-16 4:58
turbosupramk318-Jul-16 4:58 
GeneralRe: How can I run multiple powershell commands in a C#/powershell runspace? Pin
Richard MacCutchan18-Jul-16 6:15
mveRichard MacCutchan18-Jul-16 6:15 
GeneralRe: How can I run multiple powershell commands in a C#/powershell runspace? Pin
turbosupramk318-Jul-16 7:49
turbosupramk318-Jul-16 7:49 
GeneralRe: How can I run multiple powershell commands in a C#/powershell runspace? Pin
turbosupramk319-Jul-16 4:10
turbosupramk319-Jul-16 4:10 
QuestionClose Form Popup before opening MessageBox.Show and the form use delegate ? Pin
Member 245846717-Jul-16 22:47
Member 245846717-Jul-16 22:47 
Suppose you have two forms: frmMain and frmPopup, on frmMain has 1 button (the button) click open frmPopup, on frmPopup many (button), you click on the button any frmPopup button will transmit data by the delegate of copper frmMain frmPopup before closing time announced new open yes / no of MessageBox.Show. When your done click the close button again poup frmPopup then MessageBox.Show on frmPopup, frmPopup refused to play, until the click buttons yes/no of MessageBox.Show, click the button here as yes / no, then frmPopup and MessageBox. Show it to close. I want to play a new fat frmPopup MessageBox.Show done. Their code has the following structure:

[code]

//Declare frmMain

public partial class frmMain : Form
{

    // Declare delegate transmissions data  ...

    private void getData(data)

    { 

        //...

        if (conditions) Updata();

    }

    public frmMain()

    {            

        InitializeComponent();

    }

    private void cmdfrmPopup_Click(object sender, EventArgs e)

    {

         frmPopup frm = new frmPopup(data);  

         frm.Data = getData;

         frm.ShowDialog();

    }

    private void Updata()

    {

         DialogResult dlgRes; 

         string sAskUser = "Are you sure delete ?" ...

         dlgRes = MessageBox.Show(sAskUser, "warning..", MessageBoxButtons.YesNo, Question);

         if (dlgRes == DialogResult.OK)

        {

            // do somthing

        }

    }

}

//Khai báo frmPoup

public partial class frmPopup : Form
{

    // Declare delegate transmissions data ...

    public frmPopup(nhandulieuden)

    {

        InitializeComponent();

        //...            

    }

    private void cmdButton1_Click(object sender, EventArgs e)

    {

        Process();

    }

    private void cmdButton2_Click(object sender, EventArgs e)

    {

        Process();  

    }

    private void cmdButton3_Click(object sender, EventArgs e)

    {

        Process();

    }

    private void cmdButton4_Click(object sender, EventArgs e)

    {

        Process();

    }

    private void Xuly()

    {

        // to do somthing..

        // This Brushes their 2 statements for each island has been the case presented above

        this.Close();

        transmissionOffrmMain(data);           

    }

    private void cmdExit_Click(object sender, EventArgs e)

    {

         this.Close();

    }

}

}

[/code]

through available tracks your household help this place.
AnswerRe: Close Form Popup before opening MessageBox.Show and the form use delegate ? Pin
OriginalGriff17-Jul-16 22:51
mveOriginalGriff17-Jul-16 22:51 
Questionc# parser questions. Pin
elfenliedtopfan517-Jul-16 13:13
elfenliedtopfan517-Jul-16 13:13 
AnswerRe: c# parser questions. Pin
OriginalGriff17-Jul-16 21:42
mveOriginalGriff17-Jul-16 21:42 
GeneralRe: c# parser questions. Pin
elfenliedtopfan518-Jul-16 3:31
elfenliedtopfan518-Jul-16 3:31 
GeneralRe: c# parser questions. Pin
OriginalGriff18-Jul-16 4:11
mveOriginalGriff18-Jul-16 4:11 
GeneralRe: c# parser questions. Pin
elfenliedtopfan518-Jul-16 7:24
elfenliedtopfan518-Jul-16 7:24 
GeneralRe: c# parser questions. Pin
OriginalGriff18-Jul-16 8:02
mveOriginalGriff18-Jul-16 8:02 
GeneralRe: c# parser questions. Pin
elfenliedtopfan518-Jul-16 9:28
elfenliedtopfan518-Jul-16 9:28 
GeneralRe: c# parser questions. Pin
OriginalGriff18-Jul-16 9:33
mveOriginalGriff18-Jul-16 9:33 
GeneralRe: c# parser questions. Pin
elfenliedtopfan518-Jul-16 10:31
elfenliedtopfan518-Jul-16 10:31 
QuestionContextMenu on a MenuItem in ContextMenu possible in WPF? Pin
Imagiv16-Jul-16 4:08
Imagiv16-Jul-16 4:08 
QuestionRe: ContextMenu on a MenuItem in ContextMenu possible in WPF? Pin
User 1106097916-Jul-16 7:53
User 1106097916-Jul-16 7:53 
AnswerRe: ContextMenu on a MenuItem in ContextMenu possible in WPF? Pin
Imagiv18-Jul-16 1:19
Imagiv18-Jul-16 1:19 
GeneralRe: ContextMenu on a MenuItem in ContextMenu possible in WPF? Pin
User 1106097918-Jul-16 1:28
User 1106097918-Jul-16 1:28 
GeneralRe: ContextMenu on a MenuItem in ContextMenu possible in WPF? Pin
Imagiv18-Jul-16 2:02
Imagiv18-Jul-16 2:02 
GeneralRe: ContextMenu on a MenuItem in ContextMenu possible in WPF? Pin
Pete O'Hanlon18-Jul-16 2:18
subeditorPete O'Hanlon18-Jul-16 2:18 
AnswerRe: ContextMenu on a MenuItem in ContextMenu possible in WPF? Pin
Mycroft Holmes16-Jul-16 13:43
professionalMycroft Holmes16-Jul-16 13:43 

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.