Davoud Teimouri - Virtualization & Datacenter

A technology blog mainly focusing on virtualization and datacenter

Left and Right functions for string variables in C# .NET

I think VB.NET is an easy learning language and most functions are predefined, C#.NET is most powerful and faster than VB.NET, but we need to write some functions in C# for ourselves such as string functions.

C# has “substring” function under String class and we can simulate VB.NET Left and Right function by that.

Allow the computer to turn off this device to save power

To use Registry Editor to disable the Allow the computer to turn off this device to save power network adapter setting for a single computer, follow these steps:Click Start, click Run, type regedit in the Open box, and then click OK. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\DeviceNumber NoteDeviceNumber is the network adapter number. If a single network adapter is installed on the computer, theDeviceNumber is 0001. Click PnPCapabilities. On the Edit menu, click Modify. In the Value data box, type 24, and then click OK.Note By default, a value of 0 indicates that power management of the network adapter is enabled. A value of 24 will prevent Windows 7 from turning off the network adapter or let the network adapter wake the computer from standby. On the File menu, click Exit.

Davoud Teimouri is as a professional blogger, vExpert 2015-2016-2017, VCA, MCITP. This blog is started with simple posts and now, it has large following readers.

7,203 total views, 4 views today

No votes yet.
Please wait...
Updated: 27/06/2017 — 5:52 pm

Leave a Reply

Teimouri.net © 2012 Frontier Theme
%d bloggers like this:
Read more:
HP ASR – Automatic Server Recovery

How much do you know about HP ASR? How it works? The ASR feature is a hardware-based timer. If a...