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# > january 2004 > threads for thursday january 29

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

I upgraded to .NET 2003, now I have 2 IDEs on my system
Posted by noid droid at 1/29/2004 11:01:27 PM
Hi. A couple of months ago, I ordered the Visual Studio .NET upgrade from Microsoft and installed it. Today, I just realized that I have both the 2002 and 2003 IDEs on my system. Did I do something wrong upgrading? I thought that the 2002 IDE would be upgraded and essentially become th...more >>


Async DNS
Posted by Simon Johnson at 1/29/2004 10:47:59 PM
Hi all I'm writing a DNS app using the Dns classes provided in the framework. I want to use the asynchronous operations but I'm having trouble trapping errors from the Dns.EndResolve function. When it fails to resolve the Dns.EndResolve doesn't through an exception it just stops code execut...more >>

Game Programming
Posted by C# Learner at 1/29/2004 10:24:25 PM
What's the deal with DirectX from a .NET point of view?...more >>

Code question
Posted by Patrick De Ridder at 1/29/2004 10:04:50 PM
B is an interface L implements B What is happening here? B l = new L (xyz); Thanks, Patrick. ...more >>

Outlook addin + flag status + visible/Invisible
Posted by v_anushya NO[at]SPAM hotmail.com at 1/29/2004 9:59:28 PM
Hi All Is it possible to set the mailitem Visible/Invisible by setting something like flag or any other way? Now developing in .NET. Anushya...more >>

Construct MSG file at runtime from details
Posted by v_anushya NO[at]SPAM hotmail.com at 1/29/2004 9:40:18 PM
Hi i maintain the message body and some headers like fromid, receiveddate,etc in access database. I am able to create a .MSG file and to post it back to inbox. But creating and maintaining .MSG files for all the mails will be a head-ache. What i wanted to do is maintain all the details ...more >>

Some network (very) basics.
Posted by sp000n at 1/29/2004 9:31:04 PM
I fancy myself quite a savvy computer user. This game I'm working on is my first programming adventure however. Can someone explain to me in gentle terms what a socket is? I've done a search and run into lots of SSH-speak that assumes I know what it means as well as similarly assuming hardware me...more >>

Program.... XML serialization
Posted by Arjen at 1/29/2004 9:25:20 PM
Hello, Can somebody help me a little bit? I can't get it to work. Please see my code below... I have placed some comments like "// And whats next?". I'm sure that I have to code something here. But what? What do I want? - Serialize and deserialize ObjectsA and ObjectsB. Thanks! Arje...more >>



