- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 9
- Posts with Upvotes
- 9
- Upvoting Members
- 8
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re: 1) Use the code tags. 2) It is something like this. [code=C#] System.Data.SqlClient.SqlConnection sqlConnection1 = new System.Data.SqlClient.SqlConnection(ScreenShotConnectionString); // Create the InsertCommand. System.Data.SqlClient.SqlCommand cmd = new SqlCommand("INSERT INTO Table_1 (ScreenShotNumber, TestScriptID, StepNumber, TesterInitials, Date, DocumentNumber) " +"VALUES ( " + ScreenShotNumber + " , " + TestScriptID +" , " + … | |
Re: [code=SQL] UPDATE tablename set columnname = REPLACE(coulmnname,'old','new') where columnname like '%old%' [/code] Something like this...perhaps | |
Re: Using [quote] plz reply soon it is urgent... [/quote] does not help you get answers faster. Avoid it the next time. You can import the data into SQL server database table easily. You can pivot the table using PIVOT in SQL query. Then subsequently read the data to datatable. You … | |
Re: 1) I have a doubt in your Battle method. [code=C#] if (p1Card.FaceVal > p2Card.FaceVal) { rn = r.Next(1, 2); if (rn == 1) { p1.AddCard(p1Card); p1.AddCard(p2Card); } if (rn == 2) { p2.AddCard(p2Card); p2.AddCard(p1Card); } player1.GetWins++; player2.GetLosses++; return "Player 1 has won!"; } [/code] You are giving the cards to … | |
Re: Check what method is being called for onload event. [icode]private void Form2_Load_1 [/icode] makes me think, there might be a different method associated with the onload event. | |
Who am I? Manoj, just another random person to you. What do I do? Recently graduated and currently doing [U][I]nothing[/I][/U].:P What am I doing here? Trying to keep my mind engaged ...:D | |
Re: 1) Use the code tags as mentioned. 2)[code=C] TC = getchar(); [/code] Has been used 2 times in a loop, the second value is being over written and is lost. 3) And the construct [icode](TC = getchar() != '\n')[/icode] actually is read by the compiler as [icode](TC = (getchar() != … | |
Re: Is that the screen shot of MSSQL management studios? If it is then you cannot replace it with an image. If it is in your application then it is possible. To answer further we need to know more about the application. | |
Re: You can do it using stored procedure. In stored procedure A [code=sql] exec ProcB param1 param2 [/code] where param1 and param2 are in parameters to Procedure B. | |
Re: It shouldn't normally happen. Check the value of the Label7 in Button2_Click when converting to int. Something must be changing the value of label7. | |
Re: Actually System.Numeric contains a member, BigInteger a Value type. I tried IL DASM and found it different from the object browser. Unfortunately it is not accessible now. It contains really cool stuff and you cannot access it:P.See [URL="http://blogs.msdn.com/bclteam/archive/2008/01/04/where-did-biginteger-go-melitta-andersen.aspx"]here [/URL]for details if you have not already seen. | |
Re: You put the message box in the wrong place. [code=C#] if (tb != null) { if(!string.IsNullOrEmpty(tb.Text)) { Form2 form2 = new Form2(); form2.Show(); } else { //error message goes here... } } [/code] | |
Re: Create a field in the database preferably bool. Set the value of the newly inserted rows as true. Use it to load the value of he checkbox. | |
Re: I don't understand your question. Please explain... | |
Re: I was curious about why a .NET program crashes without showing a debugging message that you generally see. Instead I find you too...carry on you two :) Haha this is i more interesting.:P | |
Re: List in the sense , to get the links from the site? | |
Re: Thread is a built in class in .NET to allow threading. firstThread is a new thread you are creating. [code=C#] new Thread (new ThreadStart (Method1)) [/code] Creates a new instance of the thread.The code that is to be executed is method 'Method1'. The new thread cannot directly run this method … | |
Re: 1) I believe NATURAL JOIN is not supported in MSSQL. 2) You cannot select [icode]FamName, GiveName, DeptNum[/icode] without [icode]group by[/icode] including them. You must be using a different database server, surely not MSSQL. Regarding your question about combining the two, the columns in the tables are needed to further answer … | |
Re: [icode]printf[/icode] returns the number of bytes printed to the terminal. So the expression [icode]printf("HI")-2[/icode] returns 0. We end up with [icode]while(0){}[/icode]. For further clarification on printf visit [URL="http://www.opengroup.org/onlinepubs/007908775/xsh/fprintf.html"]here[/URL]. As printf is the expression used as the condition for the 'while' loop, no semicolon is required.It is same as [code=C] int … | |
Re: Read [URL="http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/7120dac4-8fc5-4cde-ba69-5302251a0631"]this[/URL]. And try googling..:) | |
Re: A few things about your post 1) Use Code tags like [URL="http://www.daniweb.com/forums/announcement61-3.html"]this[/URL] , if you didn't already know. 2) .NET is not a language, the language you are using is VB. 3) If you already know to program on .NET with VB its not too difficult to learn to do … | |
Re: A better method is to use a RegularExpressionValidator. As post #3 suggests mark this post as solved. | |
Re: [code=C#] Array[4] = Array[4].Replace(Array[4].ToString(), lnewvalue.ToString()); [/code] A few other things. 1) () invokes the method. 2) You assign the return value of [icode].Replace()[/icode] method to the string. 3) Its better not to use Array as a variable name, as there exists a class already in .NET which can cause confusion. … | |
Re: Adding to that. 1) The reference types can have more than one reference to the themselves. It would be ambiguous getting variable names even if you were able to access such information. 2) The debugger can know names of variables and other information from the metadata. But only when compiled … | |
Re: [URL="http://blogs.dotnetnerds.com/steve/archive/2007/05/17/DataGridView-Reentrant-Call-Nightmare.aspx"]This[/URL] might be helpful. | |
Re: No, you cant do that. The code is different for the forms. You can try this 1) Detect the click event on the datagrid [code=C#] dataGridView1.CellContentClick += new DataGridViewCellEventHandler(dataGridView1_CellContentClick); [/code] 2)Handle check for the right control do do the action required [code=C#] void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex … | |
Re: Your function is correctly returning a list of at most 'num' lines in the file. There were no blank lines. You might want to recheck other parts of the program. | |
Re: You can copy the text from the RichTextBox into a String and search it using IndexOf method. | |
Re: Adding to that, if you want ease of development choose C#. This I say because of VS. There is nothing like Visual Studios. | |
Re: I suppose this is your problem. [code=C#] if ((reader(0) = textBox7.Text) && (reader(1) = textBox8.Text)) { Form2 fr2 = new Form2(); fr2.Show(); } [/code] Which should have been. [code=C#] if ((reader[0].ToString().Equals(textBox7.Text) && (reader[1].ToString().Equals(textBox8.Text))) { Form2 fr2 = new Form2(); fr2.Show(); } [/code] And you might want to use [code=C#] if(reader.Read()) … |