Network Design - Handling Large Client Loads

2950 byte By Kensino at 2007-11-25 11:14:58
Ok, I have been thinking about this for a long time, and before I jumped in I wanted to get some advice from someone. I am writing a program (which I decided the other day to make as a Windows Service) that will communicate with unlimited clients. For example, say its a chat client. People can conne...

Beginner Question

684 byte By Baad at 2007-11-25 11:15:03
hii just started learning C# and i am stuck on a problem i've been working on. Any advice on how i can approach this problem would be very much apprieciated.i am learning how to use switch case statments so i have to create a winapp to anwer a problem using only switch case statements.Problem...

Attach Form as Child Window

1107 byte By patrickcbrown at 2007-11-25 11:15:13
Hello Does anyone know how or if it is possible to attach a C# form to a window that I found using FindWindowEx? Is there some Win32 api for this? I am tinkering with replacing the Clock in the System Tray and it appears to be harder than I expected. I played with just positioning my form above...

Date and Time?

531 byte By simmerheli at 2007-11-25 11:15:25
Hi allI need to build a string that is based upon the current date and time.I'm unable to locate a class in C# that I can use that would obtain the current date and time.Are there ways in C# to get this info? :confused: Thanks-MikeP.S. I can build the string myself (if a class dosn't...

Decoding 802.11 (WiFi) Dump files

263 byte By GTHill at 2007-11-25 11:15:32
First off, I'm not a programmer. Well, I programmed BASIC on my TI99-4a in 1985 so, there I am.<br/>I have been told that I need a library file that can decode the .dmp files from an 802.11 capture. <br/>Any help would be appreciated!<br/>Gene

NetworkStream.Write - how to?

