Posts
 
Reputation
Joined
Last Seen
Ranked #589
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
95% Quality Score
Upvotes Received
23
Posts with Upvotes
18
Upvoting Members
21
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
8 Commented Posts
~52.6K People Reached
About Me

Love working with .NET and ASP.NET

Interests
Astronomy, Going to the gym, fishing.
Favorite Tags
Member Avatar for james6754

Hi everyone this is my first code snippet so be gentle.. I have written a basic client/server chat program that uses multithreading for listening and sending. I welcome any improvements or discussion... Thanks James

Member Avatar for Arpit_1
2
12K
Member Avatar for jjones0150

All your going to do is annoy people by posting things like this....you need to attempt it yourself first and show that your trying...

Member Avatar for james6754
-1
148
Member Avatar for james6754

Hi, I have just started php. I have a contact form on my website and am using the is_numeric function to check that the phone number entered is a number. What I want to do is, if the phone number is not a number to output a message just underneath …

Member Avatar for stekmil
0
2K
Member Avatar for kavitha_1

You can't. You can't use .NET to write an extension for firefox. Although you could write an extension that runs your .NET application!

Member Avatar for james6754
0
72
Member Avatar for NCL89

There is no need to do all this, you are opening and closing your connection to the db twice. Instead of this, why dont you store 'isactive' in your table row depending on which button is clicked (submit or reject). DataGridItem drow = (DataGridItem)(sender as Control).Parent.Parent; RadioButton rbpApprove = (RadioButton)drow.FindControl("rbtnapprove"); …

Member Avatar for james6754
0
191
Member Avatar for sagngh8
Member Avatar for james6754
-1
101
Member Avatar for visweswaran28
Member Avatar for elvis1

Well first you need to d/l an adapter for SQLITE. http://system.data.sqlite.org/index.html/doc/trunk/www/index.wiki Get the correct one for your system...get that up and running then then go here, this explains it... [Click Here](http://www.codeproject.com/Articles/22165/Using-SQLite-in-your-C-Application)

Member Avatar for james6754
0
69
Member Avatar for Lemorlenny

You should add a reference to this namespace also...right click your project, click add reference and find System.Data then click add reference.

Member Avatar for james6754
0
8K
Member Avatar for Victoryy
Member Avatar for gyno
Member Avatar for coding101

Create a class for Reading and one for writing, create a thread for each...this will allow you to read from and write to the socket. I posted a code snippet for this a couple of weeks back, check it out it should give you some ideas.

Member Avatar for james6754
0
192
Member Avatar for Counterpartz

To answer your first question, yes, you have an array with 5 elements. int[] Inputs = new int[5]; He is asking you to store the users numbers in the array and do your calculations on them. Then on the second step you may have a flag (boolean value) that checks …

Member Avatar for tinstaafl
0
238
Member Avatar for sundog1

Hmmm, can you post your sql for updating aswell and does that work? maybe you are providing parameters in the wrong order than you are in the one above. basically your trying to fill the dataset with the wrong order of parameters?

Member Avatar for sundog1
0
335
Member Avatar for antrock101

On line 22 you have a SqlCeDataAdapter.. System.Data.SqlServerCe.SqlCeDataAdapter da1; and on line 110 you are trying to create an instance of SqlCommandBuilder System.Data.SqlClient.SqlCommandBuilder cb; cb = new System.Data.SqlClient.SqlCommandBuilder(da1); An sql compact db is not the same as another type of db. You are trying to instansiate a SqlCommandBuilder object whilst …

Member Avatar for james6754
0
225
Member Avatar for Cameronsmith63

Well first you need to buy an Arduino board (obviously). You can buy a kit that will get you started from Ebay: http://www.ebay.co.uk/itm/Arduino-UNO-R3-Starter-Kit-Proto-Board-jumpers-LEDS-USB-Lead-More-/271113679029?pt=UK_Computing_Other_Computing_Networking&hash=item3f1fa270b5 (not sure if you are in the UK) The Arduino programming language is a simplified version of c/c++.. You can download the software to create and upload …

