您可以使用My.Application.Log 和My.Log 物件,記錄在應用程式中發生的事件資訊。 這個範例會顯示如何使用My.Application.Log.WriteEntry 方法搭配Startup ...
msdn.microsoft.com