Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > c# > march 2005 > threads for sunday march 6

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

.Net Sockets and QOS
Posted by Fade BS via DotNetMonster.com at 3/6/2005 11:17:28 PM
i have been trying to implement QualityOfServive capabilities onto a c client-Server project i have been working on, and i have reached a dead end. it seems that in order to implement QOS capabilities on a socket it has to be created using the WSASocket method- BUT - when doing so i can't see a ...more >>


[Proposal] Short namespace syntax
Posted by cody at 3/6/2005 10:49:49 PM
Why do we always need braces around namespaces? It frightens me that even a simply class looks so much nested and complicated due to this verbose namespace syntax. It also unnecessarily increases the indentation level of *every* file. The funny thing is that I cannot imagine one single situ...more >>

user control inside placeholder
Posted by patrick_a at 3/6/2005 10:49:03 PM
Hello, I am trying to insert multiple instances of a custom user control into a placeholder on an aspx page, based on the records retrieved from the database. I use the datareader to loop through the records and I want to create a new instance of the user control for each record and then cha...more >>

C# compiler on the command line?
Posted by John Salerno at 3/6/2005 8:30:08 PM
I just installed the SDK, but when I typed csc /help on the command line (from the C: directory), it said 'csc' wasn't a recognized command. Why didn't that work? Do I need to be in a different directory?...more >>

need to send a pointer in C#
Posted by vidalsasoon at 3/6/2005 7:56:57 PM
I need to send a pointer value to a fuction :( This is what it is expecting. BaseEffect.SetValue(Microsoft.DirectX.Direct3D.EffectHandle, void*, int) The problem is the void* part. I'm tring to send an array of floats but the compiler doesn't like it. Anyway I could push it through witho...more >>

serialize list in a zip?
Posted by frazan at 3/6/2005 6:42:10 PM
Hi, I would like to solve a problem. Normally in my code I use this: ---------------------------------------- public void SaveFileCat(string path) { Stream myfile; IFormatter formatter = new BinaryFormatter(); if(File.Exists(path)) { myfile = new FileStream(path, Fi...more >>

When to redraw control?
Posted by CroDude at 3/6/2005 6:20:41 PM
Hi all! I've made a simple control derived from a panel class which draws gradient in a overrided OnPaintBackground event. Well, I know that I need to redraw control when it's resized by overriding OnResize event, but how would I know when to redraw if, let's say, user drags some form over it...more >>

One Sql Command, Two Result Sets
Posted by Michael C# at 3/6/2005 6:20:28 PM
Hi all, I'm sending a command via SqlClient, and it returns two result sets. I can successfully read the first result set, but how can I access the second result set? Here's an example of my SqlCommand CommandText: DECLARE @result AS INT\nEXEC @result = master..xp_cmdshell 'dir "c:\*.*" ...more >>



Listing Network adaptors question.
Posted by Naveen Mukkelli at 3/6/2005 6:11:01 PM
Hi, I've got two network adaptors in my computer(Windows server 2003). One for public network such as internet, and the other for a private network. I mean, I want to connect other 2 PCs (XP Pro with SP3) to this adaptor and create a private LAN. Now I want to run my server a...more >>

C# equivalent of Pascal "With"
Posted by DrOrbit at 3/6/2005 5:56:28 PM
In Pascal/Delphi you can say With MyStructure do begin Field1 := something; Field2 := somethingElse; : // and so on... end; "With MyStructure" avoids having to prepend "MyStructure" to every reference to MyStructure's fields. Is there an equivalent in C#? ...more >>

Accessing properties of multiple (different) controls
Posted by jralford NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/6/2005 5:45:24 PM
Hi, I have a main form with a number of controls on it. They are a range of different customized controls. There are some properties that belong to all of these controls, such as XOffset, YOffset etc. Currently, in order to get this value when for instance, the user clicks on the control, I ...more >>

Specialization with generics
Posted by Michael Sparks at 3/6/2005 4:06:16 PM
I started writing some code with the 2.0 beta compiler, and found out quickly that specialization is not supported with generics. For example, I want to do something like this: class number ... class integer : number ... class real : number ... class multiplier<_number> where _number : nu...more >>

help this newbie! : mnaged directx with c#
Posted by wize010 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/6/2005 3:54:32 PM
hi , i have just started to read a book called managed directx : kickstart by Tim Miller for games programming. i have a basic knowledge of programming in general. as i used to work in java and c, but now i have to design a simple 3d game using managed directx and direct3d. i started with t...more >>

Using PInvoke with string pointers
Posted by Bob Dankert at 3/6/2005 3:54:11 PM
I need to use functions through PInvoke which accept and return pointers to strings. What is the best way to get string pointers (IntPtr I am guessing?) to pass into these functions, and the best way to take the pointers (again, IntPtr I assume?) into strings? Thanks, Bob ...more >>

SubClassing WniUI
Posted by w at 3/6/2005 3:02:24 PM
Hi Everyone, I'm currently working on a program that contains a series of forms. All of these forms need to have the SAME toolbar. I've tried creating a base form, called templateForm and making all my forms inherit from it. The problem is though, I cannot seem to put the click events on each sub...more >>

How to handle Ctrl+Enter
Posted by Coder at 3/6/2005 2:55:59 PM
hi, there is still no answer, i wonder if there is a way to handle the multiple key-press event on a C# windows form, like "Ctrl+Enter" ...more >>

Read data from dataSet
Posted by Fox at 3/6/2005 2:28:31 PM
I have create a dataSet and two table (father and son table) and set a relationship between them (call father_uid (int)). Is there any simple way, that I can get the row data include father and son table items. (do not use dataGuid) eq father_uid, father_field1,father_field2,son_field1,s...more >>

custom paste context menu fvor text boxes
Posted by Dennis C. Drumm at 3/6/2005 12:14:10 PM
Is there a way to modify the standard context menu shown when someone right clicks in a windows text box and that would work for all open windows applications? The standard context menu for a text box has 6 items, undo, cut, copy, paste, delete and select all. I would like to add one ad...more >>

Programmatically Recycling IIS Application Pools
Posted by Ram at 3/6/2005 12:00:36 PM
Hey, Is there a way to remotely Recycle IIS 6.0 Application Pools in .Net? Thanks ahead --Ram ...more >>

Pls help with rgestry problems
Posted by Adrian at 3/6/2005 11:43:22 AM
This is off topic - however, I badly need to solve this problem. A program has been installed in Program Files of an W98 machine. Subsequently the program was removed from Program Files, not in the proper way though, it was just deleted. Trying to install a new version of the program, a mess...more >>

how to create a flashing text cursor
Posted by Thilo Frank at 3/6/2005 10:27:03 AM
I want to add a flashing text cursor to my selfmade user control. Is there an existing class availible for this problem or do I have to write a thread, which flashs the cursor? THX for your help Thilo ...more >>

How can I compress a file in .NET
Posted by ad at 3/6/2005 10:22:35 AM
I used a dataset to produce a xml file. I want to upload the xml file to server by web service. The xml file is to big(about 4M). How can I compress a file in .NET? ...more >>

ArgumentException: Invalid parameter used at Bitmap.SetPixel
Posted by haliseirak NO[at]SPAM yahoo-dot-com.no-spam.invalid at 3/6/2005 9:47:13 AM
Hi, i am in trouble with an exception in .net platform with c#. The exception thrown is exactly as follows: System.ArgumentException: Invalid parameter used. at System.Drawing.Bitmap.SetPixel(Int32 x, Int32 y, Color color) at binaryData2Image.Form1.button_Click(Object sender, EventA...more >>

"\n" does not work inside a textbox control class
Posted by Kerem Gümrükcü at 3/6/2005 9:09:10 AM
Hi, i am about to burst!!! how can i make my string break inside a textbox? i mean with a control charater like "\n", but it does not work! i have a string and i must set the wrap manuall, not controled by the wordwrap property of the textbox. as i alread said: "\n" does not work! Languag...more >>

Ripping CD's straight to .mp3 or .ogg?
Posted by homerjk at 3/6/2005 8:33:32 AM
Hi guys, Im developing a music centre project for college and i was just wondering could someone clear this up for me before i delve into it further. Is it possible to rip straight from a CD to .mp3 or .ogg using C#? These are the only two format options i am allowed to use. I have done ...more >>

array list
Posted by juli jul at 3/6/2005 2:32:35 AM
Hello, Is there any method in the arraylist which will return an object from the list (according to it index)? Thank you very much! *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Filesystemwatcher detecting File Closing. How ?
Posted by Sagaert Johan at 3/6/2005 12:44:52 AM
I have a program that uses the filesystemwatcher. Problem is that i have to wait until the file is closed before i can do someting with it in the changed event. How can i detect if the foreighn application has finished writing and has closed the file ? Johan ...more >>


DevelopmentNow Blog