Click here to Skip to main content
15,918,976 members
Home / Discussions / C#
   

C#

 
GeneralRe: Manage keyboard shortcuts in a winform application Pin
Mohammed Shahab23-Feb-08 2:04
Mohammed Shahab23-Feb-08 2:04 
GeneralRe: Manage keyboard shortcuts in a winform application Pin
Marlun24-Feb-08 3:23
Marlun24-Feb-08 3:23 
GeneralRe: Manage keyboard shortcuts in a winform application Pin
Marlun24-Feb-08 3:35
Marlun24-Feb-08 3:35 
Generalcontrolling a mesh in C# Pin
anarchi2322-Feb-08 22:47
anarchi2322-Feb-08 22:47 
GeneralRe: controlling a mesh in C# Pin
Gareth H23-Feb-08 0:11
Gareth H23-Feb-08 0:11 
Generalsend an Email. Pin
ali_reza_zareian22-Feb-08 22:34
ali_reza_zareian22-Feb-08 22:34 
GeneralRe: send an Email. Pin
Abhijit Jana22-Feb-08 23:37
professionalAbhijit Jana22-Feb-08 23:37 
GeneralStored procedure in C# Pin
mrkeivan22-Feb-08 22:05
mrkeivan22-Feb-08 22:05 
Hey guys, I'm using stored procedure to insert data to my database, I works perfectly. after clickin the button it inserts the information. but when I again want to enter new information and press the button I get this error >> Procedure or function ExpenseEntery has too many arguments specified.
<br />
                //Insert the Info<br />
                InsertCmd.Connection = MyCon;<br />
                InsertCmd.CommandType = CommandType.StoredProcedure;<br />
                InsertCmd.CommandText = "ExpenseEntery";<br />
<br />
                InsertCmd.Parameters.Add("@ID", SqlDbType.Int).Value = GetID;<br />
                InsertCmd.Parameters.Add("@ClientID", SqlDbType.Int).Value = UserID;<br />
                InsertCmd.Parameters.Add("@ExpenseID", SqlDbType.TinyInt).Value = SelectedExpense;<br />
                InsertCmd.Parameters.Add("@DateOfPurchase", SqlDbType.VarChar, 8).Value = SelectedDate;<br />
                InsertCmd.Parameters.Add("@Cost", SqlDbType.Money).Value = Convert.ToInt64(Cost_tb.Text);<br />
                InsertCmd.Parameters.Add("@Number", SqlDbType.Int).Value = Convert.ToInt32(Number_tb.Text);<br />
                InsertCmd.Parameters.Add("@TotalCost", SqlDbType.Money).Value = Total;<br />
                InsertCmd.Parameters.Add("@Comment", SqlDbType.NVarChar, 300).Value = Comment_tb.Text;<br />
                InsertCmd.Parameters.Add("@DeleteFlag", SqlDbType.Bit).Value = "false";<br />
<br />
                MyCon.Open();<br />
                InsertCmd.ExecuteNonQuery();<br />
                MyCon.Close();

GeneralRe: Stored procedure in C# Pin
Hesham Amin22-Feb-08 22:38
Hesham Amin22-Feb-08 22:38 
GeneralRe: Stored procedure in C# Pin
mrkeivan23-Feb-08 9:25
mrkeivan23-Feb-08 9:25 
GeneralRe: Stored procedure in C# Pin
PIEBALDconsult23-Feb-08 14:56
mvePIEBALDconsult23-Feb-08 14:56 
GeneralRe: Stored procedure in C# Pin
ali_reza_zareian22-Feb-08 22:40
ali_reza_zareian22-Feb-08 22:40 
QuestionHow to generate random number [modified] Pin
D i x y22-Feb-08 20:50
D i x y22-Feb-08 20:50 
GeneralRe: How to generate base64 random number Pin
Hesham Amin22-Feb-08 22:36
Hesham Amin22-Feb-08 22:36 
GeneralRe: How to generate base64 random number Pin
D i x y22-Feb-08 22:45
D i x y22-Feb-08 22:45 
GeneralRe: How to generate base64 random number Pin
Gareth H23-Feb-08 0:08
Gareth H23-Feb-08 0:08 
GeneralRe: How to generate base64 random number Pin
Christoph Menge23-Feb-08 0:17
Christoph Menge23-Feb-08 0:17 
GeneralRe: How to generate base64 random number Pin
Guffa23-Feb-08 0:25
Guffa23-Feb-08 0:25 
GeneralRe: How to generate base64 random number Pin
D i x y23-Feb-08 0:53
D i x y23-Feb-08 0:53 
GeneralRe: How to generate base64 random number Pin
Hesham Amin23-Feb-08 5:24
Hesham Amin23-Feb-08 5:24 
GeneralC# windows service is not showing in Control panel services Pin
Satish - Developer22-Feb-08 20:12
Satish - Developer22-Feb-08 20:12 
AnswerRe: C# windows service is not showing in Control panel services Pin
Mohammed Shahab23-Feb-08 1:36
Mohammed Shahab23-Feb-08 1:36 
QuestionHow to get clear figure in windows application? Pin
Aravinthan22-Feb-08 19:25
Aravinthan22-Feb-08 19:25 
AnswerRe: How to get clear figure in windows application? Pin
Christian Graus22-Feb-08 19:41
protectorChristian Graus22-Feb-08 19:41 
GeneralRe: How to get clear figure in windows application? Pin
Aravinthan22-Feb-08 21:59
Aravinthan22-Feb-08 21:59 

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.