- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
Im doing an application n c# and using Ms Access 2003. i want to check whether a product id already exist in the database. Below is part of my code[code]string sql; OleDbCommand cmd; OleDbDataReader rdr; mDB.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data source=" + Path.Combine(Application.StartupPath, "..\\..\\Company.mdb"); mDB.Open(); sql = "Select COUNT (*) ProductID … |
|
Re:
Drawing on a Form does not always happen when you want it. The Refresh() method of a control comes in handy here. See the following snippet and experiment by commenting out the Refresh. Start a new WindowsForm project. From the toolbox, add a Label, ProgressBar and Button control on the … |
|
Re:
id been working on this for days now, maybe someone could help me figure this one, i have this items in listbox2, my database has a field for project, data directory, etc... if my first item in listbox2 equals to the field PROJECT in my database, i want to get … |
|
Re:
Hello, My problem is, I am trying to format a number into a certian format. The number is 100072305608500 (this is the exact copy from what was passed in) the format it should be in is 100/07-23-056-08W5/00 I am using [CODE]return (string.Format("{##0/00-00-000-00W0/##}}", Convert.ToInt64(wellLocation)));[/CODE] where the # are optional digits. I … |
|
Re:
any body can help me on how to embed powerpoint in c# form ?? tnx people god bless.. |
|
Re:
Hello! I have a question regarding game programming. Currently i am doing a course in .net3.5. How to develop a game using c#? Can anyone provide(code) with a game done in .net. What are the educational qualifications to be a game programmer? Thanks in advance. |
|
Re:
Hi, i am facing a problem in c#.net i have a user data form where i have used picture box and opendailogbox when i am selecting a picture it is showing in picturebox now what i want is that i have a button on the form when i click on … |
|
Re:
I have a database that I'm trying to inset data into called dogs.mdb. For some reason the code below doesn't seem to insert a new record into the database...please help! [code] namespace dogs { public partial class Form1 : Form { public Form1() { string connection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=L:\\Billy Uni\\Application … |
|
Re:
Hello, Im looking to split eac row of my CSV file into an array, by separating it out by the commas, but taking care not to include the commas inside of quotations; " asd , dfg ". How would i go about this? Thanks for any help! PS |
|
Re:
HI, I have a prog. assignment, I did most of it, but I couldn't write some functions properly, so try 2 help.? these are the functions I wrote b4.[CODE] #include "Array.h" #include <iostream> using namespace std; Array::Array() //constructor to set size=6 { size=6; } void Array::read() // read array elements … |
|
Re:
[CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Array_2 { class Program { static void Main() { int i; int[] c=new int[11]; int[] b=new int[11]; int[] a=new int[11]; for ( i = 0; i <= 10; i++) //Console.WriteLine("Enter a Matrix1"); a[i] = Console.Read(); for ( i = 0; i … |
|
Re:
I'm working on a bonus project for my C++ class. The original problem was to add two large numbers given by the professor, or more specifically, write a program that would add these two numbers. After a while I got it working, relitively easy bit of code with some pointers … |
|
Re:
It's probably really obvious, then again I don't know much about trees in c++. When I try to insert an integer into the tree it doesn't travel down the tree and insert the integer. I'll post the function and then the whole enchillada after. Also how can I create a … |
|
Re:
Hi everyone, Am just a beginner in c++ and have wishes to become good in it..it doesn't mean i should become a expert but just a good programmer. also i have enrolled for a competition in the college which am studying which requires an application to be developed using cpp..can … |
|
Re:
Hi, can anyone help me in storing a text file data to database using C# coding. I'm not sure of the below code can anyone correct me. Thanks in advance. Note: [U]TextFile1.txt[/U] 124 Keer 22 14000.000000 125 gjh 45 12103.000000 126 sg 48 63230.000000 129 fdgd 21 65620.000000 [CODE] con … |
|
Re:
I have a database created in Microsoft SQL 2000 Enterprise Manager. I need to change the datatype for a column name EngrMultiplier in the table ProjectReCapParameter. The current datatype is INT and I would like to replace it to FLOAT. What should I do? Write a query or change the … |
|
Re:
I want to check in Date Field(Textbox), whether the input is Date Format or not (i.e) Date Format should be followed(YY/MM/DD) in C# windows applications. How can i check this? |
|
Re:
What I want to do must be easy because I can't find it on the web. I have existing C code with char* strings all over the place. I'd like to get those strings to the Form1.h file so I can use them there. All I want is... String^ newText; … |
|
Re:
Hello, I'm new to hashtables in C#, and I'm trying to refer to a bit of Java code, but having a problem. Here's the Java... note: adjacencyMap is a Java hashmap. [CODE] int count = 0; for (int i=0; i< adjacencyMap.CAPACITY; i++) { if (adjacencyMap.keys[i] != null) { LinkedList edges … |
|
Re:
i am a student...i am zero knowloedge about sql neither c#.my job is to build a database.i dont really know how i can do it and how to do it?i had tried a tutorial for c# from other website but the tutorial using sql 2005.but i had download sql 2008.i … |
|
Re:
hello everybody, this is my first post in this forum and i hope to find help. i'm beginner in c# and i search for simple tutorials in databases access in c#. |
|
Re:
I am just new in C#, somebody can you give me code for MS SQL server connection, on how to call records, add, edit and delete records...THANK YOU |
|
Re:
Hi I am trying to insert data into a sql server database table using sqlDataAdapter and adding newrow method.But the values entered are not saved in the database.What I did is............ [CODE] string sql = "Select * from Users"; dataCmd.CommandText = sql; SqlDataAdapter da = new SqlDataAdapter(dataCmd); da.SelectCommand = new … |
|
Re:
[CODE]OleDbConnection con = new OleDbConnection("Provider = Microsoft.Jet.OLEDB.4.0; Data Source = D:\\incomexp.mdb"); OleDbCommand com; OleDbCommand com = new OleDbCommand("insert into incomeexp values (@year,@month,@data,@bal,@inc_exp)",con); com.Parameters.Add("@year", OleDbType.Integer); com.Parameters["@year"].Value = yr; com.Parameters.Add("@month", OleDbType.Integer); com.Parameters["@month"].Value = mn; com.Parameters.Add("@data", OleDbType.Char); com.Parameters["@data"].Value = s ; com.Parameters.Add("@bal", OleDbType.Decimal ); com.Parameters["@bal"].Value = j ; com.Parameters.Add("@inc_exp", OleDbType.Char); com.Parameters["@inc_exp"].Value = s1 … |