ConnectionStringForSMS.cs
#1

ConnectionStringForSMS.cs

Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;  

namespace SchoolManagementSystem
{
    public static  class ConnectionStringForSMS
    {                
       static string serverName;
        public static string MyConnectionString()
        {
            string connection = "Provider=Microsoft.Jet.OLEDB.4.0;";
            connection += "Data Source=";
            connection += Application.StartupPath.ToString();
            connection += "\\SchoolDB.mdb;";
            connection += "Persist Security Info=True";
            return connection;  
        }
        public static string help1()
        {
            string connection = Application.StartupPath.ToString();          
            connection += "\\Help Instructions.doc";            
            return connection;
        }
        public static string SMSIcon()
        {
            string iconpath = Application.StartupPath.ToString();
            iconpath += "IconSMS.ico";
            return iconpath;
        }
        public static string Capitalize(string value)
        {
            return System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(value);
          
        }
        public static string AllCapitalize(string value)
        {
            value = value.ToUpper();
            return value;

        }
        public static string CapitalizeWords(string value)
        {
            if (value == null)
                throw new ArgumentNullException("value");
            if (value.Length == 0)
                return value;

            StringBuilder result = new StringBuilder(value);
            result[0] = char.ToUpper(result[0]);
            for (int i = 1; i < result.Length; ++i)
            {
                if (char.IsWhiteSpace(result[i - 1]))
                    result[i] = char.ToUpper(result[i]);
                else
                    result[i] = char.ToLower(result[i]);
            }
            return result.ToString();

        }
        public static string CapitalizeWords1(string value)
        {
            if (value == null)
                throw new ArgumentNullException("value");
            if (value.Length == 0)
                return value;

            StringBuilder sb = new StringBuilder(value.Length);
            sb.Append(char.ToUpper(value[0]));
            for (int i = 1; i < value.Length; i++)
            {
                char c = value[i];

                if (char.IsWhiteSpace(value[i - 1]))
                    c = char.ToUpper(c);
                else
                    c = char.ToLower(c);

                sb.Append(c);
            }

            return sb.ToString();
        }

    }
  
}
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Forum Jump: