Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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# > july 2003

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

could you explain why?
Posted by David Wang at 7/31/2003 11:43:59 PM
HI, Please look at following code example: string convert2string(byte [] bys) { string string1 = Encoding.ASCII.GetString(bys, 0, 30).TrimEnd(null); return string1; } byte [] allzero = new byte [40]; string dbstr = convert2string(byte); After I get dbstr(which is empty), I w...more >>


WebBrowser in C# (VS.NET Start Page)
Posted by Noah Coad [MVP .NET/C#] at 7/31/2003 10:28:52 PM
How does one gain access to the WebBrowser (SHDocVw) control to the extent of the one used in VS.NET Start Page? I'm familiar with using the control directly, I've written a tutorial on it, and am familiar with HTML Applications (HTA), but how are features like the right-click context sensitiv...more >>

writing buffers to NetworkStream from TCPClient
Posted by Rob Tillie at 7/31/2003 10:22:32 PM
Does one have to adhere to the usual boundaries from the underlying protocols? What happens when you write a byte[] which is for example 50 kb to the stream? Greetz, -- Rob. ...more >>

Is this a bug of RichTextBox control??
Posted by Yuelin at 7/31/2003 10:14:12 PM
Hi all I are stuck on a problem with RichTextBox control. On a simple form - a label, a richtext control, a button, in the button even method I write: private void button1_Click(object sender, System.EventArgs e) { try { string name = this.richTextBox1.SelectionFont.FontFa...more >>

About form question ??
Posted by MingChih Tsai at 7/31/2003 10:07:37 PM
Dear All, I have two forms and each form has one button. When I click the button 1(on form1), the form1 will hide and the form2 will show. My question is how should I do if I want to click the button2(on form2) the form2 will hide and the form1 will show ? Thanks, PP ...more >>

a good preferably free obfuscator/protector?
Posted by Ignacio Domínguez at 7/31/2003 10:04:59 PM
Hi. Who can recommend a good obfuscator or protector? I prefer if it's free, or at least not expensive. String encryption would be nice. Thanks ...more >>

Label vs. Form color
Posted by kews at 7/31/2003 7:18:20 PM
Hi, When I add a label to my form and sets the backcolor to be exactly the same backcolor as the form uses...they differ - why is that ? -K ...more >>

Vectorial Drawing
Posted by Leo at 7/31/2003 5:26:19 PM
Hi : I search some articles explaining how to make a little VectorialDesign application with simple shape like line circles etc ... in C# thx !!! ~leo~ ...more >>



FileWatcher Windows Service
Posted by Troy Murphy at 7/31/2003 4:12:48 PM
The help file for Visual Studio .NET version 1 had a Walkthru for installing a Windows Service that would monitor a folder. Version 1.1 does not seem to have that example anymore. Could someone please send or redirect me to an example of doing this? Thanks, Troy ...more >>

How to use dynamic properties
Posted by KrisBabu at 7/31/2003 3:53:40 PM
am using config file DB connection.It works if i use it as application(appname.exe.config). Now i changed the application as a class library and referring this dll from some other webapplication.Now the connection string is null.How to overcome this problem. With Regards ...more >>

converting byte array to string
Posted by Uzi at 7/31/2003 3:47:47 PM
Hi! i have a memorystream object that has a byte array representing a sting. How do i tranform the byte array into a string. Thanks, Uzi ...more >>

Limit multiple launches of same app
Posted by JJ at 7/31/2003 3:33:05 PM
I have a small application that when launched I want it to prevent another instance of itself being launched. I tried singleton design, but it only limits the creation of one instance of an object within an application. I want to prevent a user from launching the application, then while i...more >>

object writing
Posted by An Ony at 7/31/2003 3:08:04 PM
Hi, I knew you could do this with java - I think it was the interface "Serializable" - can you do this with C# too? I'm looking for a way to binary write a whole ArrayList. Can this be done? thx ...more >>

How to make a form modeless...???
Posted by vince at 7/31/2003 2:56:30 PM
I have a windows app whose main dialog contains a button that launches a form. I've tried using Form.Show() to have it launch as a modeless form, but it behaves as if it's modal (i.e. parent form can't receive focus)... Can someone tell me what I need to do to make the child form modeless...more >>

Deployment
Posted by styko at 7/31/2003 2:32:14 PM
I am building an installer for my app using VS 2003 setup project. Installer is checking is there .NET framework installed on a target machine, and by default redirects to MS download page if there is no framework. I would like to redistribute .NET framework within my .msi package. Can I do so, a...more >>

mappath?
Posted by majiofpersia at 7/31/2003 2:24:27 PM
Hi all, I am confused the mappath does not support virtual directories any more? I realize that the ".." for the virtual directory to go to a higher level root is not supported in .NET any longer ... but I can't get the mappath to work with the backslash/forwardslash/ and no-slash to work eithe...more >>

Dynamic views
Posted by Jesper DK at 7/31/2003 1:59:21 PM
Hi, I'm writing a windows explorer like application. The GUI is divided by a vertical splitter. To the left I have a tree control. To the right of the splitter I would like to display one of several different user controls according to what is selected in the tree control. Now, I can do...more >>

Strange asymmetric polymorphism when using out parameters. Bug?
Posted by Mårten Herberthson at 7/31/2003 1:33:40 PM
Introduction: As we all know, values of any class may be assigned to a reference of a superclass. This is simple polymorphism. So if you have a class A and a class B that inherits from A you can write a method that returns an instance of B and assign that to a reference of type A. (Trivial) ...more >>

MDI - Imessagefilter
Posted by See Sharp at 7/31/2003 1:25:35 PM
Hello all, I have a form class that implements the imessagefilter interface public class frmMain : System.Windows.Forms.Form, IMessageFilter I also have this implemented bool IMessageFilter.PreFilterMessage( ref Message m ) This class actually interacts with the twain driver and that's ...more >>

How to change the system colors programatically
Posted by Schuntermann Joerg (IFAT IT MFG COC MES MAC) at 7/31/2003 1:03:20 PM
This sounds like a trivial task: I'd like to change the default color settings for certain system elements (e.g. Control, Meu, Window) inside a C# program programatically during program initialization. All UI controls which have one of their color property set to one of these settings (e.g. butt...more >>

Configuration Files VS.Net 2003
Posted by Dave Girvitz at 7/31/2003 12:39:58 PM
Yesterday I was giving a presentation on the Trace Class to my user's group. For the purposes of the presentation, I wrote a quick app that used a configuration file to set the TraceLevel of my switch. I wrote the app under C#\VS.Net 2002 and hand wrote the config file. When I opened the appl...more >>

C# Language Reference
Posted by Lamar at 7/31/2003 12:38:27 PM
Where can I find the Reference Manual for C# on my DVDs. I have the MSDN Professional subs. Thanks Lamar ...more >>

cut the part of Bmp?
Posted by ekey at 7/31/2003 12:26:39 PM
Hi: I want to create Bmp by fellow code,and it good work, Bitmap bitmap1 = new Bitmap((Image)iData.GetData(DataFormats.Bitmap)) but i want to cut the part of the Bmp now . How to do it ? for example : Bitmap bitmap2 = new Bitmap(bitmap1,bitmap1.Width,bitmap1.Height - 100); but now b...more >>

How to entertain the user during a slow.. InitializeComponent()
Posted by Fulcrum at 7/31/2003 12:01:21 PM
My program has 4 tabs with a few usercontrols that each have a lot of controls on them. Added to that a few oleDb database connections etc. Because of this the program spends a lot of time during InitializeComponent() (>30sec on a P3-900MHz) I would like to display a "splash" screen that display...more >>

Changing Connectionstring propertys RT?????
Posted by SurfCoder at 7/31/2003 11:38:27 AM
Scenario: i have a little programm that uses OleDb.connection to connect to a database... the datasource is C:\programm Files\Database.mdb now i want to change the datasource for the connection while i am reading the datasource string from a file !!!! Cause the user want to put the database a pla...more >>

C# memory leak??!!!!!
Posted by Martin Law at 7/31/2003 11:36:17 AM
Hi all, I am using both "perfmon" and GC.GetTotalMemory() to keep track of the heap memory space usage of the following simple program. Both ways suggest that the garbage collector cannot reclaim all "dead" memory. Any idea? using System; using System.IO; namespace test_leak { //...more >>

Reading a BMP file
Posted by Ashutosh Kanodia at 7/31/2003 10:33:01 AM
Hi all i need the help to read a bmp file which is basically a Scaned sheet like a Score sheet of the Test Examination so if anybody is having some ideaes than please help me. Thanks and regards. -- Ashutosh K "God Give the Life only Once so Live it and Enjoy it." ...more >>

VB6 - Event, Property Let and '\' - how to code this in c#?
Posted by Chua Wen Ching at 7/31/2003 10:23:27 AM
Hi there. I had 3 questions to ask. 1) Public Event ButtonClicked(MessageBoxNumber As Integer, OKButton As Boolean, CancelButton As Boolean, ExitButton As Boolean) --> how to code this in c#? If not mistaken, if they used the keyword WithEvent i will use delegates and events. But ...more >>

TcpClient connection
Posted by chris at 7/31/2003 9:49:22 AM
Is it possible to keep open more than one connection to different servers with only one TcpClient? If no, is it safe to create about 50 instance of TcpClient class? Thanks! ...more >>

send/download file
Posted by amy at 7/31/2003 7:26:50 AM
what is the method to send a binary file to a client from a webservice ? what is the method to receive/download this binary file and save it to the local machine in a client application ? THANKS!...more >>

Good intermediary C# book
Posted by btardif NO[at]SPAM hotmail.com at 7/31/2003 6:42:58 AM
I not a beginner at C# and I am looking for a book that will skip the whole variable and scope and class explanation and get down to core stuff. Any suggestions? Benito...more >>

What C# Needs
Posted by Keith K at 7/31/2003 6:38:18 AM
Having developed with VB since 1992, I am now VERY interested in C#. I've written several applications with C# and I do enjoy the language. What C# Needs: There are a few things that I do believe MSFT should do to improve C#, however. I know that in the "Whidbey" release of VS.NET cu...more >>

Advice on good OO design
Posted by Rob Thomas at 7/31/2003 6:17:07 AM
Hi, I'm just getting started with real OO design and programming and am after a little advice. Basically, I've got a Customer class and an Agency class. The Agency class inherits all the properties and methods from Customer but I have come accross a couple of problems: I've got a Save, A...more >>

Datagrid cell focus
Posted by Nanda at 7/31/2003 2:31:43 AM
Hi all, while editing a datagrid cell, if i press Enter key focus goes to the next row, instead that i would like to have focus on next cell, how can i obtain this. Thanks & Regards, Nanda...more >>

How to break on string into two seperate variable or strings in C#
Posted by Brad Britton at 7/31/2003 2:24:45 AM
Just wondering how you would break a string such as first and last name together, into two separate strings or variables, each containing the firstName and lastName. I am a newbie at C# so any help would be great! Thanks Brad ...more >>

Job statistics XXVII : Java/J2EE uber alle????
Posted by asj at 7/31/2003 1:26:20 AM
well, at least for the forseeable future, it looks like. i've always thought mauricio aguilar was a loony for continuing to post these job stats, when we all know C#/.NET jobs HAVE to go up sometime and equalize as VB and other non-.NET microsoft tech jobs go down. also, search engines can f...more >>

DateTime Data Types and SQL Server NULL
Posted by E. R. Retzloff at 7/31/2003 1:02:27 AM
Any suggestions on how to track a NULL value received from SQL Server in a DateTime field? I have come up with two and I'm not convinced either of them are good solutions. 1. Assign a predetermined value (DateTime.Date.MaxValue... or something like that) in place of NULL and check for that whe...more >>

dataset.writexml using dtd
Posted by merkenger NO[at]SPAM tm1.at at 7/31/2003 12:41:04 AM
Hi! I want to write 3 datasets from different tables into a xml file. i thought that would work using a dtd file. But i can't find a solution for my problem. At the moment i can only write one dataset into an xml file: i do that the following way: DataSet ds = ThemeManager.getThemes(them...more >>

Maths & Rounding
Posted by Daisy at 7/30/2003 9:43:46 PM
Something simple, I'm sure. My code: System.Windows.Forms.MessageBox.Show(((Int32)Math.Ceiling(1966 / 100)).ToString()); I'm expecting 20, but getting 19. What am I doing wrong? Thanks -- Daisy The Cow Now playing: Tomcraft - Loneliness [Radio] ...more >>

Assembly and C#?
Posted by Andre at 7/30/2003 9:11:18 PM
Just wondering.. since we can have C modules being called in from C#... can we then make assembly (x86 assembly) calls from C#? If so, can someone please give me an example of how that's possible? Thanks -Andre ...more >>

Accessing System Menu from C#
Posted by TB at 7/30/2003 4:50:51 PM
For a simple form without its own menu I wanted to add an "About..." command to the system menu as I would for an old MFC/C++ application. However I cannot find out how to access the system menu other than to toggle it on/off via the ControlBox property. Is this simply a .NET style bei...more >>

DirectoryEntry
Posted by Potiguar Faga Catalan at 7/30/2003 4:39:30 PM
I would like to know wich is the most appropriate newsgroup to post messages regarding DirectoryEntry class issues? Thanks in advance Potiguar ...more >>

SSE and MMX support in the JIT compiler
Posted by Andre at 7/30/2003 4:06:43 PM
Hi, I was wondering if anyone knows whether the JIT compiler supports SSE/SSE2 instructions? Thanks -Andre ...more >>

Disposing and Nulling.
Posted by 455 at 7/30/2003 4:00:29 PM
Hello. I'm quite new to C# and am wondering which things I need to clean up when my code completes, if any at all. For example... Assembly a = Assembly.Load(ServiceName); Type mm = a.GetType(AssemblyName); object o = Activator.CreateInstance(mm); bject [] par = new object[] {xDoc}...more >>

Error Reading Configuration Settings
Posted by Guogang at 7/30/2003 3:49:01 PM
Hi, I am deploying a project to a laptop. It works fine on my development computer, and I have tested once a few weeks ago. However, this time, the program can not start at all. After some digging, I find that it stops right at the following line (this line is part of the function called by...more >>

Stack Overflow?
Posted by David N. at 7/30/2003 3:37:27 PM
My small C# application, running on a Windows 2003 server machine with 512 RAM and 80 gigabytes of diskspace, always bombs out with the following error: >> Fatal stack overfollow error. What can I do to fix this error? ...more >>

User Interface
Posted by J. Marcelo Barbieri at 7/30/2003 3:23:42 PM
I've sorted many difficulties, but couldn't manage these ones: 1)I have textboxes in my form with MaxLenth property set. How can I configure them to automatically chance focus to the next one when the maximum lengh is reached? 2)How can I use the "Enter" key to tab from one textbox t...more >>

C# on 98
Posted by Mike at 7/30/2003 3:20:57 PM
Can I develope and run C# apps on win 98 with PWS if i create web apps? ...more >>

Get Physical location
Posted by Dani Peer at 7/30/2003 2:54:18 PM
Hi, I build a COM interop DLL. I want that this dll will be able to get it's PHYSICAL LOCATION since I need it to read an XML file. How can I get the Physical location. Directory.GetCurrentDirectory() returns working directory. Any solutions ? Dani ...more >>

NULL values
Posted by jfish13 NO[at]SPAM snip.net at 7/30/2003 2:45:20 PM
How are people handling NULL values for value types. Descriptions of problem Say you have a typical method with the signature: public int InsertPerson(string firstName, string lastName, int personCategoryID) Now say you only want the firstName and lastName parameters to be required and...more >>


DevelopmentNow Blog