Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
12
Posts with Upvotes
9
Upvoting Members
12
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
4 Commented Posts
~58.5K People Reached
Member Avatar for WildBamaBoy

I'm trying to send data back and forth between two computers using a Socket (TCP). The data is in the form of serialized Packet objects. At an early point in the application, it must send 25 or so Packets of the same type to the other side. See Case 1 …

Member Avatar for Ketsuekiame
0
532
Member Avatar for ibsystems

[url]http://www.memory4less.com/m4l_itemdetail.aspx?partno=KVR333D4R25/1G&itemid=27104376&rid=fd_10[/url] It has the same part number as what you requested.

Member Avatar for Daves Dad
0
284
Member Avatar for abdelhakeem

You reached 380 points, so you achieved position 11591 of 658357 on the ranking list You type 501 characters per minute You have 90 correct words and you have 1 wrong words The highest wpm I remember getting was on some baby-ish typing program in our school's computer app class. …

Member Avatar for nick.crane
0
448
Member Avatar for apanimesh061

There's another operating system called "Cosmos" that is written in C#, although I think it just converts the C# to Assembly and compiles that. I'm not exactly sure how the thing works at all. :D Maybe it's something worth looking at?

Member Avatar for WildBamaBoy
0
209
Member Avatar for WildBamaBoy

Here's my dilema. My client program is going to request a certain file from my server program, so the server program needs to send the size of the file it requests and then the file itself by using a Socket all in one go. My client will then read the …

Member Avatar for WildBamaBoy
0
406
Member Avatar for kapojian

Not really understanding what you mean...You can have as many if statements as you want wherever you want pretty much.

Member Avatar for Momerath
0
106
Member Avatar for pseudorandom21

Antivirus programs search a virus executable for a known piece of code or some other sort of signature that uniquely identifies it. Exactly how a virus is identified depends upon how the antivirus was made. The "signatures" or "definitions" you download just about every day is a database containing these …

Member Avatar for skatamatic
0
361
Member Avatar for WildBamaBoy

The program that uses this function is receiving files of multiple types and sizes from another PC. It has been working well but when the files' size exceeds about 100MB I run out of memory. I need to modify the receiving code so that it saves the incomplete file to …

Member Avatar for oredigger
0
154
Member Avatar for khocmedemmua

You'll need to keep track of how many it sends and tell it to stop and wait a specified amount of time when that number reaches 400. Here's an example. I do not know how long you might want it to wait, I assumed 30 seconds. [CODE] int SentEmails = …

Member Avatar for khocmedemmua
0
189
Member Avatar for Buffalo101

Would this work for you? This will open the specified website in the user's default browser. [CODE]System.Diagnostics.Process.Start("http://www.daniweb.com/");[/CODE]

Member Avatar for Buffalo101
0
227
Member Avatar for FELIGO

Please use code tags next time. :) [CODE] int P = 0; int[,] numbers = {{1, 2, 0, 6 }, {5, 6, 7, 0 }, {9, 3, 6, 2 }, {6, 4, 8, 1}}; int[] A = new int[16]; foreach (int n in numbers) { A[P] = n; P++; } …

Member Avatar for Bridgekeepers
0
1K
Member Avatar for WildBamaBoy

The attached program has a small bug when you right click on an item. The first time you right click any item it'll throw the context menu (it's the same menu under File) all the way up to the top left of the screen, but the second time you right …

Member Avatar for WildBamaBoy
0
114
Member Avatar for rminator

