Post: C# Change Client name
02-09-2016, 01:29 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hi NGU

Today i make a topic for get your help in my tool.

I need the code for chaneg the name of clients in my ContextMenuStrip : You must login or register to view this content.

I want to make a thing like Unknauwn tool or direct in the stripTextBox : You must login or register to view this content.

Thx all for ur help and if u give me the code naturaly you got in the credit of my tool Smile

Sorry for my english im french
02-13-2016, 03:20 PM #2
Sonoro
I like anteaters
You have to get the index of the client from the ContextMenuStrip parent.
In the example you showed, the user is instantiating another dialog to return the new name (string value).
Code example:
    
using (frmNewName choose = new frmNewName())
{
if(choose.ShowDialog()==DialogResult.OK)
{
ChangeName(client, choose.NewName);
}
}


The code is pretty noob-friendly and self exaplainatory.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo