Changing int.parse to int.tryparse C# : Ive been trying to change my int.parse to int.tryparse as I have heard it is a better approach. I keep getting errors I really dont know what I am doing wrong.

    int index = this.Controls.GetChildIndex(WorkflowStepPanel, false);
    this.Controls.SetChildIndex(WorkflowStepPanel, 
    int.Parse(WorkflowStepPanel.indexBox.Text));