Its taking a string called ligne, splitting it at char 59 (that's a semicolon), and assigning valeur as index zero of the split. C# equivalent of that [CODE]string valeur = ligne.Split(';')[0];[/CODE]

Member Avatar for samueal
0
272
Member Avatar for krosty4782

I'm also working on something similar to this. I believe your problem is that you're writing a string representation of the data to the file. .txt files contain only text and nothing else. Right click a .txt file and open it with Notepad. It's just text. Now right click an …

Member Avatar for oredigger
0
193
Member Avatar for anurag.kyal

Use code tags please. :) [CODE]static void Main(string[] args) { string[,] fp = readFilePaths(); OleDbConnection con = new OleDbConnection(); OleDbDataAdapter da; DataSet ds = new DataSet(); con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/Documents and Settings/kyalanur/Desktop/Nav tool/PCGDataManager.mdb;User ID=;Password=;"; string sq = "SELECT * FROM History"; con.Open(); da = new OleDbDataAdapter(sq, con); da.Fill(ds, "History"); for …

Member Avatar for Momerath
0
563
Member Avatar for Stefan_Lam88

Try incorporating what is in the web.config into the code itself. This worked for me. [CODE] MailMessage message = new MailMessage(); SmtpClient smtpClient = new SmtpClient("smtp.gmail.com"); message.From = new MailAddress("testing@gmail.com"); message.To.Add("alex@hotmail.com"); message.To.Add("alex2@hotmail.com"); message.Subject = "Test Mail"; message.Body = "This is for testing SMTP mail from GMAIL"; smtpClient.Port = 587; smtpClient.Credentials …

Member Avatar for Stefan_Lam88
0
144
Member Avatar for WildBamaBoy

In my client/server program, whenever I need to get data from one or the other it requires a buffer to temporarily store the data. The problem is that I don't know how much data I am going to be getting. I could be receiving a few lines of text or …

Member Avatar for WildBamaBoy
0
512
Member Avatar for MrCapuchino

Your buffer needs to be 1048576 if you want to get up to a megabyte. Warning though, reading cuts off when the buffer is full so if your image turns out to be bigger than a megabyte you're not going to have the full image and it will throw an …

Member Avatar for MrCapuchino
0
2K
Member Avatar for SoulReaper1680

This will do it. [CODE]for (int I = 1; I <= 4; I++) { this.Controls["label" + I].Text = "Some text"; }[/CODE]

Member Avatar for SoulReaper1680
0
386
Member Avatar for pilipino93

I don't believe you're going to be able to [I]easily[/I] get the path of a file just by having its file name. That's what Search does. The first thing that popped up in my head was to create a dictionary. Make the key be the file's name and make the …

Member Avatar for pilipino93
0
188
Member Avatar for WildBamaBoy

If you look at a bunch of files with the Details view, file types known to Windows have a greater description of the file in the Type column. For example, .exe is an Application, .txt is a Text Document, and .cpp is C++ Source. If they are not known, Windows …

Member Avatar for WildBamaBoy
0
92
Member Avatar for localp

When you make a new 'A' and tell it to Show(), you should see another method called ShowDialog(). This is exactly what you want as execution will not continue until that dialog is closed. Here's an example. Assuming the form you want to call is named SubmitForm. [CODE]SubmitForm A = …

Member Avatar for Momerath
0
94
Member Avatar for niths

Try this. I don't understand the problem fully but this is what I use to get the computer's 'external' IP that you can connect to it from, especially if it is behind a router. [CODE]string IP = new WebClient().DownloadString("http://automation.whatismyip.com/n09230945.asp");[/CODE]

Member Avatar for zmeditation1
0
209
Member Avatar for MasterBerd

There's an infinite recursion going on. Here's what is happening. Line 127: You make a BattleshipBoard object called 'b' giving it the value of a new BattleshipBoard class. It's going to go through and assign any variables you tell it to and make its methods available to the object you …

Member Avatar for MasterBerd
0
1K
Member Avatar for WildBamaBoy

Right now I only need to be able to send a 100kb JPEG photo. I tried Google and found a couple of things but their code only threw exceptions so maybe what they've done is not appropriate in my situation. This is an attempt at a remote screen viewer. If …

Member Avatar for oredigger
0
183
Member Avatar for adi.shoukat

You can set a control's location and many other properties from within the code. What you want to do would be done like so, and other properties can be set in a similar way. [CODE]ButtonName.Location = new Point(X, Y);[/CODE] I'd put this in the constructor, after InitializeComponent();, so that it …

Member Avatar for adi.shoukat
0
331
Member Avatar for JOSheaIV

Hey! I've done something exactly like this before! :) DateTime and TimeSpan didn't work so well for me and required extra crap like Days, Year, Seconds, etc. I didn't like that. I only wanted the distance between two hours in one day. What I ended up doing was, if the …

Member Avatar for JOSheaIV
0
886
Member Avatar for WildBamaBoy

I want to start a method whose name is in a string. My server program will be receiving commands from the client, perform those commands, and send the information back to the client. So instead of using a switch with many cases that only execute a method, I thought it …

Member Avatar for WildBamaBoy
0
144
Member Avatar for WildBamaBoy

I have a group with 7 different NumericUpDown boxes in it. Above those I have a label that tells how many choices you have remaining. When the NumericUpDown goes up, the remainder goes down. However it also goes down when a NumericUpDown goes down as well. It needs to go …

Member Avatar for abelLazm
0
83
Member Avatar for WildBamaBoy

This list box will contain the name of processes that are currently running. My function to update the list first checks to see if it does not contain the name of a process that is running, then adds the process if it needs to. Then it checks to see if …

Member Avatar for WildBamaBoy
0
161