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 2004 > threads for thursday july 22

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

How to share assembly attributes between multiple assemblies?
Posted by RoveR at 7/22/2004 11:58:22 PM
Hi, I have a couple of assemblies containing ServicedComponents-derived classes which will be registered into the same COM+ Application hence I want them to have the same ApplicationIDAttribute, ApplicationNameAttribute, ApplicationAccessControl, etc. It becomes a management nightmare to ma...more >>

LDAP
Posted by Mike at 7/22/2004 11:21:54 PM
Hi, I am trying to bind to an Active Directory server using the following = snippet, but I always get a usre unknown or bad password error message.=20 DirectoryEntry de =3D new = DirectoryEntry(LDAP://srv-dell.waysoft.local); de.AuthenticationType =3D AuthenticationTypes.ServerBind;...more >>

significant figures
Posted by Alvin Tan at 7/22/2004 10:28:38 PM
Help needed...how do i set significant figures in csharp? Eg. I want the number to display as 15.00 instead of 15. Thanks in advance Cheers Alvin ...more >>

A business case and calling managed (!) code
Posted by Fender Mussel at 7/22/2004 9:01:08 PM
Hi, We are in a situation where we have a Win32 application which is currently deployed to about 15000 desktop machines and want to rewrite the back end (business logic) in a modern language. At the moment there is no change for changing the front end (GUI) because it's far to complex to ...more >>

xml serialization
Posted by Ohad Young at 7/22/2004 8:10:11 PM
Hi, I'm using xml serialization to persist an object's state. The objects has a public field which holds xml content as string. The field is decorated with the [XmlTextAttribute] instruction attribute. When the field is serialized its content changes, for example ">" is replaced with "&gt" a...more >>

How do I read a delimitted file into a DataTable?
Posted by Jim H at 7/22/2004 7:59:55 PM
I have a tab delimitted file with many rows. Is there a .NET class that alread exists to read this file into a DataTable? Or do I just have to read and parse the data? Thanks, jim ...more >>

creating a control's bitmap
Posted by VR NO[at]SPAM MSDN.COM at 7/22/2004 7:16:26 PM
Please help. How can I in OnPaint(...) of my control create a bitmap with the image of my control? protected override void OnPaint(PaintEventArgs e) { Bitmap oBitmap = new Bitmap(Width, Height); // copy the way the control looks into the bitmap???? } Thanks, VR ...more >>

Problem on Permission
Posted by simon at 7/22/2004 6:42:03 PM
Hi, I am writing a program using window task scheduler to schedule a job. I use UCOMIPersistFile class to save a job. But I receive an exception on this System.UnauthorizedAccessException: Access is denied. at System.Runtime.InteropServices.UCOMIPersistFile.Save(String pszFileName, Boolean f...more >>



Icon for the .exe of a form
Posted by Rookie at 7/22/2004 5:42:41 PM
Hi, I have a C# application which has 3 forms. I want to set the icon for the ..exe to a custom made icon. How do I do this? I tried setting the Icon of the main form. But that didn't work. It only shows that icon in the titlebar of that form. Can someone out there help me out this? Thanks....more >>

Using C# XML comments to document an Enumeration
Posted by Rhy Mednick at 7/22/2004 5:24:42 PM
I can't seem to figure out how to use C# XML comments to document the members of an enumeration. Here's an example of what I have so far: /// <summary> /// Specifies how ink is to be scaled in relation to its parent control. /// </summary> public enum InkScalingMode ...more >>

Help, Strange "An exception 'System.TypeInitializationException' has occurred in ... error.
Posted by nick at 7/22/2004 5:20:11 PM
The program runs well on Local harddisk. But it always popup the exception if I run it on Netware mapping disk. After debugger say there is no source code on the exception. Also the following error shows. Very strange. Unhandled Exception: System.TypeInitializationException: The type init...more >>

Cannot Reference to ADO.NET !!!
Posted by Hyo-Han Kim at 7/22/2004 5:17:02 PM
I got some code from codeProject .. It using ADO interface.. using System.Data; // State variables using System.Data.ADO; // Database using System.Globalization; // Date But System.Data.ADO can not be recognized.. Syst...more >>

release date for VS .NET 2005
Posted by Jeff at 7/22/2004 4:17:00 PM
hi Is there set a release date for Visual Studio .NET 2005??? if so, what is the date?? I want to develop appz in VS 2005 Cheers! Jeff ...more >>

serialization
Posted by Ivan A. Gavrilyuk at 7/22/2004 4:16:05 PM
Hi Why i can't serialize ArrayList of my own classes using XmlSerializer? I get error "Error generating XML document". Thanks. ...more >>

Referencing "this" in event calls
Posted by khatovar NO[at]SPAM hotmail.com at 7/22/2004 4:10:17 PM
When I reference "this" in call to event, I get the following error: An unhandled exception of type 'System.NullReferenceException' occurred in csbasesockets.dll Additional information: Object reference not set to an instance of an object. Here is a summary of my code: public delega...more >>

Really good idea about bug tracking
Posted by Praxis Happenstance at 7/22/2004 3:57:26 PM
Here is a guy who wrote a really great article about using asembly meta data for bug tracking. I'm implementing this code, pronto ! ...more >>

How to insert a record into Access table?
Posted by VM at 7/22/2004 3:49:13 PM
What's the fastest way to insert data into an Access table? I'm currently using ExecuteNonQuery but it seems to take too long (should filling an mdb table be slower than filling a datatable?). So this is my code to insert several rows: string strDSN = "Provider=Microsoft.Jet.OLEDB.4.0;Data Sou...more >>

"Ascii" codes to Hex (again)
Posted by Kai_Bøhli at 7/22/2004 2:30:42 PM
Hi all ! I've got a lot of feedback from (the always helpful) Jon Skeet on this subject before. Dispite this I'm still not there - due to my own lack of knowledge of course. Anyway, I'm "talking to" different labelprinters. They got one thing in common -> A char value above 127 must be w...more >>

a question about oracleconnection
Posted by ÍõÑå¾ý at 7/22/2004 2:30:07 PM
Is there a way to connect the oracle server without a oracle client software? ...more >>

Dumping datatable into Access table
Posted by VM at 7/22/2004 2:25:33 PM
How can I continually dump a datatable into an Access table? The Access table and the datatable have the same structure so every X records, I can dump the data into the Access table, flush the datatable, and then continue to fill the datatable. Thank. ...more >>

hex to int conversion
Posted by R Lee at 7/22/2004 2:24:47 PM
Newbie trying to write a hex to int converter for experience with forms, etc. Is there a conversion class in the framework for int-hex? Thanks for the feedback Ron ...more >>

RegisterStartupScript
Posted by Nic at 7/22/2004 2:08:01 PM
Hey, Problems. I have an asp form with an textbox and a button. When I click the button I want to check te content of the textbox. private void NextButton_Click(object sender, System.EventArgs e) { this.CheckInteger(TextBox1.text); ........ } private void CheckInteger(string itext) {...more >>

Performace Counters: How to get value per minute?
Posted by Sam-I-Am at 7/22/2004 1:40:27 PM
Hi There I would like to create a Perfomance Counter to monitor Joins on a website per minute. I have previously used the RateOfCountsPerSecond32 and a timer component. How can I measure per min? Thanks, S ...more >>

SmtpMail class exception "Could not access 'CDO.Message' object."
Posted by M D at 7/22/2004 1:27:16 PM
For the code see MS knowledge base #310273. All I did was comment out the parts for adding an attachment and put real values in for smtpServer & email addresses. For the SmtpServer I used my email providers entry point which they refered to as "smtp server for asp mail" and I'm wondering if i...more >>

Forms icon
Posted by Rookie at 7/22/2004 1:20:28 PM
Hi, In the title bar of the form, there is an icon displayed. How do I get rid of it? I tried programmatically doing : this.Icon=null; (this refers to the form) That didn't work. Is there anything else I should be doing? Hope to hear from someone out there.Thanks ...more >>

displaying key-value pairs in comboboxes
Posted by Nikhil Patel at 7/22/2004 12:50:54 PM
Hi All, I am using a dll function that returns a two diamensional array containing BankNames and RoutingIds. I need to display BankNames and RoutingIds in two different comboboxes. When user selects an item in any of these two comboboxes, I need to pick the matching item in another combobox. ...more >>

HOWTO insert a file (100KB) in a database
Posted by mac at 7/22/2004 12:39:03 PM
thanks, mac ...more >>

BeginInvoke, EndInvoke leaves extra thread
Posted by Nick Palmius at 7/22/2004 10:38:58 AM
Hello, I am experimenting with async callbacks using BeginInvoke and EndInvoke, and although my code which I have shown below works, when the program stops at the end (on the ReadLine()), there are still 2 threads running if i pause the execution, even if I kow that EndInvoke has been called o...more >>

Playing an audio file
Posted by Greg Smith at 7/22/2004 10:27:26 AM
Hi, is there a simple way to play a short audio file? Some of my users would like to hear "There is a new order for your approval" when ever the situation calls for it. Is this do-able? Any help is greatly appreciated. ...more >>

switch keys vs if else if
Posted by pixel at 7/22/2004 10:21:48 AM
hi i just discovered something strange when i use in ProcessCmdKey this construction switch(keyData) { case Keys.Left: { ... }break; case Keys.Right: { ... }break; } everuthing is fine but in this construction if((keyData & Keys.Left) ...more >>

Are C# scoping rules different from C++
Posted by Joel Gordon at 7/22/2004 10:10:40 AM
Hi, When I try and compile the a class containing the following method : public void doSomething() { for (int i=0; i<5; i++) { IList list = new ArrayList(); Console.WriteLine( i / (list.Count) ); } int i = 23; IList list = ne...more >>

MVP's Please respond!
Posted by Vai2000 at 7/22/2004 9:58:58 AM
Hi All, To my correct understanding Garbage Collection works based on Generation algorithm...(high level). I have an application which does some heavy operations usually File I/O's. I want to force garbage collection on this class. I still want the GC to release all resources before finalizing e...more >>

Parsing RSS (XML)
Posted by Marc Jennings at 7/22/2004 9:35:54 AM
Morning All, I am trying to write a small windows app to keep track of a couple of blogs. The blogs I want to look at are available as RSS feeds through a static URL. A typical feed will look something like this. <rss version='2.0'> <channel> <copyright>Copyright 2002-2004 Blog Au...more >>

Capturing keystrokes
Posted by Pjotr Wedersteers at 7/22/2004 9:34:56 AM
Hi I want to write a small prog/applet that does nothing but the following: Display icons representing the keys pressed on the keyboard in a small "always on top" but transparent window. The keys must always be read - even when the proggy has no focus- but not erased from the keyboard buffer ...more >>

What are multi-file assemblies used for???
Posted by anyusernameisgood NO[at]SPAM yahoo.com at 7/22/2004 9:15:14 AM
Hello, I was wondering when multi-file assemblies may be useful. With multi-file assemblies you may place inside the same assembly netmodules coded in different languages and as a consequence code from a module may obviously utilize private and internal classes defined in other module (mayb...more >>

.NET Newbie Question
Posted by Jeff Johnson at 7/22/2004 8:49:23 AM
I"m updating an ASP site to ASP.NET and have a question.... My site is a vehicle configurator in which the user selects a image (paint swatch), the colour code is submitted on a hidden page and the newly selected paint swatch is highlighted, seamlessly, via JavaScript generated from the hidden...more >>

ListView that allows the user to edit it contents???
Posted by anyusernameisgood NO[at]SPAM yahoo.com at 7/22/2004 8:45:03 AM
Hello, how can I create a ListView that allows to user to edit its columns contents? Thx. Bob Rock...more >>

Passing Parameters in a Select Statement
Posted by Brian Conway at 7/22/2004 8:10:40 AM
I am trying to get a parameter passed from one page to another in a QueryString to get inserted into the select statement on the page that is getting called. If I hard code in a value everything works, but I can't figure out how to get it to pass in as a parameter. Here is what I have. The par...more >>

DropDownList selecting sole value
Posted by KavvY at 7/22/2004 7:38:59 AM
How can I get a selected index changed event to fire, when the DropDownList only has one item? Thanks, Rich. ...more >>

TopMost without stealing focus
Posted by Robert Misiak at 7/22/2004 4:02:46 AM
Is it possible to display a window on top without it stealing focus? (and I'm not talking about stealing focus from my application - I'm talking about it stealing focus from any application.) I've read that calling ShowWindow() with SW_SHOWNOACTIVATE would work but I tried and it didn't. I'm i...more >>

dropdownlist control
Posted by tryer at 7/22/2004 3:58:58 AM
hi i have two dropdownlist controls on my web form. i want each to trigger the selectedindexchaged event which i already set to two different functions implemented in the code behind (one for each control). unfortunately, for each events, only one of the two functions is always invoked by ...more >>

Create Custom GUI in C#
Posted by homaneag NO[at]SPAM yahoo.com at 7/22/2004 2:58:38 AM
Hi all, Does any one know how to create a custom window like the control panel of PowerDVD and WinAmp in C#? If I need to use C++ Library to do this, where should I head to? Thanks for Concern, Homa Wong...more >>

ASP databinding DataFormatstring boolean
Posted by Jac at 7/22/2004 2:49:03 AM
Hey, I do a databinding and use the following <asp:datagrid .....> .... <asp:BoundColumn DataField="f1" HeaderText... DataFormatString="{0:d}">.. This works fine for a date. Now, I have also another column but the bounded field is of the type boolean, when I use the binding of that colum...more >>

Retrieve mail from Exchange 2000/5.5 using C#
Posted by rob.cherry NO[at]SPAM gmail.com at 7/22/2004 2:45:38 AM
Hi all, I have done a lot of researching on the above topic and the only think I now know for sure is that I have to use either CDO or MAPI. What I need to do is this: I want to write a C# desktop application that will connect to the exchange server and retrieve mail from an inbox. The fe...more >>

Windows Xp look for C# application.
Posted by Nick at 7/22/2004 2:16:35 AM
I've created the <exename>.exe.manifest for my application and it works fine as long as the file is in the same dir as the executable. I am using Borland C# Builder. How would I go about creating a resource file from that manifest file I have so I can import it into my project. Thanks for an...more >>

Fetching Font information ?
Posted by Sachin at 7/22/2004 12:20:01 AM
I am trying to fetch the font information using following code private void Form1_Load(object sender, System.EventArgs e) { IntPtr hdc = Win32API.GetDC(this.Handle); try { LOGFONT lf = CreateLogFont(""); int ret = 0; try { ret = Win32API.EnumFontFamiliesEx (h...more >>

Platform invoke: referencing parameters as structures
Posted by russb_69 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 7/22/2004 12:03:38 AM
Russ here. I'm new to this forum. I need help in understanding why the following code does not work. Basically, I'm defining a structure in a c# application, and using a c++ dll to modify it. Here's the c++ .dll file: // DemoAccountDLLTest.cpp : Defines the entry point for the DLL applic...more >>


DevelopmentNow Blog