© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
1 reply
Rorm

Finding a button by name

Hello I would like help with this:
 private void LoadKeybinds()
 {
     string filePath = "edward.json";
     using (StreamReader r = new StreamReader(filePath))
     {
         string json = r.ReadToEnd();
         JObject keybinds = JObject.Parse(json);
         foreach (var item in keybinds)
         {
             if (item.Key.Contains("Keybind"))
             {
                 //find button for example in python: f"{item.Key}BTN" and change the button text to item.Value somehow 

                 //MessageBox.Show(item.Key + ": " + item.Value);
             }

         }
     }

 }
 private void LoadKeybinds()
 {
     string filePath = "edward.json";
     using (StreamReader r = new StreamReader(filePath))
     {
         string json = r.ReadToEnd();
         JObject keybinds = JObject.Parse(json);
         foreach (var item in keybinds)
         {
             if (item.Key.Contains("Keybind"))
             {
                 //find button for example in python: f"{item.Key}BTN" and change the button text to item.Value somehow 

                 //MessageBox.Show(item.Key + ": " + item.Value);
             }

         }
     }

 }


I would like to find button by name and change the button text to item.Value somehow
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Getting proccess by name
C#CC# / help
4y ago
❔ Sum quantity in a list by name value?
C#CC# / help
3y ago
❔ Get full namespace name
C#CC# / help
3y ago
Finding a game file
C#CC# / help
3y ago