c# - ListBox Delay Input times -


i trying figure out how set delay between different items being listed.

when run program , type "connect:192.168.1.1" want "connecting" , 2-5 seconds later "connected" there way or simpler way together?

thank in advance!

        private void consoleenter_keydown(object sender, keyeventargs e)     {          if (consoleenter.text == ("connect: 192.168.1.1"))         {             combox.items.add(consoleenter.text);              combox.items.add("connected");              if (e.keycode == keys.enter)             {                consoleenter.text = "";                                }         }     } 

if trying processing, can use timer , start before performing task , and stop after job done , calculate elapsed time , display in seconds user.

in case of purposeful delay, can make thread sleep , resume later.

please post trying accomplish.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -