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 > threads for thursday august 26

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

CDO.Mail problems
Posted by Ben at 8/26/2004 10:39:32 PM
I've having a very boggling problem and I hope someone can help shed some light on it. I have and Email dll for my solution. Inside the solution two projects use the dll. An asp.net application and a c# console application. When the dll runs in the asp.net project it sends emails no problem...more >>


Hide Interface?
Posted by pnp at 8/26/2004 10:22:10 PM
Is there an attribute (or another method) to hide an interface (in a dll) from being seen from the object browser while browsing a dll? Thanks in advance, pnp ...more >>

Simple Database Connection Code
Posted by Poewood at 8/26/2004 10:01:02 PM
Does anyone have some basic code and the corresponding resources needed that will enable me to connect to an Access Database in .net compact frmwrk using C#. I need to learn how to create a recordset and do some reading, updating and appending. I can't seem to find any straight forward examp...more >>

long input
Posted by Dave at 8/26/2004 9:41:15 PM
What's the proper way to get a long from the console? ...more >>

DLLImport C issues netsnmp library windows app
Posted by indianiowan NO[at]SPAM yahoo.com at 8/26/2004 7:54:28 PM
Hi , Of course sometimes, some of us have these weird DLLImport issues. I am using Net-snmp library from http://www.net-snmp.org. While creating a prototype as console application it worked fine, but as windows application it fails to respond correctly. Verified by sniffer, the windows app does...more >>

