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# > november 2004 > threads for tuesday november 23

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

WinInet FTP Connection Timeout Problem
Posted by Ratan at 11/23/2004 10:49:01 PM
How to control FTP connection (InternetConnect) timeout using WinInet API in C#. Can anybody provide me some code example or suggestion to solve above problem. /Ratan...more >>

event disappearing
Posted by Tim Jarvis at 11/23/2004 10:46:52 PM
Hi, I have a really frustrating problem.... I have a custom windows form control that contains a collection of controls, these controls in turn contain other controls, a titlebar for example a client scrollable area etc. My component needs to be able to generate a custom click (cardpanelcli...more >>

Inherited forms (once more)
Posted by Tamir Khason at 11/23/2004 10:40:53 PM
I have a VERY COMPLICATED MULTILINGUAL form with base values on it I want to produce about 100 forms like this, BUT with their own values and properties, so following IDE flow I make derrived form from base form (Add->Add Inherited form), AND of couse I can not change anything on it. Sure I c...more >>

How to convert int to byte[]
Posted by Shankar at 11/23/2004 9:39:03 PM
How can we convert the integer values to byte arrays using C#.NET...more >>

Storing a struct or class in a hashtable and modifying it.
Posted by Bill at 11/23/2004 9:22:31 PM
Hello, Here is some code: I'm thinking that when storing an object in an ArrayList or Hashtable that it clones the object. This can be shown like so: // key is a generated hashcode for this function (its unique). public struct Test { int m_state; } p_newItem.m_state = 0; // Set th...more >>

overwrite method in class at runtime
Posted by landagen at 11/23/2004 7:55:01 PM
I want to be able to write a method that varies from instance to instance of a class. Basically I have a formula class. Somebody inputs a formula and I parse it and generate the code to calculate it. I have looked at Reflections.Emit. The problem is that it requires creating a new type e...more >>

translate code into c# from vb.net
Posted by pimsor NO[at]SPAM hotmail.com at 11/23/2004 7:49:14 PM
Hello, I have been trying to convert this vb.net code snippet below into c# for a couple days and I have had no luck. Maybe someone out there can point in the right direction. Dim iPersist As IPersistStreamInit. iPersist = CType(PDF1.GetOcx, IPersistStreamInit) iPersist.GetSizeMax(len) ...more >>

Passing ArrayList from unmanaged code
Posted by GeRmIc at 11/23/2004 7:19:03 PM
Hi, I am doing an interop from unmanaged code to C#. How do i pass an ArrayList pointer from an unmanaged code, (structres are easily passed by between C# and C). //This is the C code NameStruct lnames; //This is a structure in C# GermStruct lgerms; //This is a structure in C# msco...more >>



Creating datagrid view from an two-dimensional array
Posted by mirek at 11/23/2004 7:12:41 PM
Hello, is there a way how to create data view (via datagrid) of a 2dim. array? I've data which I've got via SOAP call - it is a customer list, I want to simply display it in an datagrid. Can someone point me to an example how to do it? thanx Mirek...more >>

Fec classes need...
Posted by rr at 11/23/2004 6:17:30 PM
Hi does anyone knows if i can find any library or class for .Net about Fec (Forward Error Correction) ? Fec in a math process to recover missing data over a network communication. Need to implement into a communication program. Thanks. ...more >>

Im only try to get a string...
Posted by Sam Martin at 11/23/2004 5:52:06 PM
from a resource file. Hi all, Im having a bit of a moment. I've got resource files in each of my assemblies, just named like "Labels.resources" for example. I've got a commond base method in one of my classes, that when given the resource name = "Labels" and the Assembly i just want ...more >>

Tree Node Rename Performance Problem
Posted by Saradhi at 11/23/2004 5:46:19 PM
This is a multi-part message in MIME format. ------=_NextPart_000_000E_01C4D184.56C42580 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi All, Here I am facing a performance problem with the TreeView Node renaming. I am displaying a hierarch...more >>

The difference between these 2 techniques in open xml file ?
Posted by Chua Wen Ching at 11/23/2004 5:43:03 PM
Hi there, I am just curious, is there any difference between these 2 techniques used as below: 1. FileStream fs = new FileStream(@"C:\hello.xml", FileMode.Open); XmlTextReader xmlreader = new XmlTextReader(fs); 2. XmlTextReader xmlreader = new XmlTextReader(@"C:\hello.xml"); A...more >>

Threading
Posted by Zach at 11/23/2004 5:40:43 PM
Can anyone suggest a *really* good book on threading. No million pages. No Deitel & Deitel type would-be clever examples. Many thanks, Zach....more >>

Trouble converting C# class into COM
Posted by Eric at 11/23/2004 5:14:51 PM
hi, I want to convert a C# class into COM, so that I can use the class in C++. The codes compile and link well. But when I run the program, I got a exception. Any comment is welcome. Thanks in advance. Eric ---------------------------------------------------------------------- in C#, ...more >>

Securing hashing algorithm
Posted by Wm. Scott Miller at 11/23/2004 4:54:35 PM
Hello all! We are building applications here and have hashing algorithms to secure secrets (e.g passwords) by producing one way hashes. Now, I've read alot and I've followed most of the advice that made sense. One comment I've seen alot about is "securing the hashing routine" but no-one expl...more >>

ANN: Bob Powell's Beginners Guide to GDI+
Posted by Bob Powell [MVP] at 11/23/2004 4:51:58 PM
Many of you use the GDI+ FAQ or Windows Forms Tips and Tricks site every day. There are also hundreds of people who have mailed me asking for a totally basic beginners guide that assumes minimal knowledge of .NET to get started. In response to these requests I have created a new series of arti...more >>

Faultly Database Connection
Posted by Greg Horwood at 11/23/2004 4:21:03 PM
Dear All, Can anyone tell me what's going wrong with the following code. I'm fairly new to C# programming and ready to tear my hair out. m_Numbes is a DataTable object DataRow drNewRow = m_Numbers.NewRow(); drNewRow["Key"] = 5; m_Numbers.Rows.Add(drNewRow); m_daDataAdapter.Update(m_Num...more >>

Bitmap from file too big
Posted by carmen at 11/23/2004 4:12:35 PM
I'm trying to work with a big bmp file (240.000 bytes) and get an OutOfMemory exception in this sentence: Bitmap myBmp = new Bitmap(myFileName); Is there anything that I could do? Thank you! Carmen ...more >>

Add a row to an HTML table
Posted by Tim Cowan at 11/23/2004 4:05:00 PM
Hi How do I add a row to an HTML table at run time? I have a table with an ID and the rows that I want to add under also have ID's(<TR id="397">) Can someone help? Thanks Tim Cowan ...more >>

X509 Certificates and Riijndael encryption
Posted by Mattia Saccotelli at 11/23/2004 2:49:29 PM
Hi I would like to encrypt data using AES (Rijndael) algorithm, providing as the key the key from a given certificate. Just for testing I'm using the public key.. Shouldn't I use the private key instead of the public one? Is there a way to get it or to use such algorithm with a specified ...more >>

filter by file properties
Posted by Craig at 11/23/2004 2:43:05 PM
I'm trying to build a filter for a file search where the search will be able to filter out certain files according to certain "file properties", like Owner, Creation Date, etc. MS does this in some Open dialogs, within the dialog, you can click on Tools->Search->Advanced and search for files ...more >>

Marshalling WIN32_FIND_DATA
Posted by BobT at 11/23/2004 2:37:03 PM
Does anyone have a good C# marshalling for the WIN32_FIND_DATA structure used with API functions FindFirstFile, FindNextFile, FtpFindFirstFile and InternetFindNextFile? Have modeled as follows [StructLayout(LayoutKind.Sequential)] public class FILETIME { public int dwLo...more >>

Dynamically generate a MS Word document using ASP.Net
Posted by jijo kuruvila at 11/23/2004 2:13:04 PM
How we can Dynamically generate a MS Word document using ASP.Net? -- Jijo kuruvila trivandrum,Kerala,India...more >>

point a .csproj file to use .cs files from its parent directory?
Posted by John E. at 11/23/2004 2:08:05 PM
Some of our developers are using .NET 2005 already and other are using 2003. Since they are not backwards compatible, we were trying to devise a system where we have 2 different project files that access the same source code (.cs files). Is it possible to do something such as /src/2003project an...more >>

Write to immediate window
Posted by Tim Cowan at 11/23/2004 2:06:39 PM
Hi How do I write to the immediate window in a C# web project? I want to use it for debugging. When I used VB I would write Debug.Print. What is the equivalent for C#? Thanks Tim Cowan ...more >>

c# 2.0
Posted by Simo Sentissi at 11/23/2004 2:05:27 PM
does anybody when the new version will be officially out? also I am thinking about getting certified so anybody know when the new exams with 2.0 will be out as well ?...more >>

Dynamically generate a MS Word document using ASP.Net
Posted by jijo kuruvila at 11/23/2004 1:57:02 PM
How we can Dynamically generate a MS Word document using ASP.Net??? -- Jijo kuruvila trivandrum,Kerala,India...more >>

VB to C# Conversion Advice...
Posted by clintonG at 11/23/2004 1:41:44 PM
From page 3 of "Personalization in ASP.NET" [1] I don't fully understand how to convert the signature of the following code snippet or the ASP.HttpProfile assignment which follows... Sub Profile_MigrateAnonymous(ByVal sender As Object, ByVal e As ProfileMigrateEventArgs) Dim anonymousProfil...more >>

Code Generation
Posted by Bhargavan at 11/23/2004 1:34:54 PM
I have created a user control to be used in form designing. When I add the control to a form, it automatically generates the code for all the members of that user control class. But I also have couple of methods in the class and the code generation to call those methods are not automatically ...more >>

Ping ip address
Posted by Mantorok at 11/23/2004 1:30:51 PM
Hi all I want to ping an ipaddress/host to check for a response. Is there any easy way in C#/.Net to do this? Thanks Kev ...more >>

Trace and LogForNet
Posted by Champika Nirosh at 11/23/2004 12:27:24 PM
Hi, What is the different between System.Diagnostic.Trace and LogforNet.. if Trace is there to track error why this open source library is there.. Please clarify.. Nirosh. ...more >>

how to configure in my app.config a TextWriterTraceListener to use System.Console.Out ?
Posted by Didier Bolf at 11/23/2004 12:20:13 PM
hello I'd like to add a listener in the app.config of my application, something like <add name="myListener" type="System.Diagnostics.TextWriterTraceListener"/> I can use initializeData="mylog.txt" to trace in a file but I 'd like to trace in the console but I can't find how to do ... I can't ...more >>

Can I add another application to my solution?
Posted by VMI at 11/23/2004 12:18:37 PM
I want to add an entirely indepedent application that will be called as an Exe from my current solution with System.Diagnostics.Process.Start("newProgram.exe") . This new application will be a simple Form with a button, but it has to be able to run after my main application closes. Do I need...more >>

Get System Default Types
Posted by Champika Nirosh at 11/23/2004 12:10:37 PM
Hi All, I have the string value of the System types.. now I need to get the default value for that system type.. I have string s = "int"; not I need string sd = "0"; sd is the default for the int type.. same way is it is a bool then default value should be "false" How can I do thi...more >>

marshal C# structure to VB6
Posted by Michael Murphy at 11/23/2004 11:45:07 AM
I am writing a C# class library that exposes a method that return a structure. I am registering the assembly for COM interop and can reference the assembly in VB (Actually an Acces 2000 Code Module). I can instantiate the object in VB but when I declare the variable for the returning structu...more >>

deploying and invoking web services at runtime
Posted by Faraz at 11/23/2004 11:23:10 AM
Hi guys, Is there a way(from within C#) to deploy and reference a web service at runtime. I think I can do the deployment fine, but the question is - can I also reference it at runtime, since I cant change anything manually. Any help will be appreciated. Thanks...more >>

c# program execution
Posted by Junaid Hussain at 11/23/2004 11:15:46 AM
Hi, I have been developing a game using C#. When I execute the .exe program file, I get a console/command prompt open up alongside the actual program as you may know. This console is invaluable for debugging purposes, however I want to know if there is any way of stopping the console from app...more >>

url parameter
Posted by zbcong at 11/23/2004 11:11:07 AM
hello how can i get the parameter "param" from the url http://localhost/myapp/webform1.aspx?param=p1 in the serverside c# code? thank you ...more >>

Parse HTML document
Posted by Donal McWeeney at 11/23/2004 10:55:14 AM
Hi, Anything in the .net class library that would help me with parsing html files into a DOM. Likewise with parsing aspx files. If not any pointers to online articles or useful examples on this subject. Thanks Donal ...more >>

windows form
Posted by freddy at 11/23/2004 10:55:05 AM
I have two forms and I want labels, textbox controls on both froms with have the same text like First Name also the name is called txtFirstName. Do I use inherit form or control to do this...more >>

DataSet.ReadXml - where the schema name is?
Posted by RA at 11/23/2004 10:16:27 AM
Hi I have an xml schema and I have created a dataset from that schema. I have a web service that recieve info and sends back an xml information. I send back the xml using SchemaDataset.WriteXml (...) A consumer of the web service then call a different method of the web service which takes an ...more >>

ASP.NET 2.0 Maintain Scroll Position on PostBack with Mozilla FIREFOX in the works?
Posted by ed at 11/23/2004 10:11:52 AM
Does anyone know if ASP.NET 2.0 is going to incorporate "maintain scroll position on postback" in non-IE browsers like Firefox? This seems like an often requested feature on these newsgroups since the beta version of .NET. Microsoft heavily advertises it's .NET browser detection advantages, ...more >>

Getting ListView items in C# from SysListView32 using SendMessage
Posted by davidr1ch NO[at]SPAM yahoo.co.uk at 11/23/2004 9:45:32 AM
Hi I am trying to access the listview items from a SysListView32 control in C#. I am using LVM.FINDITEM and LVFINDINFO through SendMessage to try to get the text from each column in the item (it is a multi-column list view). I am using the PARTIAL flag to try to find an item starting with a...more >>

Send Mail in Exchange 2003 with c#
Posted by Cecilio at 11/23/2004 9:41:40 AM
Hello Somebody knows how i can send an email by Exchange 2003 (for the intranet account, not internet account) in a c# webservice? Thanks and Regards ...more >>

Finding subclasses
Posted by MR at 11/23/2004 9:39:10 AM
I'm hoping that someone here will be able to direct me to some litrature on how to get a list of a classes subclasses. I.e. need the inherited class to know about subclasses that are inherited form it. I guess that I'll have to use reflection but I can't find any examples on MSDN. Thank...more >>

How to define own DialogResults?
Posted by Frank at 11/23/2004 9:33:40 AM
Hello, i have a form for different uses. So my form should have as DialogResult 'Button1', 'Button2' and so on instead of 'No', 'Yes' or other predefined Results. Does anybody knows, how to define non-predefined DialogResults? Thanks Frank ...more >>

How to scroll a web page?
Posted by Andres Romero at 11/23/2004 9:25:03 AM
How can I scroll a web page in code? I need to send the user to a specific page location after a SelectedIndexChanged RadioButtonList event....more >>

How we can print the items in Datagrid to MicrosoftWord format?
Posted by jijo kuruvila at 11/23/2004 9:17:02 AM
I have a datagrid which contain purchase Order details..How can i print it to Word format...when we click the print button...what code we must write in the print button event? -- Jijo kuruvila trivandrum,Kerala,India...more >>

Form.ActiveForm.Handle exceptoin
Posted by Dennis C. Drumm at 11/23/2004 9:15:03 AM
Why is it that when I am debugging an application that has a call to Form.ActiveForm, if I set a breakpoint before the call then when I reach that statement a NullReferenceException is thrown, but if the breakpoint was set following the call to Form.ActiveForm, then I can continue the debug ...more >>

Newbie Question
Posted by Peter Krikelis at 11/23/2004 9:13:03 AM
Hi, I have a VB NET class library. In the constructor of the library I spawn off a thread that is listening for some data. When it gets data it raises an event. Constructor has code that looks like the following :: Private MyThread As Thread MyThread = New Thread(AddressOf GetData) My...more >>

identifier length in C#
Posted by jim at 11/23/2004 8:53:06 AM
what is the maximum identifier length in C#? is it documented somewhere? ...more >>

code standards / guide lines
Posted by Wayne at 11/23/2004 8:51:06 AM
I've seen a topic like this on MSDN once before, but I can't seem to find it again. Anyone care to point me in the right direction? It covered naming conventions, code formatting, etc.... Thanks Wayne ...more >>

object properties changing on different machines
Posted by GrpGoogle NO[at]SPAM hotmail.com at 11/23/2004 8:36:14 AM
Hi. I have what I think is a strange thing happening when I copy code from one machine to another. I'm developing on a Win2000 desktop (17" monitor at 1280x1024 resolution). I'm putting the code on an XP laptop (15.4" monitor at 1280x1024) for someone else to use. When I look at the code for...more >>

XML parsing
Posted by bernardpace NO[at]SPAM yahoo.com at 11/23/2004 8:31:51 AM
Hi, I'm newbie to XML parsing. I have the following XML document and would like to extract the age for a specific person. Can you please give me some specific links, of how I can achieve this. <tags> <tag> <person> name1 <\person> <age> 34 <\age> ...more >>

OO Design Question
Posted by amcniw NO[at]SPAM yahoo.com at 11/23/2004 8:20:21 AM
I am writing an assembly that calculates an expected payment based on a patient's diagnosis and service lines performed in the hospital and the contract set up for the payer -- all this info is retrieved from the database. The calculation class has to be able to process multiple claims at the sa...more >>

It's gotta be something real obvious: Transform with param
Posted by Dan Beanweed at 11/23/2004 7:09:09 AM
I have this xslt : <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="p" select="'q'"/> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="/"> <xsl:element ...more >>

Problem creating FileInfo Array
Posted by etantonio NO[at]SPAM libero.it at 11/23/2004 6:38:04 AM
Good morning, I've the following file system : C: -> HTML -> Aziende -> Azienda_1 -> a.jpg -> Azienda_2 -> a.jpg ... -> Azienda_N -> a.jpg my desire is to create an array of fileinfo containing the a.jpg , a.jpg , ... , a.jpg in a way that I ...more >>

Provider properties + IExtenderProvider
Posted by WXS at 11/23/2004 6:33:07 AM
Is there any way to create an extender that provides an event to all controls that I return CanExtends==true for? It seems I can provide properties, like strings, bools, ints, but not events to other controls. The reason I would like to do this is so I can associate an event with the cont...more >>

Using XmlAttributeOverrides to override Type in a different assemb
Posted by Kishore Gopalan at 11/23/2004 6:29:03 AM
Hi, I have the following class. Assembly: A.dll public class Customers { public Customer[] customer; } public class Customer { public string name; public string country; public object obj; } The basic need is to serialize this. But the constraint ...more >>

C# Newbie, passing variables between Web Pages
Posted by simon.wilkinson NO[at]SPAM bms.com at 11/23/2004 5:36:45 AM
Hi, I am trying to do something that I presume is very simple but am struggling to do it. Any help would be appreciated. I have a Web form which requires a Date field to be filled in. I am using the ASP Calender Control to do this in a spearate window. However I want to return the chosen...more >>

Saving and loading bmp using graphics object
Posted by kgvinayak NO[at]SPAM gmail.com at 11/23/2004 4:54:29 AM
Hi, I am using the following code to draw whatever the user draws using x,y. // draws lines directly on a winform. CreateGraphics().DrawLine(APen, x, y, OldX, OldY); Now how do I save the drawing on to a bmp file on my harddisk? C# code in this regard would be very helpful. I tried all ...more >>

Prevent multiple application instances
Posted by Brian Keating EI9FXB at 11/23/2004 4:27:03 AM
Hello there, What is the best way in c# to prevent multiple instances of my application running at same time on one machine? thanks Brian...more >>

problem with list box
Posted by liranby NO[at]SPAM hotmail.com at 11/23/2004 3:53:24 AM
hi Hi I have a problem with list box. Every time I change it and the Selected Index Changed event is fired the listbox doesn't keep it new value. I've tried to change it with listbox.SelectedItem .Value but it doesn't work...more >>

Speed of class instantiation (immediate assignment vs. default values)
Posted by Anders Borum at 11/23/2004 2:43:36 AM
Hello! When declaring variables without immediately assigning a value, the CLR (please correct here) assigns a default value according to the (reference) type of the variable (e.g. string = null, int = 0 etc.). I always assign default values to my variables, but am unsure whether this degra...more >>

Reading Paradox Data
Posted by Steve Stafford at 11/23/2004 2:13:57 AM
I'm trying to read some Paradox tables using C#. I can see the tables in Server Explorer but I can't seem to get the Connection and Data Adapter set up. I'm sure I'm missing something simple. Can someone point me in the right direction? Thanks, Steve ...more >>

running from command prompt
Posted by bernardpace NO[at]SPAM yahoo.com at 11/23/2004 1:48:32 AM
Hi, I am writing a program, and need to execute a part of it in command prompt. When I execute it in command prompt, I type the following c:\> id3tag.exe music.wma show and it returns for me an XML file. How can I do that in C#. I was trying to do that by using the Process object but g...more >>

Listview update flickering problem
Posted by John Lee at 11/23/2004 12:02:56 AM
Hi, I have a windows application that uses the listview to display about 50 items in detailed view - 4 columns. The first column is static and other columns will be updated in 100-1000ms - it looks awful when it's running - flickering too much!!! Anyone know how to solve this flickering ...more >>


DevelopmentNow Blog