05 April 2014

Windows 7 volume increasing and decreasing problem solution

  • If you are facing volume increasing and decreasing automatically on windows 7 and looking for a perfect solution then this blog post might help you:
  • Step1: Go to Control Panel(Start->Control Panel) &  Click on View by "Large Icon" to sort the view & show all icon.

Windows 7 control panel
  • Step2:   Click on Sound
Windows 7 control panel sound

  • Step3: Click on Speaker icon then click on Property or double click on the Speaker Icon.
Windows 7 control panel volume control
  • Step4: Click on Enhancement Tab, then click on the "Disable all sound effects" check box, then Click OK.

Windows 7 control panel sound volume control
  • Step5: Close all audio player(winamp, Media player etc)  if any is running then start again the player.

  • Step6: Yes... it's done. Now enjoy your music without volume increasing and decreasing problem.

Windows 7 Professional With SP1 64 Bit OEM - 1 PC

24 March 2014

How to use same internet connection on multiple devices without buying any Wifi router?


  • If you want to use same internet connection on your laptop, Smartphone, tablet, ipad at a time without buying a wifi router, then this blog post might help you. 

  • Step 1: I am using Teletalk 3G internet line on my laptop computer & you may use any internet connection from your laptop.

Teletalk 3G modem
Teletalk-3G modem

  • Step 3: Open the virtualrouterplus software & don't change the Network Name(SSID). Set a password (i.e shafiq123) & select the shared connection as Teletalk-Internet (your internet connection). 

  • Step 4: Click on Start Virtual router plus
Virtualrouterplus
Virtualrouterplus

  • Step 5: Now your computer will act as a virtual wifi hotspot & you can connect to the internet from any wi-fi  enable SmartPhone or other device using this connection.

  • Step 6: To use the wi-fi hotspot created on step5, enable wi-fi connection from your smart phone, tablet or other devices.

  • Step 7: You will find a wi-fi connection named “virturouterplus.com” which is secure with password, select the connection and set the password (i.e shafiq123) as you have already set on step3.

  • Step 8:Wait sometime to get connected with your virtual wifi-hotspot.
  • Step 9: It's Done. Now you are connected to the internet from your smart devices.
TP-Link N450 Wi-Fi Router - Wireless Internet Router for Home(TL-WR940N)

20 March 2014

What are the version of Microsoft .NET Platform


  • According to the targeted user group there are a few versions of .NET platform which is given bellow:
  • .NET Framework
  • .NET  Compact  Framework  (CF)
  •  Silverlight
  • .NET  for  Windows  Store  apps


1# .NET Framework is the most common version of the .NET environment which is used in the development of

Console applications,
Windows applications with a graphical user interface, Web applications and many more.

2#  .NET  Compact  Framework  (CF)  is  a  "light"  version  of  the  standard .NET  Framework. It is used  in  the  development  of  applications  for

Mobile phones and PDA devices using Windows Mobile Edition.

3#  Silverlight is also a "light" version of the .NET Framework. It is used on Web browsers in order to implement multimedia and Rich Internet Applications. It is similar to Adobe Flash.

4# .NET  for  Windows  Store  apps  is  a  subset  of  .NET  Framework designed . It is used to Develop  and  execution  of  .NET  applications  in Windows  8  and  Windows  RT  environment  (windows app store) Pro C 7: With .NET and .NET Core

18 February 2014

What is the difference between static and not static method in OOP

  • The main difference between static and non static method is Static method does not require an instance where non static method requires an instance to access them.
  • Example code in C#


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class Calculator 
{
  //Static method 

  public static int sum(int a, int b)
   {
     return a + b;
   }
  //Non-Static methods

  public int subtract(int a, int b)
  {
     return a - b;
  } 

  public int Multilpy(int a, int b)
  {
    return a * b;
  }

  public int division(int a, int b)
  {
    return a / b;
  }
}


  • The sum method is declared as static, we can access the sum method without creating an instance of the Calculator class Code:


1
2
3
4
5
6
int firstNumber =int.Parse(textBox1.Text);
int secondNumber = int.Parse(textBox2.Text);

int sum = Calculator.sum(firstNumber, secondNumber);

MessageBox.Show("Result form Static Method sum="+sum);


  • Here,Method subtract is declared without the static keyword , that’s why is will act as non static, so if we want to access the subtract method of calculator class, then we have to create an instance of the calculator class first, then all the non-static methods will be accessible using the instance (i.e result1, result2) Code:


1
2
3
Calculator result1 = new Calculator(); 

MessageBox.Show("Result form Non Static Method subtraction= " + result1.subtract(firstNumber, secondNumber));

C 6.0 and the .NET 4.6 Framework

04 February 2014

Write your first "Hello World" Program in Visual C#


If you are new to C# programming language, then this blog post will help you to write your first C# program. I used "Microsoft Visual Studio 2010" to write this first "Hello World" program.

So,Installed the "Microsoft Visual Studio" on your PC and follow the step by step instruction given bellow:

Step 1: Start Visual Studio 2010

Start Visual Studio 2010
Start Visual Studio 2010

Step 2:. Click on New Project or Ctrl+Shift+N to create new project


Step 3: Click on Console Application. You may change the Name, Location and Solution Name

C# Console application
C# Console application


Step 4: Write the code inside the main function.

   Console.WriteLine("Hello World ! My first C# program.");

Hello World programming code in C#
Hello World programming code in C#

Step 5:. You first C# program is done.

Step 6:. Now run to program to see the output.
Click Debug ->Start without debugging or press ctrl+F5

Step 7:. The result will be show on a dos screen:

C# Hello World programming  output
C# Hello World programming  output

Step 8:. Enjoy programming with C#. Now you may write as may text as you want using the C# programming language. Head First C: A Learner's Guide to Real-World Programming with C#, XAML, and .NET

Featured Post

How to Write PHP code and HTML code within a same file

A PHP file can have both PHP code and HTML code together. Any HTML code written outside of PHP <?php //php code here… ?> Code is ig...

Popular Posts