627 byte By zechasso at 2007-11-25 11:15:51
I have to develop a communication-tool that reads and write data from and to a hardware-tool. This uses a special data-structure looking like this: private struct stHeader { public int iLength; public int iMID; public int iRevNoAck; public int iSpa...

copy a folder from one system to another in network

195 byte By tis707 at 2007-11-25 11:15:59
Hi All<br/>I have to copy folders including files from two systems to another system<br/>that has to run at some time in the night regularly<br/>could any one help me in doing this

.net Window SendMessage CopyData to Vb 6.0 App

558 byte By Mark_Lee at 2007-11-25 11:16:04
Hi Guys, anyone know how to send message between application built with VB 6.0 and C# .net. I've tried to do it using dllimport "SendMessage", i copy data into memory and send message to the VB 6.0 application, I used WM_COPYDATA, but it didn't work. When I tried to send "WM_SETTEXT" it wo...

How to limit window resize to maintain aspect ratio

713 byte By DeepT at 2007-11-25 11:16:09
I would like my client window to always be in the same aspect ratio of the screen. I have started with some of the obvious methods such as using the Resize or OnClientSize changed events and then setting the Y size based on the X size and stuff like that.The problem is that during the window resiz...

Datagridview row height while binded

800 byte By Stonehead at 2007-11-25 11:16:22
Okay. Here I am again with a problem. I searched for a solution but haven't found one yet.I am trying to make a class scheduler so I would get a good overview of my classes on university. I placed a DATAGRIDVIEW in a frame and docked it to cover the whole frame. I made it save the size of the w...

Specifying an install path for a deployed application

342 byte By RaleTheBlade at 2007-11-25 11:16:33
I have an application that I have published in C# and I would like to be able to give the user the option of where to install the application, but I don't see any options anywhere that allows me to do that. Does anyone know how this can be done? Its such a simple little thing, but Ive looked ev...

generating a sentence from this text file

3424 byte By kevinskrazyklub at 2007-11-25 11:16:37
I'm making a Grammar class that consists of non-terminal symbols that define a sentence. Consider the first two lines in the quote. The name of the nonTerminal will be called sentence and the other non-terminals will define the sentence. Under the definition for the 2 types of sentences there...

Sorting Strings Array (w/ Numberical Value) Issue

649 byte By mariocatch at 2007-11-25 11:16:50
Hi All,If I have an array of say 50 or so indexes, containing strings with the value of:Test_1Test_2Test_3......Test_10Test_11If I sort this, it will give the result of:Test_1Test_10Test_11...Test_19Test_2Test_21Test_23I am using the built in Sort() method. Is there any way around this? Perhaps some...

simple question regarding windows programming

1558 byte By kefka95 at 2007-11-25 11:16:56
I've been teaching myself programming just for the heck of it for a while now, and I've decided to migrate from console applications to Windows applications (who the heck wants to use a console application anyway :p ). There are a lot of things that are confusing to me, but I have two mai...

How can i make the first letter of a string uppercase?

59 byte By kevinskrazyklub at 2007-11-25 11:17:06
i know this is trivial but can someone help me out. thanks.

How to read app.config file?

1293 byte By g_anantha at 2007-11-25 11:17:15
<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <sectionGroup name="groupInfo" type="System.Configuration.NameValueSectionHandler"> <section name="CustomerSection" type="System.Configuration.NameValueSectionHandler"/> <se...

Design time and a collection property

573 byte By verifier at 2007-11-25 11:17:20
I've made my own list control. In it I have a columns collection used to define all columns for the control.I got problems with adding columns at design time. Everything works fine if I use a List<Column> as a collection. I can click on the "..." button to add columns.But if I implement m...

"Are You Sure?" popup

275 byte By asantavicca at 2007-11-25 11:17:51
I'm creating a C# app and I'd like to create a small pop-up window that asks the user if they're sure they want to continue. Basically a small box with a "yes" and a "no" button on it. How would I do this? I'm using Visual Studio 2003.<br/>Thanks!

socket server disconnect

755 byte By gizmokaka at 2007-11-25 11:18:02
Hello, I need your help and guidance, I am feeling lost.I have a tcp/ip socket server application that receives messages threw a router.my hardware sits on wireless network, creating messages, and pushes them to a tunneling router than in it's time push the messages to a middleware PC with a so...

Distinguishing system actions from user actions

805 byte By asantavicca at 2007-11-25 11:18:06
I have a program that uses checkboxes to manipulate data in a file. When the program opens, it reads the file and determines whether or not the checkbox should be checked. It then sets the checkbox to the appropriate value (myCheckbox.Checked = true (or false)).The user then has the option to chec...

printNames Method

389 byte By ryno3185 at 2007-11-25 11:18:11
How do I Create a method named "printNames". It should accept one string (a person's name) as an argument and find the first and last names in the string? Useing the instance methods of the string to figure out where the break in the names are. After you find the names, print them to the consol...

VertexBuffer isnt working for me

4638 byte By dahwan at 2007-11-25 11:18:19
Been trying to set up a 3D program with a vertex buffer for a long time now, but i never get anything displayed except the Device.Clear() function.The vertexes doesnt show. Can anyone see why?Program.csusing System;using System.Drawing;using System.Windows.Forms;using Microsoft.DirectX;using Microso...

Beginner Question

389 byte By ryno3185 at 2007-11-25 11:18:29
How do I Create a method named "printNames". It should accept one string (a person's name) as an argument and find the first and last names in the string? Useing the instance methods of the string to figure out where the break in the names are. After you find the names, print them to the consol...

Jagged dynamic array

2368 byte By CaptainBalrog at 2007-11-25 11:18:54
Hi there. I have done two dimensional jagged arrays before but i'm having trouble with a three dimensional one.Here's the code, in this case its storing column widths for no particular reason. Just an example.viewInd is set to colWidths.Length-1 and tInd is set to colWidths[viewInd].Length...

Copy data from a buffer into variables

350 byte By zechasso at 2007-11-25 11:19:04
I read data with NetworkStream.Read into a byte[] buffer.Now I want to transfer the data into some local variables.For example the data in the buffer has the following structure:ID -> 4bytesChannel -> 2bytesText -> 25bytesHow can I transfer this data from the buffer (byte[37]) into this 3 l...

Do we need to pass the realm with credentials to proxy server in C#.net?

1438 byte By ghorpade.sangram at 2007-11-25 11:19:09
Hi,Currently i am able to hit to the proxy server by supplying usernameand password after getting 407 response from proxy server. The serveris configure with authName =private which i get as Basic realm in theserver response. The config file contains:# Proxy directive - asks for authentication when...

Silverlight 1.0 and 1.1

457 byte By Brad Jones at 2007-11-25 11:19:33
I'm looking for someone that is really using Silverlight 1.0 and 1.1. I want to create a series of articles and sample applications and need one or two people to help do this. This is not for dev-archive, so I'll be able to pay a small token amount for this. If you are interested, let me k...

Tab stops

565 byte By michig54 at 2007-11-25 11:19:51
This seems like a very simple problem but i can't figure out what is going on. I have several controls on a form, its a very simple layout. I have the tab index set in order from left to right/ up to down on the controls. Now this is the wierd part, when I tab to the last control on the form...

Window + D key press

191 byte By newnick at 2007-11-25 11:19:52
Hello,<br/> How do my app listen to Window + D keys combinations which causes my app to be minimized to task bar..?<br/>Is there any specific event received by the app?<br/>Thanks,

Controls Buttons

180 byte By newnick at 2007-11-25 11:20:00
Hello,<br/> How do I enable/disable control buttons( minimize, maxmize, 'x') ?<br/> Is it possible to set some custom tool tips for these buttons?<br/>Thanks,

Why does it DING when returning from full screen?

897 byte By w0lfshad3 at 2007-11-25 11:20:09
Problem: when i return from full screen a system ding sound occurs and i cannot find out why. All i do is create new window application, add the code below in a handler for KeyDown. private void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.Alt && e.KeyCode == Keys.Enter)...

make the text file read in 1 line ... help

2086 byte By jayzee at 2007-11-25 11:20:25
hi all~ i am new in this forum, i need help in C# from everyone else.i wish to make the following text file read in one line, such as below:before that:</tr><tr class="one"><td>108 Mile Ranch</td><td>ZMH</td><td><a href=" http://www.world-airport-codes.com...

Format characters

581 byte By zechasso at 2007-11-25 11:20:26
I have to program a protocol-communication and there are fields like this (i post the description):name: lengthbytes: 4comment: the header always contains the length of the telegram. The length is four ASCII digits long ('0'..'9') specifying a ronage of 0000 to 9999. How can i pu...

Serializable - Network/Sockets Error

4391 byte By Kensino at 2007-11-25 11:20:29
I am working on a Bingo game with my friend that is registered here. We are having a problem with the networking code, and this is the first time I've use a network so I'm not sure what we are doing wrong. We are using a System.Net.Sockets example and trying to modify the code. Class that...

Tab Control Text color

118 byte By rohit361 at 2007-11-25 11:20:38
How can one change the color of text of tab control at run time,<br/>like i want a particular tab color to be red

DataGridView using ComboBox Controls

913 byte By Hubibi at 2007-11-25 11:20:40
Hi everybody,in my application i want to use a DataGridView to add/edit some data. I'm not using a database or anything like this. I use the DataGridView because it has more possibilities than the normal ListView Control.In my DataGridView i have a few ComboBox Fields. If the user selects one v...

2 performance questions

321 byte By jdm2104 at 2007-11-25 11:20:47
1) Is there any way of determining/measuring the the extent of the floating point part of my computation (as a % of runtime)?2) Also, is there any way what to determine what currently dominates in my application - (I/O) or compute? I guess what I need are some sort of monitoring functions available...

