It'sthefollowing,Ineedtoaddthesetoolsexactlyasshownintheimage.
Ijustneedapush,howtogetstarted.
Inserttext
InsertImage
Delete(button)
CODE
namespacefrmLoginRPG{publicpartialclassfrmMenuPrincipal:Form{privatereadonlyButton[]_todosBotoes;publicfrmMenuPrincipal(){InitializeComponent();//Passo1_todosBotoes=_mainPanel.Controls.OfType<Button>().ToArray();}privatevoidrichTextBox1_TextChanged(objectsender,EventArgse){//Passo2.1varcontroles=_todosBotoes.Where(btnRifts=>(btnRifts.TagasString??btnRifts.Text).ContainsIgnoreCase(txtBuscarJogo.Text)).ToArray();//Passo2.2_mainPanel.Controls.Clear();//Passo2.3_mainPanel.Controls.AddRange(controles);}privatevoidbutton2_Click(objectsender,EventArgse){}privatevoidbtnAdicionar_Click(objectsender,EventArgse){Buttonbutton=newButton();//criandobotãobutton.Size=_todosBotoes[0].Size;//criandobotão,puxandootamanhodosoutrosbotõesbutton.BackColor=Color.AliceBlue;//definindocordobotão_mainPanel.Controls.Add(button);//Adicionandobotãono_mainPanelbutton.ContextMenuStrip=this.contextMenuStrip1;//AdicionandocontextMenuStripassimqueoBotãoforcriado.MessageBox.Show(" CRIADO ");
}
}
}
namespace MyMethod
{
public static class MyExtensions
{
public static bool ContainsIgnoreCase(this string source, string search)
{
return source.IndexOf(search, StringComparison.CurrentCultureIgnoreCase) >= 0;
}
}
}
'