Popular Posts
DataList paging //利用PageDataSource來做分頁功能 PagedDataSource pds = new PagedDataSource(); //將PageDataSource綁定SqlDataSource pds.DataSource = SqlDataSource1.Selec... ListSelectionListener & ItemListener import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Toolkit; import java.awt.event.ItemEvent; import java.awt.event.ItemL... LogonUser Function : impersonate a windows user // This sample demonstrates the use of the WindowsIdentity class to impersonate a user. // IMPORTANT NOTES:  // This sample can be run only ...
Blog Archive
Stats
Use event log in windows
System.Diagnostics.EventLog evtLog = new System.Diagnostics.EventLog();
evtLog.Source = "application";  // 應用程式
evtLog.WriteEntry("message", System.Diagnostics.EventLogEntryType.Warning);
evtLog.WriteEntry("message", System.Diagnostics.EventLogEntryType.Warning, 12029);