C# StreamReader.ReadLine Problem
Posted by IDandT at 8/26/2004 7:52:44 PM
Hi, I am writing a small program that connect to IRC. I create a TCPClient connection and i use stream to read and write data. It works ok, but i have a problem reading from stream. while(true){ inputLine = reader.ReadLine (); if ( inputLine != null ) { .... ...more >>

base64 conversion
Posted by Jeremy Moncho at 8/26/2004 6:36:44 PM
Hello! I am toying with base64 conversion, (which I haven't used before). I wrote a dll that handles the in/out conversion for a windows form assembly. My question is, once a stream has been converted to base64, I loose the information regarding its file type (extension). Which is proble...more >>

Debug Mode
Posted by Nick K. at 8/26/2004 6:31:53 PM
I want a line of code to execute only if it is in debug mode, is there a way to do this in .Net/C#? ...more >>



No intellisense for DataGrid.HitTestType?
Posted by Vagabond Software at 8/26/2004 5:51:54 PM
The code seems to be working fine, but it is slightly frustrating to = have no intellisense for DataGrid. I have DataGrid dataGrid1 on my test form. In the MouseDown event for = dataGrid1, I typed the following code: DataGrid.HitTestInfo dgHitTest =3D dataGrid1.HitTest(e.X, e.Y); ...more >>

TableName as parameter? (asp.net, c#)
Posted by Kruno Milicevic at 8/26/2004 5:48:01 PM
I want to fill DataGrid with some table from my database. I usual use something like this: string sqlString ="SELECT * FROM TableName"; OleDbCommand myOleDbCommand = new OleDbCommand(sqlString , OleDbConn); OleDbDataAdapter myOleDbDataAdapter = new OleDbDataAdapter(); myOleDbDataAdapter.Selec...more >>

string equality
Posted by Claire at 8/26/2004 4:26:55 PM
I read a list of name/value pairs from a remote (pocket pc + RAPI) registry into a string array (3rd party wrapper for rapi registry objects). As I check through each set, I test each name against "Completed" and will skip the code if the test passes. Unfortunately, the string returned to me i...more >>

SOAP serialization exception
Posted by Tim Anderson at 8/26/2004 3:38:17 PM
I have an app that uses the SOAP serializer to serialize and deserialize a object of a certain class to a file. The class implements ISerializable. From time to time it is necessary to add or remove fields from the class. I've been able to deserialize out-of-date versions by handling serializatio...more >>

can I embed my own object, for example a table, into resource asse
Posted by Fei Li at 8/26/2004 3:03:04 PM
Hi, If I do not want depend on file and want embed some data into resource assembly which is not something predefined like bmp, icon... Can I do that? ...more >>

Need some perspective
Posted by web1110 at 8/26/2004 2:48:36 PM
Hi y'all, I am playing with some initial ideas for a system. What I want to do is maintain classes on a central server and instantiate them as needed on client machines. Essentially, changing a class and loading it on a server will automatically distribute to clients when instantiated. I wa...more >>

UrlEncode and character "*"
Posted by Anne at 8/26/2004 2:31:39 PM
To ensure a filename (entered by a user) does not contain any special characters, I use the "UrlEncode" method: string FileName = System.Web.HttpUtility.UrlEncode(textBox.Text); Unfortunately, the character "*" is not encoded so I have an error writing on disk if the filename contains a "*"....more >>

How can I do that?
Posted by Diego F. at 8/26/2004 1:53:34 PM
Hi. I need to map items from a DataSet to a SQL table. The problem is that in the DataSet I can have the same item repeted, but in the table, I have a field "quantity" to avoid that. So what I need is a structure where I get each item and the number of repetitions. In the DataSet, I have one t...more >>

Convert byte array to string
Posted by Dan at 8/26/2004 1:00:56 PM
I need to convert a byte array to a string in order to upload a binary file with an httpWebRequest. What's the most efficient way to do such a conversion? ...more >>

Microsoft Access DSNLess connection error, works fine in .ASP page, not in aspx code.
Posted by Derrick at 8/26/2004 12:47:43 PM
Trying this code in the Page_Load of a C# web page... private void Page_Load(object sender, System.EventArgs e) { string connstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\MyAccessDb.mdb;"; OdbcConnection conn = new OdbcConnection(connstr); conn.Open(); ... Throws this e...more >>

Help with server side best practices
Posted by Winston Nimchan at 8/26/2004 12:29:10 PM
Hi: I am trying to develop a server application that listens for incoming network request and processes these requests. Processing request involves analyzing the packet, applying business rules, updating database and generating a response packet. What is the best way to go about this? I'...more >>

Seemless Interactive UI Updation
Posted by rawCoder at 8/26/2004 11:49:43 AM
Dear All, Problem: Need to seemlessly update a DataBound Datagrid (WinApp) whenever the data in the attached Table changes from different appDomain. Current Solution: Using Triggers, Extended Stored Procedure, ESP DLL, and Sockets intimate the UI to call Refresh on Dataset. Problem in pri...more >>

Packaging .resx files into ONE .dll
Posted by fi2itoxlay NO[at]SPAM yahoo.com at 8/26/2004 10:49:27 AM
Hi all. I have an windows form application that will have multiple language ..resx files per form. Is there anyway I can bundle these .resx files into ONE .dll per form? If not, do you have any suggestions as to how these .resx files should be packaged with the application? Thanks in advance....more >>

what is difference "==" equals and ReferenceEquals
Posted by Fei Li at 8/26/2004 10:31:01 AM
Hi, take string class as an example, who can explain the difference? Thanks ...more >>

What comes first, the abstraction or the implementation?!
Posted by Mark Broadbent at 8/26/2004 10:30:33 AM
this might sound like an obvious question but I have found that usually these two evolve at the same time. One of the biggest reasons for creating the abstraction in the first place (in my opinion) is to create a reusable framework that can be applied to similar projects. However I have found th...more >>

create deactivated form
Posted by Ekim at 8/26/2004 10:12:55 AM
hy, I've got a quite simple application: one windows form that consists of a button, and as soon as the user hits the button a second form shall appear. The difficult thing about it is that I want the new form to be created as "deactivated" - that means that the second form has an editbox in i...more >>

Cleanup and random errors
Posted by Claire at 8/26/2004 10:11:39 AM
I've noticed a couple of problems recently concerning 3rd party controls and garbage collection. "Sometime" when the garbage collector decides to deal with an object, if there's a problem in its destructor, you'll get errors that are very hard to debug or find out where they're coming from. It...more >>

What is end-of-line character(s) in a RichTextBox.Text string?
Posted by Just Me at 8/26/2004 10:04:52 AM
In a RichTextBox I'm displaying RichText . Sometimes I search the Text property string and sometime the RtfText string. I need to know what is used for end-of-line in both the RtfText and Text property strings. I believe end-of paragraph is cr-lf is that right? Would the answers be diff...more >>

problem when serializing
Posted by fred at 8/26/2004 9:52:30 AM
I have an abstract class, say ClassA decorated with [XmlRoot("foo")] Now I write this class: class ClassB:ClassA { } When I serialize it, the root element is ClassB, not foo. Is there a way to make classB inherite from classA's XmlRoot attribute? thank you fred ...more >>

serialization problem with a class that derives from dataset
Posted by ofer at 8/26/2004 9:37:21 AM
Hi, I am working with the beta version of the new .net framework (Whidbey) and I encountered a problem with serialization that did'nt exist in the .net 2003 the situation is like this : I have a class that inherits from dataset, and I want to serialize it , so I created a serialization constr...more >>

non blocking wait in C#
Posted by Dave Hardy at 8/26/2004 9:32:11 AM
I have thread t1 . It spawns thread t2. I want to wait in thread t1 until the execution of thread t2 in completed. Bu t I do not want it to be a blocking wait since I want thread t1 to be responsive to WM_PAINT messages. I know how to do it in VC++ , but I have no idea how it can be done in C#. ...more >>

How to execute external file?
Posted by Tom at 8/26/2004 9:27:17 AM
Hi, I wrote a java console program. But, I am not familiar with Swing to write the GUI. I want to use C# to write the GUI, e.g. a start and a stop buttons. When I click the start button, it execute the jar file. Or, I wrote a batch file and let the GUI to run it. So, how should I wr...more >>

SmtpMail
Posted by Jason at 8/26/2004 9:01:43 AM
Hi just a really quick simple question. Can you configure SmtpMail class in C# to use a different port? or does it have to be port 25? Thanks Jason ...more >>

Getting data from DataGrid
Posted by S³awek Mróz at 8/26/2004 9:00:33 AM
Hi! Is it possible to get data just from DataGrid, not binded to any of DataSource? I can't find any suitable properties, every single example is based on binding data:-( I just want to put an empty dg, get data from users, process it somehow and then, finaly, put into database.... Help...more >>

Split select statement into two lines in c#
Posted by Anna Smith at 8/26/2004 7:56:42 AM
I have an extremely long and complex select statement as shown below and I need to split it onto two lines but not quite sure how to do it because I've never needed to before. I need to split it onto two lines because I keep getting this error : Compiler limit exceeded: Line cannot exceed...more >>

Reading in parts of an XML DataSet
Posted by PromisedOyster NO[at]SPAM hotmail.com at 8/26/2004 5:44:37 AM
Hi I am experimenting with XML files that contain data sets created using the WriteXML method available with the DataSet type. Reading in the whole file is simple using the corresponding ReadXML method. However, what I really want to do is simply read in the parts of the file based on a ver...more >>

Html Editor (MSHTML)
Posted by Pablo Ricco at 8/26/2004 3:16:23 AM
Hello, I have the next question: Is possible know if the mshtml editor can undo or redo? I use doc.execCommnad("Undo",false,null); but I need know if I can undo or redo for enable/disable Undo or Redo in the menu. If anybody have a good example about MSHTML, please send me. thanks, Pablo ...more >>

Does anyone know how to convert C# Array to JScript
Posted by jOs at 8/26/2004 2:53:41 AM
I wonder if anyone knows how to convert a C# Array into a JScript one. ( C# Array --> JScript.ArrayObject ? ) I have window.external on a customized C# WebBrowser, and it would be nice to get the datatypes right. ...more >>

any good at Datagrid
Posted by Webgour at 8/26/2004 12:36:30 AM
Hello, Any body knows how to generate a datagrid completly programmatically including sort with event and all?? ...more >>

Post Window Message
Posted by Curtis Kam at 8/26/2004 12:35:44 AM
Hi, I would like to know is there any PostMessage function availabe in VC#. Any reference? Thanks. Regards, Cutris ...more >>

Network Drive.
Posted by HK guy at 8/26/2004 12:17:02 AM
If a use supply a drive letter, hot to check it is a network drive or local drive. any Class to do this? Thx...more >>

About multi-Inherits
Posted by Jet Leung at 8/26/2004 12:09:18 AM
Hi all, I had made a UserControl, and I want to inherits panel,label,button and linklabel from my class. But when I typed the code like ==== public class A : System.Windows.Forms.UserControl,System.Windows.Forms.Panel, System.Windows.Forms.Button,System.Windows.Forms.Label,System. Windows.For...more >>


DevelopmentNow Blog