Posts
 
Reputation
Joined
Last Seen
Ranked #452
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
92% Quality Score
Upvotes Received
9
Posts with Upvotes
9
Upvoting Members
8
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
8 Commented Posts
~14.9K People Reached
Favorite Tags
Member Avatar for jmgmail

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 +" , " + …

Member Avatar for lighthead
0
119
Member Avatar for ChrisPaul

[code=SQL] UPDATE tablename set columnname = REPLACE(coulmnname,'old','new') where columnname like '%old%' [/code] Something like this...perhaps

Member Avatar for lighthead
0
85
Member Avatar for tj_amarnath

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 …

Member Avatar for kvprajapati
0
457
Member Avatar for Poab9200

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 …

Member Avatar for Poab9200
0
2K
Member Avatar for wingers1290

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.

Member Avatar for wingers1290
0
137
Member Avatar for lighthead

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

0
33
Member Avatar for RobBrown

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() != …

Member Avatar for Dream2code
0
229
Member Avatar for pee2002

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.

Member Avatar for lighthead
0
93
Member Avatar for tlore22

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.

Member Avatar for lighthead
0
90
Member Avatar for tonief

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.

Member Avatar for lighthead
0
100
Member Avatar for ddanbe

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.

Member Avatar for lighthead
0
133
Member Avatar for wingers1290

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]

Member Avatar for wingers1290
0
265
Member Avatar for ishamputra

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.

Member Avatar for lighthead
0
103
Member Avatar for Rofling Waffles
Member Avatar for papanyquiL

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

Member Avatar for serkan sendur
0
383
Member Avatar for krazee9254
Member Avatar for BobLewiston

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 …

Member Avatar for cq2535
0
403
Member Avatar for jimbo84

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 …

Member Avatar for cgyrob
0
83
Member Avatar for adarshcu

[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 …

Member Avatar for adarshcu
0
108
Member Avatar for laghaterohan

Read [URL="http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/7120dac4-8fc5-4cde-ba69-5302251a0631"]this[/URL]. And try googling..:)

Member Avatar for dnanetwork
0
264
Member Avatar for ginger182

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 …

Member Avatar for dnanetwork
0
97
Member Avatar for yash777
Member Avatar for ctyokley
0
194
Member Avatar for mansi sharma

[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. …

Member Avatar for sknake
0
133
Member Avatar for agent154

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 …

Member Avatar for Ramesh S
0
110
Member Avatar for Dajer

[URL="http://blogs.dotnetnerds.com/steve/archive/2007/05/17/DataGridView-Reentrant-Call-Nightmare.aspx"]This[/URL] might be helpful.

Member Avatar for lighthead
0
430
Member Avatar for laghaterohan

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 …

Member Avatar for laghaterohan
0
344
Member Avatar for tdeck

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.

Member Avatar for lighthead
0
154
Member Avatar for vishalonne

You can copy the text from the RichTextBox into a String and search it using IndexOf method.

Member Avatar for Ramy Mahrous
0
229
Member Avatar for thr

Adding to that, if you want ease of development choose C#. This I say because of VS. There is nothing like Visual Studios.

Member Avatar for Ramy Mahrous
0
235
Member Avatar for chathuD

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()) …

Member Avatar for chathuD
0
406