StreamReader problem URGENT!
Posted by Christian Pické at 1/29/2004 9:22:09 PM
Hi, I have a problem with a CSV-file I have to read (actually I have to convert it to a XML). In some 'fields' of the CSV-file are some line-feed characters included (\r ??? don't know because I cannot capture them) (I suppose it are not carriage returns). The problem is now that the Stream...more >>

Detecting Signed Code
Posted by R. Ian Lee at 1/29/2004 9:16:06 PM
I'm building a "plugin" architecture into my application where it will automatically detect (through Reflection) assemblies that are dropped into a folder as plugins and execute them when necessary. However, I do not want just anyone to be able to create an assembly and drop it in and have it execu...more >>

Video/highlight rendering problem
Posted by Jon Davis at 1/29/2004 8:50:13 PM
If I scroll all the way down in the editor, all my highlighting and the lines for rendering are all distorted. It's like it can't figure out what line my mouse is on or what line the cursor is on or what line to highlight. Anyone else have this problem? What can I do to fix it? Jon ...more >>

Problem in .NET Remoting with Client Activated Objects(CAO)
Posted by deepalk NO[at]SPAM sabretch.com at 1/29/2004 7:32:15 PM
Hi; I'm doing an example program from a book regarding .NET Remoting. Both the Client and Server are C# Console Applications. Server Code is using System; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using System.Runtime.Remoting.Channels.Tcp; namespace Wrox...more >>

ODBC.net
Posted by Travis at 1/29/2004 7:16:01 PM
I am trying to display a query like this in my windows form: SELECT workordernumber, date, firstname, lastname FROM customer_db; I am using a rich text box to display the data but it only displays ONE record in the rich text box. How do you display all the found records. I am using the ...more >>

Intellisense dont work
Posted by Abbiento Morgan at 1/29/2004 7:14:04 PM
I try to expalin my problem Ive created this classes class DataType { ... public int Count; ... } class DataCollection { ArrayList array = new ArrayList(); DataCollection() { // Loading of array with DataType objects } public DataType...more >>

how to find Seconds elapsed ? ....
Posted by Prabhu at 1/29/2004 7:05:47 PM
Hi, Can any one help me getting Seconds elapsed from a given date time to current time in .Net?. for e.g. Suppose assume a given time date time "01-Jan-2000 00:00:00", I should get the number of seconds elapsed from the given date time to current date time. Thanks & R...more >>

Interface question...
Posted by craig at 1/29/2004 6:27:10 PM
I have a quick question regarding the use of interfaces... Assume I have a class A that needs to interact with another class B. Classes A nd B are in different assemblies. Now, in order to assure that the interaction between classes A and B works properly, class A assumes that class B implem...more >>

Error: Cannot access CDO.Message
Posted by Krishnan at 1/29/2004 6:05:54 PM
When I do SmtpMail.Send(MailMessage); I get an error saying "Cannot access CDO.Message". Any reasons? TIA Krishnan ...more >>

Implementing DataGrid Events
Posted by Dan at 1/29/2004 5:45:10 PM
When I put a datagrid on a form in VB.NET, and then go to the code page, I can select the datagrid in the left-hand dropdown, and see all the available events for the datagrid in the right hand dropdown. I can then select the event I want to implement and start coding. However, if I do the ...more >>

Security
Posted by Adam Gentry at 1/29/2004 5:41:08 PM
Let's try this again... Is there any current functionality in C# to access windows authentication in a windows application (not ASP) without using unmanaged code? I would appreciate if anyone has an example. Regards, AG ...more >>

InvocationHandler in C#?
Posted by Thomas Bauer at 1/29/2004 4:57:10 PM
Hi there, is there something like the "InvocationHandler" in java ind C#? I want a way to find out what's the class that's calling my method. regards, Thomas Bauer...more >>

Limit C# Windows Application to single instance
Posted by Richard at 1/29/2004 4:42:25 PM
Hi, Is there an easy way to limit a .NET application to a single running instance, ala like checking the hPrevInstance in MFC? October 2003 MSDN only has old samples that use named mutexes; is there anything more slick in .NET?? --Richard ...more >>

Listview and PropertyGrid on form
Posted by ms_crack NO[at]SPAM yahoo.com at 1/29/2004 4:29:17 PM
Hello, I maybe asking too much in a single posting, but here it goes: I building a windows form that mimic's the Outlook XP GUI. Its a three pane form that will allow a user to view and edit records in a database. A Treeview in the left pane, a Listview in the TopRight Pane, and a PropertyG...more >>

Use Java .class files from C# or .NET?
Posted by Mick at 1/29/2004 3:55:51 PM
I wrote a C# program that interfaces with a data vendor over the web using an API they supplied and their examples in C#. Now I have another data vendor's API and example that I want to add to my C# program. But this new API is written in Java. They gave me an example source code that us...more >>

How can i solve if i have the circular dependence?
Posted by micmic at 1/29/2004 3:51:24 PM
Dear all experts, I have the Coding as following: In File abc.cs namespace A { public class abc { public abc() { B.bcd xxx = new B.bcd(this); } } } in file bcd.cs namespace B { public class bc...more >>

Undo/Redo
Posted by thanigai at 1/29/2004 3:51:24 PM
How to implement undo/redo technique in C#? The undo/redo are not only for text changes, it also support previous action like creation of an object. ...more >>

Printing Objects
Posted by Chrisitiaan at 1/29/2004 3:11:20 PM
Hi, I want to develop a 'truly' object oriented application, that is, my business logic objects handle the business logic (of course) and the persistence to a MS SQL server database. The user interface only deals with objects (sometimes using reflection to make them 'editable'). I want to know...more >>

Naming conventions: use member prefixes to avoid collisions?
Posted by Nels Olsen at 1/29/2004 2:46:08 PM
Our company is rewriting our product in .NET. The old product is in PowerBuilder, which is heavy on Hungarian notation. We are approaching the time where we have to finalize naming conventions for everything publicly exposed in our API There are two camps -- the Hungarian camp and the "Readable ...more >>

Setup projects
Posted by discussion NO[at]SPAM discussion.microsoft.com at 1/29/2004 2:24:12 PM
Hi, Is it possible to have the setup project call other installers as pre requisites and also install the .net runtime before installing my application? Thanks. ...more >>

catch CTRL-C into a console application
Posted by Claudiu Felecan at 1/29/2004 2:15:33 PM
Anyone can help me how to catch CTRL-C? Thanks. ...more >>

Interlocked.Exchange, thread-safety, and booleans
Posted by n_o_s_p_a__m NO[at]SPAM mail.com at 1/29/2004 2:14:13 PM
Hi, just a quick question: I have 2 objects running in their own threads (let's call them a & b). They both hold a reference to a common object running in a third thread (call it c) which has a public boolean field called bCool. So: // a & b class One { private Two _myTwo = null; ...more >>

translate vb.NET in C#
Posted by Franky at 1/29/2004 2:08:47 PM
have some problem in translate the last row of this class this class: Public Delegate Sub UIUpdate(ByVal args() As Object) Public Class Invoker Private _control As Control Private _uiUpdate As UIUpdate Private _args() As Object Public Sub New(ByVal c As Control) ...more >>

What causes 'System.ExecutionEngineException' ?
Posted by Tim Mulholland at 1/29/2004 2:03:34 PM
I have an application that uses an external C(?) Dll and it seems like after I make a specific call to that dll the application will crash at a random call to the dll in the future. It sometimes crashes the next call after said call, while sometimes it doesn't crash for 5 minutes; but it alway...more >>

How do I sort the columns (not rows) in a DataGrid?
Posted by Jon Davis at 1/29/2004 1:59:00 PM
I have a Windows Forms app in which I have a DataGrid control. I have a custom class that has several properties exposed, and I have made this class, or a collection thereof, the DataSource of the DataGrid. This neat feature of the DataGrid allows the properties to be displayed in a Collection o...more >>

smoothly resizing a listBox with my form
Posted by Robin Senior at 1/29/2004 1:45:27 PM
Hi, I have a listBox control on my form, and it is anchored to some of the sides. When I resize my entire form, the listBox resizes less nicely than the other controls. The length of the listBox seems to jump around, due to the size of the row elements inside. Is there a way to make a l...more >>

making an object's or method's properties variable
Posted by Lance at 1/29/2004 1:44:31 PM
Hi, Is there a way to call an object or method, but use a variable to represent the method or property to be used? eg: I want to create a regular expression, but the regexp options I want to wait until runtime to decide which options to use. The following attempt throws an error: stri...more >>

Passing Managed char[] from C# to Unmanaged C++ dll
Posted by Chris at 1/29/2004 1:40:11 PM
Hi, I seem to be having a problem I can't quite figure out. Currently, I have the following code (below). In the SendMsg function, I create a 'Qtkmsg' which converts the string 'text' into a null terminated character array that is sent through the DllImport interface 'QtkSendMesg'. However,...more >>

String - Optimization questions..
Posted by Zoury at 1/29/2004 1:24:11 PM
Hi there! :O) I need to replace all the accentued character of a string by it's non-accentued-character equivalent. 1. is there a way to do so without iterating trought the entire string and replacing character, with the Convert or Encoding class for example? 2. if not, how can you actually...more >>

TreeView - OnPaint override? - Boolean to display certain nodes
Posted by sho_nufff76 NO[at]SPAM yahoo.com at 1/29/2004 1:15:50 PM
Hello, It appears that i may need to create a custom treeview. I have a set of nodes - sometimes, if a user selects an option , i may want to only display a subset of those nodes... and i don't want to have to create a new treeview every time. is it possible to just override the paint meth...more >>

Get and Set the IP address in C#?
Posted by JT at 1/29/2004 1:11:11 PM
H Does anyone know how to Get and Set the IP address in C#? What I want to archive is to read my IP address, compare the address based on some predefine rules, and if needed, change the address (and reboot) J ...more >>

Arbitrary association of objects
Posted by Bret Pehrson at 1/29/2004 12:57:52 PM
I'm working on a (non-trivial) project which includes various & numerous objects, some in my direct source control, some not. I'm finding the need to somehow associate one object with another, somewhat arbitrarily. The previous implementation (in C++) used external maps that would create a 'l...more >>

Console.Write in Release mode
Posted by Franco, Gustavo at 1/29/2004 12:51:04 PM
Hi, Console.WriteLine does something on Release mode? I have many of them in my application and I want to know if the performace could be affected, on debug mode I can see a big difference between having and not because I'm printing many of them on loops, etc. Now, in Release mode Console...more >>

DataGrid - ComboBox
Posted by john sutor at 1/29/2004 12:49:05 PM
Does anyone know how to create a combobox in a standard datagrid? I can create check boxes , but not the combobox ...more >>

How to select multi rows without ctrl-key pressed in listview
Posted by Fan at 1/29/2004 12:36:15 PM
Hi, Any body has some practice on the above one? Thanks, Fan...more >>

Hot to call C# function inside XSLT ?
Posted by Maxim Kazitov at 1/29/2004 12:21:55 PM
Hi, Is it possible to call C# function inside XSLT ? Thanks, Max ...more >>

how to thumbnail view in dialog
Posted by Kanaiya at 1/29/2004 12:13:12 PM
hello i want to show thumbnail image view control which display captured images on this control but in small size. it is possible to add any no. of images in that control. and aslo possible to add event on it. -- With regards, Gangani Kanaiya. ...more >>

Character Value with Base 26 with C#
Posted by Tony Tortora at 1/29/2004 12:03:50 PM
I am writing and add on application. The application uses Unique IDs and they are stored in Base 26 (ie 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ). I am having trouble reading the decimal value of a character of the key and to assign a the new value for the Unique ID. For example to change "A" to ...more >>

No AddressOf in C#
Posted by google NO[at]SPAM gencode.com at 1/29/2004 11:47:55 AM
I am trying to figure out how to do this in C Sharp In VB this works perfect MenuItem2.MenuItems.Add("123", AddressOf Me.MenuItem1_Click) The problem is there is no address of in C#, I tried this in C# menuItem2.MenuItems.Add("123", MenuItem1_Click); But it does not seem to work, since ...more >>

Security issues
Posted by Ken Galer at 1/29/2004 11:47:05 AM
I am working on a small project that I started at home. It originally was on the C: drive and was working properly. After bringing it to work I placed it in a folder on the server with the other projects folders and now it will not let me run it from VS. I get a security exception: ///// ...more >>

Help. I can't access my .exe and .dll from my webserver
Posted by Jim H at 1/29/2004 11:25:55 AM
I wrote a small app that's made up of 1 exe and 1 dll. They are just sample apps to demonstrate no-touch deploy with smart forms for my boss. I created the app and dll and copied them to a virtual dirctory on my webserver (XP Pro workstation with IIS). Here's the problem, I can't access the ...more >>

Namespace Problem
Posted by CJ Silin at 1/29/2004 11:11:29 AM
Hello, I have a solution which is comprised of 4 projects. One of the project is "used" by the other 3. In each of those 3 project, I created a reference to the project it was going to be using and I placed a "using" statement for the namespace in each of the three projects. All was fine ...more >>

Constructors inheritance!!!
Posted by MR. UNDERHILL at 1/29/2004 11:01:10 AM
It's true that every time you add a new constructor to a parent class, you will need to modify the child class to be able to see it from there Sample Code public class Paren public Parent( // blank constructo public int Cod get{return this._code; set{this._code...more >>

Retrieving StringDictionary key by value
Posted by Srikanth at 1/29/2004 10:46:43 AM
Hi, I have a StringDictionary object with Key and Value pairs. I have a situation where 1. I have to retrieve the Value for a given Key and 2. I have to retrieve the Key for a given Value. Iam able to do the first requirement (As there is a provision to do that in the class library) bu...more >>

displaying text from a different class into Form1.textBox1
Posted by polarz at 1/29/2004 10:09:36 AM
I'm having trouble getting items from different classes to display in my textBox. e.g. private void button2_Click(object sender, System.EventArgs e) { someData sd = new someData(); sd.showData(); } class someData : Form1 { public void showData() { textBox1.Tex...more >>

Questions about 2.0
Posted by C# Learner at 1/29/2004 9:51:28 AM
1) When's C# 2.0 "coming out"? 2) Will all the .NET collection classes (e.g. ArrayList) be rewritten to use generics instead of object references? 3) This one's off-topic -- will Borland's C# Builder be up and ready for 2.0 when it's "out"?...more >>

Is this possible? 'Dynamic' Code
Posted by jdn at 1/29/2004 9:41:09 AM
I have a class called myConfigurationClass with 3 private members, and 3 public gets (so, 3 read-only properties). So, for instance private members: _A, _B, _ public gets A, B, Oh, and they are all strings. In particular, they are Connection strings for SQL Server In my web config, I have ...more >>

CRecTracker
Posted by Thomas Vierlinger at 1/29/2004 9:24:31 AM
Is there anything in C# like the MFC Class "CRecTracker" ??? Thanks for help. ...more >>

CheckBoxList Problems
Posted by Philip Townsend at 1/29/2004 9:02:17 AM
I am having some difficulty getting a checkboxlist control to determine which checkboxes are checked. Here is a code sample from the event that should read it: private void btnFilter_Click(object sender, System.EventArgs e) { ArrayList arr=new ArrayList(); for(int i=0;i<ckFilter.It...more >>

C# equivalent syntax
Posted by C# newcomer at 1/29/2004 8:30:43 AM
Hi all Please help me with the C# equivalent syntax for the following C++ code. Thanks a lot in advance. double *firstVal; int secondVal; double thirdVal; int fourthVal; firstVal = new double[secondVal]; *(firstVal + thirdVal) = fourthVal; delete [] firstVal;...more >>

encoding question: read shift-JIS data from database
Posted by jani2004 NO[at]SPAM gmx.net at 1/29/2004 8:27:12 AM
Hi, i am using a database which contains kanji characters with shift-jis encoding, and i want to show the characters in a datagrid. Now i am using a sqldataset as data source, and show the data in a asp.net datagrid. The problem ist, the characters can not be shown properly. could anyone ...more >>

Displaying a 1-many relationship properly
Posted by frank NO[at]SPAM hubhop.com at 1/29/2004 8:05:41 AM
Hi! I just run into a problem wich some of you might be able to solve really quickly so i decided to give this group a shot. In the database a have 2 tables (well, to make it easy here). 1) Question 2) Answer Each question has multiple answers attached to it. this means that your will ...more >>

What is the purpose of FormsAuthentication.SignOut()?
Posted by Ali at 1/29/2004 7:57:27 AM
MSDN documentation says: Removes the authentication ticket. That's it. Where does it remove the authentication ticket from (server / client?). Please help. Ali ...more >>

Launching another form from current form
Posted by Dan at 1/29/2004 7:39:24 AM
Hi. I'm trying to launch a second form from code in a first, but it doesn't seem to working. Originally I tried to write the code as follows (Form2 has a public method called AttachDataSet): Application.Run(new Form2()); Form2.AttachDataSet(ds); Form2.Show(); However, Intellisense coul...more >>

About pup up Web form using C#
Posted by billgay_hk NO[at]SPAM yahoo.com.hk at 1/29/2004 7:05:29 AM
i am the new guy for C#. How to call other web form but the old web form will not close? is it possible use Response.Redirect or Server.Transfer to do it?...more >>

Deactivated forms
Posted by Bevo at 1/29/2004 4:11:10 AM
I instantiate form B from form A and makes A the owner of B. At a certain user action I hide B (tried both .Hide and .Visible = false), then I show it again at another action. When I do it refuses to activate. It displays on the screen but has the 'deactivated-colors' and will simply not respond to ...more >>

Tag Property
Posted by C# Learner at 1/29/2004 3:41:12 AM
How can I achieve something like the following? private void label_Click(object sender, System.EventArgs e) { Label label = (Label)sender; int number = (int)label.Tag; } The second line causes a System.InvalidCastException to be thrown. Nine Labels have their Click event handlers set ...more >>

DataBinding (MySQL/C#) displays System.Byte[]
Posted by hkprogrammer NO[at]SPAM yahoo.co-dot-jp.no-spam.invalid at 1/29/2004 2:58:48 AM
Hi All, I am trying to bind a text field to a text box, I use txtMessage.DataBindings.Add(new Binding("Text", dt, "message")) ; where message is a text field in MySQL. The result is the text box shows "System.Byte[]" If I bind a char field to the text box, it works like a charm. Ho...more >>

Problem when sending an xml string to a web service
Posted by anonymous at 1/29/2004 2:19:50 AM
Hi, I'am sending an xml string to a web service(which is written in c#) using the microsoft web services behavior. When I check this string from the web service I observed that some of the charaters have been replaced. e.g "<" is replaced with "%3C", ">" is replaced with "%3E" charac...more >>

Comunicate controls
Posted by Josema at 1/29/2004 2:06:10 AM
Hi to all.... I have a webform and inside 2 webcontrols like this.... Webform.aspx |---------------------------------------------------- | Webcontrol1 | | ____ | | | | ...more >>

Periods in Namespace Names
Posted by C# Learner at 1/29/2004 1:18:48 AM
Is the following: namespace Foo.Bar { } ....equivalent to this: namespace Foo { namespace Bar { } } ?...more >>

Namespaces
Posted by C# Learner at 1/29/2004 1:00:04 AM
Can a namespace be divided over two different files in different assemblies? I want to create two different assemblies for a library, with the same namespace being the top-level namespace for each. i.e.: // Assembly 1. namespace MyLibrary { //... } // Assembly 2. namespace MyLib...more >>

problems with streamwriter output to .csv
Posted by Brendan Miller at 1/29/2004 12:44:52 AM
Hi, I have been having a problem writing the contents of a dataset to a .csv file. When I write to a .csv file and open it with either Excel or Wordpad the "french" characters are wrong. When I open the file with notepad the characters are displayed correctly. e.g. in notepad: École, in Wor...more >>

How to minimize the parent window when the child window gets minimized?
Posted by Nagachandra Sekhar Grandhi at 1/29/2004 12:27:13 AM
Hi, I am opening a dialog box (which is also a form) after clicking a button in the main form using ".ShowDialog(this)". There is a minimize button for the opened dialog box(form). I want to minimize the parent form when my child form gets minimized. How to do this? Please let me kn...more >>


DevelopmentNow Blog