Member Avatar for Cameronsmith63
0
184
Member Avatar for james6754

Ok so I am writing an entry level CV. I have no previous experience in the computing industry although I have listed personal projects I have done for others etc... My question is, for the last five years or so I have worked in a factory, not related to computing, …

Member Avatar for mike_2000_17
0
90
Member Avatar for siralv1

private void button1_Click(object sender, EventArgs e) { string[] arr = new string[10]; for (int i = 0; i < arr.Length; i++) { arr[i] = "String: " + i; comboBox1.Items.Add(arr[i]); } } You should bring along some of your own code to show you have at least attempted it.

Member Avatar for james6754
0
270
Member Avatar for dhani09
Member Avatar for plbo

I'm not sure this is possible...imagine the problems that could be caused if this was possible... As tinstaafl said, you can disable (or enable) an adapter using WMI (specifically the MSFT_NetAdapter class). [Click Here](http://msdn.microsoft.com/en-gb/library/windows/desktop/hh968170(v=vs.85).aspx)

Member Avatar for james6754
0
817
Member Avatar for ChrisHunter

So you could raise the CellContentClick event on the DGV.. private void dataGridViewMain_CellContentClick(object sender, DataGridViewCellEventArgs e) { if(e.ColumnIndex == 2)//2 is whichever column your combobox is { //do something with value } } Is that what you mean or did you want to get the value of the ComboBox??

Member Avatar for james6754
0
2K
Member Avatar for kubiak

How have you created the DB...do you have SQL server installed...Make sure you are not trying to connect to SQL compact DB.

Member Avatar for grarhakim
0
249
Member Avatar for ROSS679

you mean like this? private void btn_MakeFullScreenClick(object sender, EventArgs e) { this.TopMost = true; this.FormBorderStyle = FormBorderStyle.None; this.WindowState = FormWindowState.Maximized; } You will have to have another that makes it return to normal size... private void button2_Click(object sender, EventArgs e) { this.TopMost = false; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;//(return to whatever borderstyle …

Member Avatar for ROSS679
0
95
Member Avatar for hiral2cool

What you should do is get the Date from the DGV cell. So lets say the user clicks on the cell with date in...you should use the CellContentClick to determine where has been clicked on the DGV. (Remember cell and column indexes are zero based) //use the cell contentclick event …

Member Avatar for AnnieCalvert
0
347
Member Avatar for tanu.jain.39566

Look in to using ASP.NET, you can create an ASP web app and do it like that....

Member Avatar for tanu.jain.39566
0
111
Member Avatar for dalip_007
Member Avatar for JorgeM
0
257
Member Avatar for king03

I do not get an error when entering '111-11-1111' and p/w 111 I get an error when entering 222-22-2222 and p/w 222... Because you are doing string line = reader.ReadLine(); this is giving line = ""; after that you check if line is null... while (line != null) it is …

Member Avatar for james6754
0
285
Member Avatar for JellybeanFB

Maybe this will help, http://stackoverflow.com/questions/823511/problem-in-reading-excel-sheet-with-special-character-in-c-sharp "Googling around suggests that this is an inherent feature of OLEDB, rather than being anything to do with Excel - it seems to simply not like periods (.) in column names."

Member Avatar for james6754
0
129
Member Avatar for james6754

I am trying to use the Sqlcecmd (command line tool for compact DB) but all it seems to do is open and close straight away... Any ideas?

Member Avatar for Mitja Bonca
0
90
Member Avatar for esedee

Something like this, declare an integer variable in your class int buttonsClicked = 0; Then in each click handler for each button just increment this variable, followed by a call to a function to be written a bit later... buttonsClicked++; error(); now write a simple function that will check whether …

Member Avatar for esedee
0
151