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# > august 2004

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

Webclient class and https
Posted by Galore at 8/31/2004 11:14:06 PM
Hello, Does the webclient class (System.Net) work well with https? Is there any difference between working with http and https (in the code)? Thanks ...more >>

UserControl.IsPostBack
Posted by Ivan G. at 8/31/2004 10:11:40 PM
Hi. How System.Web.UI.UserControl knows that it is really loaded at first time? I mean from where IsPostBack property value is extracted? Thanx. ...more >>

error sending mail
Posted by menkaur at 8/31/2004 9:27:02 PM
Hi! i'm trying to send main using SmtpMail. Smtp service is installed. When doing this i'm getting exception: "Could not access 'CDO.Message' object". How to install it (what librarys do i need)?...more >>

Re: Ignore multiple click events when the application is busy.
Posted by Shell at 8/31/2004 9:20:46 PM
Anina, Why don't you just set Enabled = false on all the controls for which you don't want to process clicks? I think this would be the ideal solution. Hope that helps. ...more >>

New concurrency error
Posted by Robert Schuldenfrei at 8/31/2004 8:52:49 PM
Dear NG, I was about to "improve" concurrency checking with a Timestamp when I discovered that my current code is not working. After about a day of beating my head against the wall, I am turning to the NG in hopes that someone can spot what I am doing wrong. Key to this technique working ...more >>

How to make program full screen and avoid user switching to deskto
Posted by Nicky at 8/31/2004 8:39:26 PM
hi,all We are going to develop a program and when it is running, we need it full screen and also, user can not switch to other place before exit our program. I am thinking, we can make a window full screen, but how to avoid user switching to other program or windows? And also, there are many ...more >>

threads
Posted by Tpool at 8/31/2004 8:21:19 PM
hi, How to create the more than 25 threads in threadpool. i tried more than 25 threads in web request, but it shows an error. how can i have my threads to some 25 or more ,check the status of the threads, and assigning the task to completed threads in a loop. Thanks ...more >>

Quick Books
Posted by David at 8/31/2004 7:25:33 PM
Is anyone working with intuit and Quickbooks Request and Responce system. I am having alot of trouble getting any information out of them... Any help would be great Thanks David ...more >>



Databinding problem with inherited class
Posted by Olivier Deborne at 8/31/2004 6:55:23 PM
Hello, I have two classes A & B public class A : B { private string lastname; public string LastName { get{}; } } public class B { private string firstname; public string FirstName { get{}; } } Class A inherits from B. Whe...more >>