Listen to receive data on TCP

451 byte By zechasso at 2007-11-25 11:21:06
I communicate with a device and want to listen to the TCP-connection to know if the device is sending data.I initialize the communication with a NetworkStream-object.This works really fine.But I don't know how to listen to this communication to get a "event" or anything else if data is comming...

Arrays in C#

331 byte By asantavicca at 2007-11-25 11:21:19
What's the code for returning the length of the first dimension of a 2D array?If I declare this:String[,] myArray = new String[5,3]; ...then the myArray.Length variable returns 15, not 5 (in Java it would return 5). How can I access just the length of one of the two dimensions?Thanks!...

Killing SerialPort.ReadLine() Gracefully

1243 byte By RaleTheBlade at 2007-11-25 11:21:25
I have a COM port read operation going on in my program that of course, sits and listens to the specified COM port and reads data in as long as it is told to using a while loop to instigate the process of "read, buffer, process, back to read and loop again".My issue is that I cant seem to find a way...

Basic int question - i feelz dum

519 byte By asantavicca at 2007-11-25 11:21:29
Here's my code:int index;for (int i = 0; i <= myArray.GetLength(0) - 1; i++) if (myArray[i,0].ToString() == checkVariable) index = i;MessageBox.Show("Index found is " +index);I'm receiving an error telling me that "index" must be initialized before it's displayed in the...

