50 likes | 203 Views
Taskbar Jumplists. private JumpList jumpList ; jumpList.AddToRecent ( fileName ); jumpList.KnownCategoryToDisplay = JumpListKnownCategoryType.Recent ; String p = Path.Combine ( systemFolder , "notepad.exe "); IconReference ir = New IconReference (p, 0 );
E N D
Taskbar Jumplists private JumpListjumpList; jumpList.AddToRecent(fileName); jumpList.KnownCategoryToDisplay = JumpListKnownCategoryType.Recent; String p = Path.Combine(systemFolder, "notepad.exe"); IconReferenceir= New IconReference(p, 0); JumpListLinkjll= New JumpListLink(p, "Open Notepad"); jll.IconReference = ir; jumpList.AddUserTasks(jll);
Taskbar Overlays private TaskbarManagerwindowsTaskbar = TaskbarManager.Instance; windowsTaskbar.SetOverlayIcon( this.Handle, TaskbarDemo.Properties.Resources.Green, "Green"); windowsTaskbar.SetProgressState( TaskbarProgressBarState.Paused); windowsTaskbar.SetProgressValue( currentValue, maxValue);
Taskbar Thumbnails buttonFirst= New ThumbnailToolbarButton( My.Resources.first, "First Image") AddHandlerbuttonFirst.Click, AddressOfbuttonFirst_Click TaskbarManager.Instance.TabbedThumbnail. SetThumbnailClip(Me.Handle, New Rectangle(pictureBox1.Location, pictureBox1.Size))
Restart and Recovery ApplicationRestartRecoveryManager. RegisterForApplicationRestart( new RestartSettings("/restart", RestartRestrictions.None)); RecoveryDatadata = new RecoveryData( new RecoveryCallback(RecoveryProcedure), null); RecoverySettingssettings = new RecoverySettings(data, 0); ApplicationRestartRecoveryManager. RegisterForApplicationRecovery(settings);
Power Management PowerManager.PowerSourceChanged+= new EventHandler(PowerSourceChanged); PowerManager.PowerPersonality PowerManager.PowerSource PowerManager. GetCurrentBatteryState(). EstimatedTimeRemaining