.NET <-> Java Interoperability issue?!?!?
Posted by GeRmIc at 8/31/2004 6:41:01 PM
Hello Friends, I am working on a project where the service provider is written in JAVA and the client is written in .NET (C#). The Server communicates with the client through Java Beans. (1) I get an error in my .NET code when I instantiate the particular web service, the error says ...more >>

Go to a specific node in the nodelist
Posted by Susan at 8/31/2004 6:19:11 PM
I need to go to a specific node in a XmlNodeList by its number (I know that I want the 5th node in the list, but I do not know any information about the element or attributes contained at the node. Does anyone know of a way to do this without looping through foreach (node in nodelist) ? Tha...more >>

Enumerating files in dir sorted by time
Posted by Dan at 8/31/2004 5:32:44 PM
In .NET, what's the most efficient way to enumerate through all the files in a directory sorted by time (from oldest to newest)? ...more >>

Setting Excel 2003 borders programmatically
Posted by Damian Arntzen at 8/31/2004 5:25:04 PM
I'm trying to suss out exactly how to assign borders to cells via C# into an Excel 2003 spreadsheet. I've been tinkering some more last night (Aussie time) and managed to figure out a lot more in regards to doing this kind of thing (Self-teaching can really suck sometimes) - Much thanks to the...more >>

Checking Exchange server for new mail
Posted by Razzie at 8/31/2004 5:21:39 PM
Hey experts, First let me say I know almost nothing about Exchange, so if I say incorrect things about it, forgive me ;) What I need to do is, connect to the local Exchange server and monitor all incoming email. So preferably an event is raised when an email enters the queue. Is this po...more >>

Raising an Event
Posted by Cooly Martziano at 8/31/2004 4:59:08 PM
Hi Guyz, I wondered how in C# I could raise an spcific event. For example, in VB.NET, when you would like to raise a specific event you just write "RaiseEvent <event name>" Any Ideas ? Thanks, Cooly M. ...more >>

send struct through network
Posted by Dirk Reske at 8/31/2004 4:40:03 PM
Hey, I have following struct: struct Packet { string Command; string[] Args; byte[] Data; } how can I send (and receive) this throug a network? (some example code) thx ...more >>

Does your assembly folder show contents?
Posted by Larry at 8/31/2004 4:25:41 PM
I installed Visual C# .net 2003 Standard and the c:\windows\assembly folder will not let me view the contents using XP. At the dos prompt I can see all the files and directories. Just not inside XP using different file managers, one of them Explorer. It shows this: c:\windows\assembly\downl...more >>

Working with flags..
Posted by Ignacio X. Domínguez at 8/31/2004 4:25:17 PM
Hi. I'm using the | operator to use multiple flags in a variable. For example: const int flag1 = 0x00000001; const int flag2 = 0x00000002; const int flag3 = 0x00000004; int Flags = flag2 | flag4 | flag1; Now I would like to remove flag2 from Flags without having to assign the other f...more >>

Can i set MSMQ security options from my code
Posted by Kimmo Laine at 8/31/2004 4:21:13 PM
Hello, can i set MSMQ security options from my code: I want that whenever i create a new queue, certain rights ( open, read and sen ) are given to certain group. thx Kimmo Laine ...more >>

How do I enumerate the NICs on a system?
Posted by Peter Steele at 8/31/2004 4:12:14 PM
I want to build a list of the NICs on a system along with their IPs and netmasks. What's the easiest way to do this? ...more >>

Should I add a component ref or a project ref??
Posted by walker_712 NO[at]SPAM hotmail.com at 8/31/2004 4:05:11 PM
When I add a reference to a component, should I add the reference by pointing it to the dll on disk or should I add the reference to the project (if it's loaded in the solution)? What's the preferred way or doesn't it matter? Thanks, Darren....more >>

Name of user running thread
Posted by Mats-Lennart Hansson at 8/31/2004 4:04:51 PM
Hi, I want to get the name of the owner of a thread. I have a component that can be called from many different components so I want to trace which user that owns the thread. Is this possible in c#? Thanks, Mats-Lennart ...more >>

regular expressions. Order matters?
Posted by Ryan Taylor at 8/31/2004 3:59:48 PM
Hello. I am trying to create a regular expression that will let me know if a string has the following criteria. Order does not matter in the string, but when building a regular expression it does, right? I am brand new to regular expressions and having a little (read: a lot of) difficulty in m...more >>

Restricting or constraining parameters
Posted by Mark Broadbent at 8/31/2004 3:31:43 PM
C# 's type checking is great, but one thing which has reared it's ugly head is the possibility of causing an unhandled Exception because you've passed in an un-initialised or empty object. In some cases this might be a valid operation in your class but many times it might not. Say for instance...more >>

How to get selected text?
Posted by Deena at 8/31/2004 3:22:42 PM
How do I get the highlighted text from a control? Deena. ...more >>

Reflection across assemblies not working
Posted by Aashish at 8/31/2004 3:10:44 PM
Hi, A piece of my code is trying to instantiate classes that can exist in different assemblies. However, its only able to instantiate classes in the same assembly. Example, Assembly A - Class x,y Assembly B - Class z, z1 Class x calls Class z that tries to instantiate Class y. Ho...more >>

re:Config.xml file read and write ?
Posted by MrXs1999 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 8/31/2004 3:02:35 PM
if i wanted to save all settings that are entered into a text box or a checkbox ( true or false ) etc how would this part be done ? i could enter all box types one by one etc but is there away to save all at once so say i changed 3 settings i could then press the save settings button and all ...more >>

Local var passed to thread. May it get reclaimed by GC???
Posted by pelledoca NO[at]SPAM letterboxes-dot-org.no-spam.invalid at 8/31/2004 3:02:32 PM
Hello, my questiong is, I believe, very simple. I have a method and inside it I'm passing a local variable (of a reference type) to a newly created thread (created inside the method itself). Since the method may end while the thread may not have yet completed its work, I was wondering if anyt...more >>

Config.xml file read and write ?
Posted by MrXs1999 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 8/31/2004 3:02:31 PM
i have a setting form for my program and wish to allow the setting to be saved and reopened to the last set setting on program startup.. lets say i have a xml file like this : <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="test" value="My Test S...more >>

InitializeComponent() question
Posted by talljames NO[at]SPAM hotmail-dot-com.no-spam.invalid at 8/31/2004 3:02:30 PM
Have a basic question I am sure the answer is out there. How do you stop the Visual Studio C# Designer from removing lines out of the Initialize component that do not have a "this." in front of them. When I switch from the code view to the designer view it removes my lines, which is a pain ...more >>

dataset update
Posted by Mojtaba Faridzad at 8/31/2004 2:35:30 PM
Hi, Please check these lines: DataSet dataSet = new DataSet(); dataAdapter.Fill(dataSet, "mytable"); DataRow row; row = dataSet.Tables[0].Rows[0]; row.BeginEdit(); row[0] = "555"; row.EndEdit(); //dataSet.AcceptChanges(); dataAdapter.Update(dataSet, "mytable"); I got this error mess...more >>

Code Dom
Posted by Wayne at 8/31/2004 2:30:33 PM
I have an instance of a System.CodeDom.CodeNamespace. I am currently spinning through the types, and the members of each type. I am trying to find the Codememberfields that require creation before access. I then want to add to the constructor the creation of each of these Items. I have been ab...more >>

Adding an 'internal' control to the toolbox.
Posted by Chien Lau at 8/31/2004 1:56:59 PM
I frequently define internal UserControl-derived classes in my WinForms apps: internal class MyUserControl:UserControl{ ... } I'll often need to embed these controls in a Form, whose class is contained in the same assembly as the control. As far as I know, the only way to do t...more >>

Creating Buffer
Posted by BMax at 8/31/2004 1:51:15 PM
Hello I want to create a byte[] and use it as a buffer, then access it with a binaryreader or streamreader. what is important is to be able to read different variables form that, like readint16, readbytes(),readint32.... . so if there is a method to read byte arrays that would also help. (i co...more >>

C# and SQLDMO
Posted by T. at 8/31/2004 1:05:08 PM
I dumped VB and adopted C# for this version of Visual Studio. My problem! I am trying to reference an SQLDMO.Database object in C# like so: private SQLDMO.Database dbcurrent; private string dbname; dbname = "Northwind"; dbcurrent = (SQLDMO.Database)sqlsvr.Databases.Item(dbname); But I ...more >>

Printing a paper form (in BMP) from windows application
Posted by VMI at 8/31/2004 1:00:25 PM
I have a BMP image (the form is also in PDF) that contains a scanned copy of a paper form that we need to fill out. Is it possible to use this image in my application so that the application can print out the form and the data that the user entered? For example, the user loads the application and...more >>

including specific files in a build
Posted by Aashish at 8/31/2004 12:18:03 PM
Hi, How do I select files from a project that I want included in a library. I have a bunch of forms and a bunch of class files. I want just the class files included in the library and not the forms. The forms need to be built into a Win32 application. Any idea? Thank you Aashish...more >>

C# equivalent to DirectCast.
Posted by jcorrao NO[at]SPAM TAISoftware.com at 8/31/2004 12:15:58 PM
I have been working in VB.net and have been using the combobox to store data I need when the user selects an item. To do this, I have been creating a class of some data. Private Class Relationship Public _code As String Public _description As String Public _def...more >>

MemoryStream throw GDI+ Exception when creating image. Why?
Posted by Arcnet at 8/31/2004 11:54:21 AM
Using MemoryStream I Have a problem to create a new Image from byte array that originaly was created from an older image (Everything is being preformed in the same Thread) //Get Image From File byte[] arr; Image imgFromFile = Image.FromFile(@"D:\Waterlilies.jpg"); //Genera...more >>

XML Question
Posted by Hardy Wang at 8/31/2004 11:50:04 AM
Guys, I have following piece of XML file, <?xml version="1.0"?> <SiteSettings> <PageSettings> <Image1 source="dlr" type="jpg"> <url source="dlr">http://www.hotmail.com</url> <newwindow source="dlr">yes</newwindow> </Image1> </custom_awards> </PageSettings> </SiteSettings...more >>

active directory
Posted by Ivan G. at 8/31/2004 11:49:07 AM
Hi. How to make a query to active directory from web service? Thanx. ...more >>

Registry, Close Keys or Not?
Posted by Yogi_Bear_79 at 8/31/2004 11:45:13 AM
I've been accesing the registry in the two following ways: using (RegistryKey SubKey = Registry.LocalMachine.OpenSubKey(sSubKey + x)) using (RegistryKey Key = Registry.LocalMachine.CreateSubKey(sSubKey + x)) Should I close the Keys after either or both of these actions? Can you explain...more >>

ADO.NET book & Timestamps
Posted by Robert Schuldenfrei at 8/31/2004 11:29:24 AM
Hi NG, I needed some information about using SQL Timestamps for resolving concurrency errors. I bought the book: Pragmatic ADO.NET to aid me in this endeavor. Some people have asked me if I found a book. This posting is just to thank the people who responded. There is no need to respond fu...more >>

array = null or array.length = 0
Posted by Rene at 8/31/2004 10:25:38 AM
I have an array that may or may not contain data during the course of its life. When I first instantiate my class level array reference I set the array to null: int[] xyz = null; But I am thinking of initializing it to zero int[] xyz = new int[0] There is no good reason why I need to...more >>

Loading dataset from XML
Posted by kids_pro at 8/31/2004 10:23:32 AM
I had come across a code block from Loading a DataSet from XML (.NET Framework Developer's Guide) ---------------------------------------- NOte If you call ReadXML to load a very large file, you may encounter slow performance. To ensure best performance for ReadXml, on a large file, call the Da...more >>

Background C# Service
Posted by timdennis30 NO[at]SPAM hotmail.com at 8/31/2004 9:53:21 AM
I need to create a C# service that will run a stored procedure which returns a result set. From there I need to create a file using the result set in a specific format. The format could be fixed length or comma delimited, or even xml. This service should run in the background and only execute on...more >>

Datagrid column containing password
Posted by Jay at 8/31/2004 9:46:19 AM
I need to display a datagrid with user information including password, but I would like the password to be masked with a password character. If the user selects to edit the record, I need the password to show in normal text. Is this possible with a datagrid? Thank You for any help toward th...more >>

retrive data from foxpro 2.6 memo field in c#.
Posted by eric at 8/31/2004 9:22:44 AM
Hi Does any one know how to retrive data from foxpro 2.6 memo field in c#. I just manage to retrive the first row. /Eric ...more >>

is it a good idea to use SQL connection?
Posted by Mojtaba Faridzad at 8/31/2004 9:17:44 AM
Hi, (newbie in C#) is it a good idea to use SQL Connection, SQL Data Adapter,... in C#? when I am design a form, I can use SQL Connection and set the properties to connect to a database. I guess after unloading the form, this connection will be closed. but as I know, it's better to open a c...more >>

Is this Application.Run() correct?
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 8/31/2004 9:12:56 AM
This works, but I don't know why. static void Main() { // Queue the task. ThreadPool.QueueUserWorkItem(new WaitCallback(ThreadProc),new Form1()); Application.Run(); } static void ThreadProc(Object stateInfo) { // When no state object was passed to QueueUserWorkItem, so // s...more >>


DevelopmentNow Blog