selection problem in a listview control

586 byte By mpoincare at 2007-11-25 11:21:34
Hi everyone,I am developing the GUI of a program in c#. I created a form with a listview that is populated from a query. Whenever I select a line in the listview control to open an other form that shows the content of each field in the record, only the content of the last line on the listview is dis...

Comparing two string arrays?

785 byte By mmx_nexus at 2007-11-25 11:21:39
Hi,How do i compare two string arrays efficiently in .NET 2.0..??I have two arrays like given below..string[] brokers1 = new string[]{"john","andy",Mitchel","Harry"};string[] brokers2 = new string[]{"andy","john","Harry","Mitchel"}; Following conditions should return false:1)If the length of arrays...

Asynch or Multithread in C#?

350 byte By RaleTheBlade at 2007-11-25 11:21:44
I just want to know, what is best to use for what? I have heard that multi threading is better for applications that require many activities going on at one time. And that asynchronous programming is better for applications that do very few multiple processes at one time. Then again, I have heard it...

Zooming a group of controls

8540 byte By w0lfshad3 at 2007-11-25 11:22:02
EDIT: the panel logic must be before the child controls logic, fixed in the source or downloadEDIT2: added:(on complete method that processes panel1 and its childs)I just use ControlsBuffer[...Index] instead of panel1.Controls[...Index]Control[] ControlsBuffer = new Control[panel1.Controls.Count];pa...

Double click on Title Bar

137 byte By newnick at 2007-11-25 11:22:16
Hello,<br/> How will the App maxmize/restore on double clicking on Title Bar? Can any one send me some code snippet?<br/>Thanks,

Downloading failed with HRESULT=-2146697210

1065 byte By Frank100 at 2007-11-25 11:22:28
HiI have published my application on Linux Apache web server. I am using ClickOnceDeployment provided by Microsoft.But when I am trying to launch/Install this application I am facing this problem.(10/11/2007 12:54:37 PM) Downloading 'CrystalReports\CRRedist2005_x86.msi' from ' http://w...

DropDown in DataGridView

133 byte By vivekshah at 2007-11-25 11:22:31
HI all, <br/>Can any body tell me how to display a checked dropdownlist in a DataGridView Column...?<br/>Thanks in advance.

Diagram Implementation C#

595 byte By sunny542 at 2007-11-25 11:22:43
Hello dear C# programmers,I have to create a school project.The project will be written in C#. I need to read a text file that containscode in 'C language', and create a Diagram based on the code from the text file.Basically it should create some sort of tree of 'C commands', so...

How to add push pin to dialog?

200 byte By bee_line42172 at 2007-11-25 11:22:50
How does one add a push pin to a dialog?<br/>(These searches on Code Guru yield no results, so I'm probably using the wrong terminology:<br/>pin dialog<br/>pinnable dialog<br/>push pin)