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# > november 2004 > threads for saturday november 13

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

Socket Send - Seperate Packets for Each buffer
Posted by Hiroyuki_Tanaka4 NO[at]SPAM excite.co.jp at 11/13/2004 11:34:23 PM
Dear Readers, I am trying to learn C# network programming and I have discovered that Windows TCPIP often joins small packets and send them as one to the remote server. This appears to be a default behaviour of TCPIP? I am attempting to send 1000 TCPIP packets to a remote sever with only a ...more >>


iHTMLElementrender.drawtodc causes error in VB.net application
Posted by ddd at 11/13/2004 10:39:40 PM
Hi, I am having problems with using the DrawToDC of the MSHTML.iHTMLElementRender in a VB.net application. For some reason I am getting a "catastrophic error". I am basing the code on c# examples, and I am not sure what exactly I am doing wrong. From the C# posts it seems that the drawtodc ha...more >>

user control event bubbling not working
Posted by Tom at 11/13/2004 8:13:27 PM
hi guys I have a problem a event bubble that isn't working. isn't working= I've opened up a handle in my user control but when I try to use it ie. ok I am trying to assign an event handler from Form1 to a user control's event that I had previously made available.. but something's not right. a...more >>

Get computer name
Posted by Gonçalo Boléo at 11/13/2004 7:59:55 PM
How can i get the name of my computer? Is there any class that gives me access to properties like ComputerName, Workgroup, Domain? thnaks, Gonçalo Boléo ...more >>

Constructor rules - please verify
Posted by Manco at 11/13/2004 7:59:18 PM
1. If you do not declare an explicit constructor, C-sharp will generate a default paramaterless constructor that calls Object:ctor() 2. All derived class constructors implicity call base(), this can be verified by looking at the MSIL. 3. If you declare a constructor in the base class with ...more >>

Launch browser
Posted by Gonçalo Boléo at 11/13/2004 7:59:03 PM
How can i launch the default browser in a separate window from my windows app? thanks, Gonçalo Boléo ...more >>

Problem with active state of a window......
Posted by Giox at 11/13/2004 7:50:55 PM
Hello everybody, I have a problem when I try to activate my Window Form and I don't understand why. I have a owner form with 3 different owned forms and one of this forms is named letter. In my code I open all the owned form and I switch between them using the visible property. For examp...more >>

deserialize problem
Posted by PCH at 11/13/2004 6:12:04 PM
I have 2 functions, one to serialize an object, and one to deserialize it. I can serialize just fine, the problem is when I try to deserialize it later... I get an error: {"Invalid BinaryFormatter stream. " } I looked at the serialized string vs whats pass...more >>



Component: table
Posted by vertigo at 11/13/2004 6:06:40 PM
Hello Is there any graphical component in .net like table ? I would like to show some data (that data is not from database) in table. What can i use ? Thanx Michal ...more >>

Where is System.Math ???
Posted by csst9965 NO[at]SPAM scylla.cs.uoi-dot-gr.no-spam.invalid at 11/13/2004 5:56:23 PM
I'm pretty damn sure there should be a System.Math library somewhere around .Net. But I cannot find it. What is the name of the reference for it? Any Ideas? What could I be doing wrong? *-----------------------* Posted at: www.GroupSrv.com *-----------------------*...more >>

RichTextBox access error ?
Posted by vertigo at 11/13/2004 5:44:47 PM
Hello I have some Threads, and they write something to RichTextBox.Text property. But sometimes i receive error: ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at System.Windows.Forms.RichTextBox.EditStre...more >>

Remove from Alt-Tab List
Posted by Thom Little at 11/13/2004 5:41:35 PM
Alt-Tab provides a list of open applications. Applications in the system tray are not included. The application I developed for the system tray does appear in the list of applications. How can I remove the system tray application from the list? What was the source of your information? ...more >>

