

If you don't like mIRC there are many alternative IRC clients out there - including one which professes to have some sort of mIRC scripting compatibility. Yes - you could argue that mIRC should be multi-threaded, but that brings its own complications - complications which might well be surmountable in a tool without scripting capability (though infinite loops would not then be possible anyway), but are almost certainly insurmountable in a product like mIRC with scripts.Īfter all if an interpreted language like python cannot solve the multi-threading problem, I can't see why mIRC should be any different. mIRC hanging is an inevitable consequence.ĭitto for any other single threaded application in an infinite loop. An in finite loop prevents events being processed, including a close event If mIRC is designed to work under Windows and is therefore designed to be event driven andģ. Windows is an event driven operating system andĢ. You might want to consider another way to display invalid input other than writing messages to a text box.1.You might want to use Environment.Newline instead of "\r\n".NET 4 there is a useful method that depending on your requirements you might want to consider using here: String.IsNullOrWhitespace. Return // Are you sure you want the return to be here? TextBox3.Text += " Listbox is Empty!!!!\r\n" You should also use curly braces when you write an if statement so that it is clear which statements are inside the body of the if statement: if (textBox1.Text = String.Empty) There is no need to write the same test three times.If your method returns void then you can write return without a value: return Usually though you should just return when you are done. There are two ways to exit a method early (without quitting the program):Įxceptions should only be used for exceptional circumstances - when the method cannot continue and it cannot return a reasonable value that would make sense to the caller.
