Click here to Skip to main content
15,889,992 members
Home / Discussions / C#
   

C#

 
AnswerRe: A quick question about volatile Pin
Megidolaon31-Jul-08 1:59
Megidolaon31-Jul-08 1:59 
QuestionHow to insert a new row to MDB file [modified] Pin
Admin88730-Jul-08 21:53
Admin88730-Jul-08 21:53 
AnswerRe: How to insert a new row to MDB file Pin
leppie30-Jul-08 22:41
leppie30-Jul-08 22:41 
AnswerRe: How to insert a new row to MDB file Pin
rah_sin30-Jul-08 22:42
professionalrah_sin30-Jul-08 22:42 
QuestionSetup with Custom Action Pin
Sifar - 030-Jul-08 21:45
Sifar - 030-Jul-08 21:45 
AnswerRe: Setup with Custom Action Pin
leppie30-Jul-08 22:43
leppie30-Jul-08 22:43 
AnswerRe: Setup with Custom Action Pin
Frank Horn30-Jul-08 23:17
Frank Horn30-Jul-08 23:17 
Questionproblem_details to solve the warning Pin
ktamanna30-Jul-08 21:42
ktamanna30-Jul-08 21:42 
i have created a win forms and try to connect it to my database.my problem is that there are 3 warning which i can't understand.my code and warning list are below:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace sts
{
    public partial class Voucher : Form
    {
         SqlConnection cn;
        public Voucher()
        {
            InitializeComponent();
        }
  
        private void btnSave_Click(object sender, EventArgs e)
        {  string connectionString = "Data Source=RYANS-27F187045\\SQLEXPRESS;Initial Catalog=msdb;Integrated Security=sspi";
            cn = new SqlConnection(connectionString);
        
            cn.Open();
            SqlCommand cmd = cn.CreateCommand();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "insertv";
 
            cmd.Parameters.Add(new SqlParameter("@Id_No", SqlDbType.Int));
            cmd.Parameters["@Id_No"].Value = txtId_No.Text;

            cmd.Parameters.Add(new SqlParameter("@NAME_OF_ACCOUNT", SqlDbType.VarChar, 50));
            cmd.Parameters["@NAME_OF_ACCOUNT"].Value = txtNAME_OF_ACCOUNT.Text;

            cmd.Parameters.Add(new SqlParameter("@QUANTITY", SqlDbType.Float));
            cmd.Parameters["@QUANTITY"].Value = txtQUANTITY.Text;

            cmd.Parameters.Add(new SqlParameter("@PRICE", SqlDbType.Float));
            cmd.Parameters["@PRICE"].Value = txtPRICE.Text;

            
            cmd.Parameters.Add(new SqlParameter("@TOTAL_AMOUNT", SqlDbType.Float));
            cmd.Parameters["@TOTAL_AMOUNT"].Value = txtTOTAL_AMOUNT.Text;
            
           
            cmd.Parameters.Add(new SqlParameter("@DATE", SqlDbType.DateTime));
            cmd.Parameters["@DATE"].Value = txtDATE.Text;
           
            cn.Close();


        }
        private void Voucher_Load(object sender, EventArgs e)
        {
            string connectionString = "Data Source=RYANS-27F187045\\SQLEXPRESS;Initial Catalog=msdb;Integrated Security=sspi";
            cn = new SqlConnection(connectionString);
        }


       

        private void txtVoucherc_TextChanged(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }

        private void txtDATE_TextChanged(object sender, EventArgs e)
        {

        }
        
       
        
    }
}

Warning 1 Invalid search path 'C:\Program Files\DevStudio\DF\IMSL\LIB' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' sts
Warning 2 Invalid search path 'C:\Program Files\DevStudio\DF\IMSL\LIB' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' sts
Warning 3 Invalid search path 'C:\Program Files\DevStudio\DF\IMSL\LIB' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' sts
AnswerRe: problem_details to solve the warning Pin
leppie30-Jul-08 22:44
leppie30-Jul-08 22:44 
QuestionHow to resize the form at run time on load Pin
tasumisra30-Jul-08 21:32
tasumisra30-Jul-08 21:32 
AnswerRe: How to resize the form at run time on load Pin
Syed Shahid Hussain30-Jul-08 22:32
Syed Shahid Hussain30-Jul-08 22:32 
GeneralRe: How to resize the form at run time on load Pin
tasumisra30-Jul-08 23:04
tasumisra30-Jul-08 23:04 
GeneralRe: How to resize the form at run time on load Pin
Syed Shahid Hussain31-Jul-08 17:39
Syed Shahid Hussain31-Jul-08 17:39 
GeneralRe: How to resize the form at run time on load Pin
tasumisra31-Jul-08 23:36
tasumisra31-Jul-08 23:36 
GeneralRe: How to resize the form at run time on load Pin
tasumisra31-Jul-08 23:39
tasumisra31-Jul-08 23:39 
GeneralRe: How to resize the form at run time on load Pin
Syed Shahid Hussain1-Aug-08 2:42
Syed Shahid Hussain1-Aug-08 2:42 
QuestionPerfMon CPU Usage not same as Task Manager reading Pin
alex120530-Jul-08 21:23
alex120530-Jul-08 21:23 
AnswerRe: PerfMon CPU Usage not same as Task Manager reading Pin
Simon P Stevens30-Jul-08 22:53
Simon P Stevens30-Jul-08 22:53 
GeneralRe: PerfMon CPU Usage not same as Task Manager reading Pin
alex12057-Aug-08 19:39
alex12057-Aug-08 19:39 
QuestionCatch vb6 errorcodes as Exceptions in C# Pin
dewaldf30-Jul-08 21:17
dewaldf30-Jul-08 21:17 
AnswerRe: Catch vb6 errorcodes as Exceptions in C# Pin
Christian Graus30-Jul-08 21:28
protectorChristian Graus30-Jul-08 21:28 
GeneralRe: Catch vb6 errorcodes as Exceptions in C# Pin
dewaldf30-Jul-08 21:39
dewaldf30-Jul-08 21:39 
Questionproblem creating files with iso-8859-2 encoding Pin
cellardoor071630-Jul-08 21:11
cellardoor071630-Jul-08 21:11 
AnswerRe: problem creating files with iso-8859-2 encoding Pin
Guffa30-Jul-08 21:36
Guffa30-Jul-08 21:36 
GeneralRe: problem creating files with iso-8859-2 encoding Pin
cellardoor071630-Jul-08 21:46
cellardoor071630-Jul-08 21:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.