switch that uses radio button selection
Posted by Tim923 at 11/13/2004 3:31:28 PM
For an exercise, I must use a switch statement to assign values to variables based on the 1 or 4 radio buttons selected. Can I do this without using an extra if-else statement? Some code below: if (makeOverRadioButton.Checked) {intServiceChoiceLocal = 1;} else if (hairStylingRadioButton.Chec...more >>

multiple declaration statements
Posted by Tim923 at 11/13/2004 3:25:37 PM
I developed a habit of using multiple declaration statements without being aware of it, maybe from Pascal. Is that style no longer taught or used? decimal decTotalCost = 0M, decTotalDiscount = 0M, decTotalExtendedPrice = 0M; or decimal decTotalCost = 0M; decimal decTotalDiscount = 0M;...more >>

Processes
Posted by saborchulo at 11/13/2004 3:13:01 PM
What is the easiest way to associate a process with the ports that the process may have opened? I know how to output all of the process, but say you have a process running that is a web server, how could you display that this process also has port 80 curently open? ...more >>

cookies
Posted by Ziphyre at 11/13/2004 2:49:19 PM
Hi, I try to get cookies from a web site. In the response header, there are 3 Set-Cookie directives, but when I query my CookieCollection with something like: foreach(Cookie cky in hwrsp.Cookies) { cookies.Items.Add(cky.Name + " = " + cky.Value); //a simple list } only these 2...more >>

C# override syntax
Posted by Peder Y at 11/13/2004 2:38:08 PM
I wonder if it's possible to do something like this: public class someClass { Panel pnl; public someClass() { pnl = new Panel(); } public override pnl.OnPaintBackground(...) { } }...more >>

Scrollbar keeps showing as disabled after datagrid is enabled
Posted by Juan at 11/13/2004 12:46:43 PM
After enabling a datagrid control the scrollbar stays disabled even when i have more rows that those being displayed. It only starts working when i sort the datagrid with any displayed column... thanks in advance, Juan. ...more >>

Overriding events...
Posted by Jack Addington at 11/13/2004 12:23:05 PM
I've got some descendent classes and I would like to be able to stop the base class event from firing... How do I do that? ...more >>

OT : Are u instructor material ?
Posted by OHM \( Terry Burns \) at 11/13/2004 9:45:47 AM
I am setting up a developer training school in Slough ( UK ) which is 20 miles west of London, I am looking for people who are willing to earn money by providing their skills transfer through teaching. If you have any experience in training and are VB.NET or C# experienced let me know ( See m...more >>

how to get root node from TreeView?
Posted by Fei Li at 11/13/2004 9:34:02 AM

Request ... get Response ... and Post back ?
Posted by Taggy at 11/13/2004 9:17:56 AM
hi, Can someone help me with this. I am having this codes: WebRequest myRequest = WebRequest.Create( myurl ); -line1 WebResponse myResponse = myRequest.GetResponse(); -line2 ...... to get a reply from a webserver. The reply is actually a form with a textbox and a button. Can i simulate...more >>

Access a file from a web page
Posted by news.bellatlantic.net at 11/13/2004 8:48:40 AM
I created a class that populates a bunch of its properties from an XML file on the file system. I'm planning on using the class on a bunch of sites all working off the same XML file. In testing the idea, it looks like if two users open a page that accesses the file one user will be locked out of ...more >>

How to write something to txt on server
Posted by Miha at 11/13/2004 8:47:08 AM
Hi. I want to write some text ("bla bla") to a file something.txt. That file is accessible on http://192.168.0.1/dir/something.txt (I'm on LAN side). I can read from that file. Web server is on IIS, I set to allow everyone NTFS full control premission, and on IIS server I set allow read and ...more >>

TextBox auto scroll to end when text is added
Posted by Wilfried Mestdagh at 11/13/2004 7:52:02 AM
Hello, textBox += someData + "\r\n"; does not scroll the visible text to the end. How do I perform that ? Also this way seems to me a lot of reallocating memory. Is there better way to add text to a textbox ? -- rgds, Wilfried http://www.mestdagh.biz...more >>

TreeNode design is wrong
Posted by Fei Li at 11/13/2004 7:47:01 AM
Why TreeNode is a string? It should hold a Object and get label from Object.ToString(). Then much better. Easy to trace all objects in a TreeView. ...more >>

why tabPage.Hide() does not work?
Posted by Fei Li at 11/13/2004 7:25:01 AM

compiler options
Posted by Wilfried Mestdagh at 11/13/2004 6:46:02 AM
Hello, How can I set compiler options ? I try to experiment a little with unsafe code, but cannot find where to set this option for the compiler. -- rgds, Wilfried http://www.mestdagh.biz...more >>

Generating event handler at run time.
Posted by mg at 11/13/2004 5:00:03 AM
The following code runs without error, but the alert does not appear. Can you see the problem? private void LinkButton1_Click(object sender, System.EventArgs e) { System.Web.UI.WebControls.ImageButton ImageButton1 = new ImageButton(); ImageButton1.Height = 18; ImageButton1.Width = 100; ...more >>

Events and delegates questions
Posted by Manco at 11/13/2004 2:36:35 AM
1. A delegate is a type-safe, object-oriented function pointer. 2. A delegate declartion is C-sharp, f.e., public delegate void MyDelegate(int); defines a MulticastDelgate which contains a linked-list of delegates that can be added using .Combine method. 3. An event object is an implementa...more >>

cannot have instance field initializers in structs
Posted by Rene at 11/13/2004 12:46:32 AM
Could anyone tell me what is the reason I can't initialize the members of a struct like this: public struct SomeStruct { public int uno = 1; // Error public int dos = 2; // Error public int tres = 3; // Error } I understand that I can initialize the members by pr...more >>

Get XML file!?
Posted by Oscar Thornell at 11/13/2004 12:07:08 AM
Hi! I would like to get (download) an XML file that resides on a HTTP server (Tomcat....doesn´t rely matter..). What is the best way to do that in C#/.NET.....on the client side a typed dataset is waiting for the XML... Regards /Oscar ...more >>


DevelopmentNow Blog