Tuesday, 28 February 2017

Function To Clear/Reset All control in C# windows Application

//Code Begins Here.
public static void ClearFormControls(Form form)
        {
            foreach (Control control in form.Controls)
            {
                if (control is TextBox)
                {
                    TextBox txtbox = (TextBox)control;
                    txtbox.Text = string.Empty;
                }
                else if (control is CheckBox)
                {
                    CheckBox chkbox = (CheckBox)control;
                    chkbox.Checked = false;
                }
                else if (control is RadioButton)
                {
                    RadioButton rdbtn = (RadioButton)control;
                    rdbtn.Checked = false;
                }
                else if (control is DateTimePicker)
                {
                    DateTimePicker dtp = (DateTimePicker)control;
                    dtp.Value = DateTime.Now;
                }
                else if (control is MaskedTextBox)
                {
                    MaskedTextBox msk = (MaskedTextBox)control;
                    msk.ResetText();
                }
                else if (control is ComboBox)
                {
                    ComboBox cmb = (ComboBox)control;
                    cmb.SelectedIndex = 0;
                }
            }
//End of code

Tuesday, 15 January 2013

how to start with programming for beginners


Basics of Programming for beginners


Introduction
Computer programming is a set of instructions through which one tells
the computer to do the desired task. This set of instructions written in
human readable computer language is called Source Code. Every program
has two parts namely code and data. There are two models of
programming namely Structured Programming and Object Oriented
Programming. In Structured Programming codes are executed one after
one in a serial fashion. Example for this is ‘C’ Language. In object
oriented programming, data is accessed through objects. There is no
single flow. Here objects freely interact with one another by passing
messages.
Problem Solving Techniques
To develop the solution for the given problem, the following programming
techniques are used.
Problem solving techniques
i) Algorithm-
Algorithm is a step by step procedure to solve any problem.
ii) Flow Charts-
Flow Chart is a graphical represantation of the steps involved in a programme.
iii) Pseudo codes-
These are the instructions written in ordinary English using
mathematical and logical symbols to display the program logic.
iv) Decision Tables-
A decision table consists of many independent conditions with several
actions, written in table format to solve the given problem.
Properties of an Algorithm
i. Finiteness: An algorithm must always terminate after a finite
number of steps.
ii. Definiteness: Each step must be clearly defined that actions
carried out must be unambiguous.
iii. Input: Input should be provided at the beginning of algorithm.
iv. Output: Algorithm must produce on or more output.
v. Effectiveness: All the operations defined must be sufficiently basic
that they can be done exactly in finite length of time manually.
Basic Statements Used and Examples
i. Algorithm always begins with the word ‘Start’ and ends with the word
‘Stop’
ii. Step wise solution is written in distinguished steps. This is as shown in
example 1
Start
Step 1:
Step 2:
Step 3:
.
.
.
Step n:
End
Ex.:- Calculate the greater number between three numbers.
Ans.-
1. Start the Algorithm.
2. Take three numbers from the user.
3. If the first number greater than second number and the first number is greater than the third number, then display first number is greatest.
4. Else if second number is greater than first number and first number is greater than third number,then display second number is greatest.
5. Else third number is greatest.
6. Stop the algorithm

Friday, 11 January 2013

Top 10 Tips to Be a Successful Affiliate Marketer

Tips to Be a Successful Affiliate Marketer

Affiliate marketing is the marketing which one does for someone else and gets paid on their behalf. They can be a big source of revenue and the key factor is to engage the readers. Unlike traditional advertisements where one is paid for impression or clicks, affiliates are paid only when the specific action is performed. Since affiliate marketing is a vibrant domain, one needs to understand the techicalitieis associated with it. Here are the ten tips to be a successful affiliate marketer.
1. Understand your audience- This is the first step in affiliate marketing as one has to understand the needs of the audience. Consider the fact on what are you providing and what the people want. It is then only you will attract people to your website.
2. Be helpful- Along with content use affiliate marketing advertisements as additional resources. Give value to your content by making it informative as well as useful
3. Select carefully – there are different types of products as well as services in the market. Take some time off and reflect on the fact that what products as well as services your readers will like. Along with it keep on changing your advertisements on a regular basis to keep the audiences interested.  In hindsight it may take some time for you to derive the magic formula.
4. Be transparent – Always disclose your affiliations. The readers will appreciate your honestly and  will feel a sense of belonging to your product as well as service
5. Provide timeless content – In keeping up latest trends and cashing in on the long term opportunities as far as possible provide timeless content. In fact many platforms provide you the option of “ most recent” and the old content will definitely provide value for money.
6. Be patient- Affiliate programme is not a one day phenomenon. One needs to understand that certain programmes offer life time payouts and the affiliate revenue builds over time.
7. Stay relevant- Try and be updated with the latest affiliate programmes as far as possible. One should not get lazy in monitoring new trends as well as opportunities.
8. Be trustworthy- In the world of today readers are savvy. If the trust of the readers is broken they will never come back. In the overall context, honesty is a factor which will take your business long ahead
9. Try different programs- If you feel that a particular programme is not working, try a different one. It needs to be understood that all affiliate programmes are not the same. Some may offer more flexibility along with better colours as well as designs.  If possible try to find out whether your favourite vendor to run their own affiliate programme. Sometimes it is difficult to find the source and one is not limited to any affiliate networks
10. Prioritize your content – Of all the things content comes first. The content is the life blood of the business and the stepping stone as well. If things could be put in right perspective a good articulated content means have the job done.

                                                                     Affiliate Marketing India
                www.cuelinks.com
                       Highest Number of Merchants, Easy monetization and link management

Thursday, 10 January 2013

celcius to Fahrenheit code in java


import java.util.Scanner;
class CelsiusToFahrenheit
{
public static void main(String args[])
{
Scanner myScanner = new Scanner(System.in);
double celsius, fahrenheit;
System.out.print(“Enter the Celsius temperature: “);
celsius = myScanner.nextDouble();
fahrenheit = 9.0 / 5.0 * celsius + 32.0;
System.out.print(“Room temperature? “);
System.out.println(fahrenheit == 69.8);
}
}

image of niit delhi centre

image of niit delhi centre

Affiliate Marketing or Google Adsense – Which One Would You Choose?

Google Adsense or AffiliateAffiliate marketing is performance based marketing. In this the business tends to reward the affiliates who have brought customers to the business. On the other hand Google adsense is a mechanism where one can earn money from the online content. From the personal perspective I would always choose affiliate marketing because of the following reasons.
                                                                                          It is one of the best ways tomake money online.  Since it is a lucrative business, many people look it as a great way of making money.  In this traditional business online, there is no need to worry about product creation or customer service. Basically this business encourages people to join or buy from different sites. It offers plenty of options for people who have been looking for some extra income.  If you are interested in affiliate marketing, it is the right time to start as this conventional business getting large popularity these days.

Advantages of Affiliate marketing

  • Convenient venture
The best advantage of affiliate marketing is that you can choose your own convenient place and time to do the business. You must know what to do in the business and do that correctly. It’s the traffic that matters here. Get information about the service and product to the public and earn money for that in return.
  • Risk-free business
We can say that affiliate marketing is a risk free business because it does not require any kind of authorization from anybody to start this venture.  Depends on your time, you can either promote only one product or handle as many as products or services.
  • Good potential
If you put your resources and time in the right way, you can make what you want with affiliate marketing.  The only requirement to get success here is to put enough energy and time. Treat it like any other business so that it may help you to make a decent income for a long time.
  • Effective ways for successful affiliate marketing
Even though affiliate marketing is considered as one of the successful and easy ways to earn online income, it is not as easy as it sounds. It requires dedication and hard work besides useful marketing practices. You must think of all actions and execute it properly to become a successful affiliate marketer.  Do not forget to use all the right tools to maximize the possibility to earn more and succeed in this field.

Some of the Useful tools for affiliate marketing

  • Website
Your own website is very crucial to get success in affiliate marketing.  If you would like to get involved in this field, the first step you need to do is to create a good, professional looking and at the same time, user-friendly website.  Remember, it is the starting point of your business efforts.  Visitors of your website will love appealing articles. So, fill the site with relevant, original and useful content.
  • Link popularity
A reciprocal aggressive link campaign is important to increase link popularity as search engine rankings are depends upon the link popularity.  For a successful affiliate marketer, you should attract visitors to your site.  You can do this by submitting articles to various free articles sites with the link of your website.  You can increase the popularity of your link by submitting more articles.