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 2005 > threads for tuesday july 19

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

exposing methods and props in c# dll via COM
Posted by Homer Simpson at 7/19/2005 10:39:41 PM
How can I expose my methods and props stored in a C# dll via COM so a language like VBA can use them? Thanks, Scott ...more >>


How do I put special characters in enum?
Posted by Vern at 7/19/2005 9:42:01 PM
I wanted to create an enum with the following: SSN, EIN, N/A But it doesn't like the /. How can I put / or ? characters into the list. Also is it possible to have blanks as a valid enum? or Null?...more >>

detect mobile phone and send SMS by it
Posted by Sara at 7/19/2005 8:32:31 PM
HI, I want to code a program to detect GSM mobile (any kind) which connected through serial port to computer and then be able to send SMS through this mobile phone to other mobile phones, could anyone help me and guide me, I wrote a program which could open COM port but still couldn't detect mo...more >>

Default image location
Posted by Saya at 7/19/2005 8:20:50 PM
Hello, The IIS default location for images, usually is 'Inetpub/wwwroot/images'; currently I'm using: 'picWeb.Image=GetImage(IMG_URL+filename)', where IMG_URL="http://ipadress/images", to reach my images in my web service application. Is there a command available to get the images from a d...more >>

Full-Screen Forms question.
Posted by Naveen Mukkelli at 7/19/2005 7:02:02 PM
Hi, How can we run the app on full-screen. I mean all the controls such as, text boxes, data grids on the form would also be resized or re-located automatically when we press maximize button on the top right corner of the form. Currently, when I maximize the form.. controls...more >>

REDIM ARRAY
Posted by Jose Fernandez at 7/19/2005 6:20:51 PM
Hello friends. I have a new problem. I have Ball class which one of its member is an array. The problem is that I don't know how many elements it's gonna have at the end of the application. ..NET doesn't allow me to create it without elements. for example public class Ball { int[...more >>

Problems with HTTP_REFERER
Posted by Paperback Writer at 7/19/2005 5:45:31 PM
Hi, I have the following code in my ASPX: private string pagina =3D = System.IO.Path.GetFileName(System.Web.HttpContext.Current.Request.ServerV= ariables["HTTP_REFERER"].ToUpper()); The problem is it: When i call this page direcly i get an error: Object reference not set to an instance of...more >>

Specify number get color
Posted by Jim McGivney - Office at 7/19/2005 5:10:02 PM
Is there a way to specify a number (0-141) to obtain one of the system colors ? Pen pen = new Pen(ColorNum); where ColorNum is a method to specify a color by its enumeration value. Thanks, Jim ...more >>



Convert xml string to ADO recordset
Posted by BC at 7/19/2005 4:59:28 PM
Hi all, I'm looking for some c# examples how to convert xml string to ado recordset. Im currently working on a project in asp.net (c#) that requires to call a COM object (business object) which takes a recordset as one of the arguments. Thanks, Benny *** Sent via Developersdex http...more >>

Source-code debugging not working
Posted by David Veeneman at 7/19/2005 4:42:10 PM
I'm working on a program with two assemblies that I have written in VS.Net-- a DLL and a Windows Form app that drives it. When the CLR hits an unhandled error in the DLL, it does not show me the error in the source code, as it normally does. Instead, I get a dialog box that says an unhandled ...more >>

Deriving a new Ping class from System.Net.NetworkInformation.Ping
Posted by Eric Wenger at 7/19/2005 4:22:47 PM
I'm pretty new to C# and I'm trying to do what I believe should be a simple thing. I want to modify a program that is using the System.Net.NetworkInformation.Ping class to have some custom behavior. For example I would like to do a "TCP-ping" where I try to connect to a TCP port on a remote mac...more >>

Problem Accessing HTMLElementCollection
Posted by Tom Bean at 7/19/2005 3:36:23 PM
I developed a C# application to automate input to elements of a web page displayed in an AxWebBrowser control. The app calls GetEnumerator() on the HTMLDocument's HTMLElementCollection (i.e. HTMLDocument.all) to walk elements of the document. This works perfectly on my development system w...more >>

Adding row to OLEDB Rowset does not add row to Access db
Posted by Will Pittenger at 7/19/2005 3:29:46 PM
I have a project where the backend is Access. I have learned (slowly) to use OLEDB to access my data. However, to save changes, I need to generate a SQL statement. This seems clunky. I am used to MFC recordsets. The OleDB system will let me add the row to the rowset, but then does nothing...more >>

Dropdownlist is posting back
Posted by Prisy at 7/19/2005 2:44:02 PM
I have a dropdownlist and i have set autopostback to false and none of the javascript has a __doPostBack(). Why then when i select a value from the dropdown does it postback? -- Thanks Prisy...more >>

writing to a specific point in an array file
Posted by melanieab at 7/19/2005 2:35:03 PM
Hi, I'm trying to store all of my data into one file (there're about 140 things to keep track of). I have no problem reading a specific string from the array file, but I wasn't sure how to replace just one item. I know I can get the entire array, then save the whole thing (with a for loop a...more >>

C# Interop with Remote COM Object
Posted by Bryan Tubbs at 7/19/2005 1:59:03 PM
I'm having trouble connecting to a remote COM object using Reflection. I've got a Web Form using C# that needs to connect to a COM object on a remote server. The snippet of code that follows is what I've got (and found through all of my research as the necessary code): Type remoteType = T...more >>

Solution for running many threads
Posted by mircu at 7/19/2005 11:53:41 AM
Hello, What would be the best for implementing architecture that runs several, independent, scheduled or run by the user on demand task in the same time? Now in my program every task creates it's own thread and run in it and after it completes the thread is destroyed automatically by the fr...more >>

Trying to understand static and when to use it?
Posted by Dave at 7/19/2005 11:41:13 AM
I used the following class and .aspx code below to understand how static works on variables and methods taken from "http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vclrfstaticpg.asp". I opened up two instances of my browser to simulate two users accessing the pag...more >>

Restricting textbox input
Posted by mdb at 7/19/2005 11:32:04 AM
I'm trying to restrict the characters that are valid in a textBox, so I derived from System.Windows.Forms.TextBox, and overrode WndProc, catching the key up/down messages... Everything works except the arrow keys - the text cursor never moves. Why won't the arrows work? I know I'm catching ...more >>

Loading Resource
Posted by perspolis at 7/19/2005 11:17:58 AM
Hi all I have some resources for some languages. 1-To create diffrent resources,Do I have to use VC++ environment or Can I create them from C#? 2-How can I load different resources dynamically? thx :) ...more >>

Configuration of webservices
Posted by Søren Reinke at 7/19/2005 11:05:21 AM
Hi there What is the best way to handle configuration of a Webservice ? I use Visual Express to make the webservices. Best regards Søren Reinke ...more >>

Assembly and source - design question
Posted by Donal McWeeney at 7/19/2005 10:49:37 AM
I have a big Visual Studio class library project from which I create an assembly. This assembly for example might contain 100 public entry points (for example custom server controls) and a load of shared back-end library code that they use. I now have a need to create 2 new separate small a...more >>

Row selection and highlighting using Web Control Datagrid?
Posted by Carolyn Vo at 7/19/2005 10:03:03 AM
I have been looking and looking but can't seem to find out how to get the row selected in a web control datagrid (NOT a web form datagrid!!!), and how to highlight the selected row. I'm sure this question comes up all the time but I can't find the solution(s) anywhere. From what I understand...more >>

System.Object
Posted by Gene Vital at 7/19/2005 9:55:32 AM
Just curious what anyone else thinks.... I would like all of my class libraries to share a common set of custom properties and methods, however I don't want to have to recode all of these properties and methods in each subclass. This is a feature that MSFT obviously ackknowleges the be...more >>

Dynamically create COM objects in C#
Posted by Ray at 7/19/2005 9:04:16 AM
I want to dynamically load DLLs (created from VB) and instantiate a class with a particular name, like "ProcessClass". I am able to load the DLL and confirm there is a class by that name BUT I can't seem to create it or call methods to this newly created instance. I have the following code: ...more >>

Event handling question
Posted by hillcountry74 at 7/19/2005 8:03:32 AM
Hi, I'm a newbie and trying to understand event handling in c#. I have understood handling events using delelgate objects. But not this method- "Event handling by overriding the virtual protected method of the base class". Can someone please explain this with a sample code? Thanks a lot. ...more >>

Creating Tables
Posted by Barry at 7/19/2005 7:14:09 AM
Hi In C# is it possible to create a Table without using either Access or SQL Server Database , maybe using the class OleDb, i am intrested in sorting some data and do not need the table after if finish. If yes is there any example source code available somewhere ??? Barr...more >>

how to get a web page
Posted by Ricardo Luceac at 7/19/2005 6:45:27 AM
HI all... I'm doing the following to get a web page: HttpWebRequest wr = (HttpWebRequest)WebRequest.Create("http://www.google.com"); HttpWebResponse wresp = (HttpWebResponse)wr.GetResponse(); Stream wpage = wr.GetRequestStream(); byte[] buffer = new byte[5000]; wpage.Read(buffer,0,500...more >>

Is there is any event handler for process kill event ?
Posted by yaron at 7/19/2005 6:16:04 AM
Hi, I am looking for doing this : void OnKillProcess() { do Cleanup; } i don't want to use ~MyClass() (or Finalize), because i wan't that the cleanup code will be call from my main thread and not from any other thread. thanks. ...more >>

Assign today's date as "DefaultValue"
Posted by Chanaka_2005 at 7/19/2005 5:38:06 AM
How do I assign today's date as "DefaultValue" <asp:ControlParameter ControlID="Calendar1" Name="DUEDATE" PropertyName="SelectedDate" Type="DateTime" DefaultValue="TODAYs DATE" /> ...more >>

popup and timeout problem
Posted by Dan Pavel at 7/19/2005 5:33:20 AM
Hi, I have a little problem and I can't solve it. I have a webpage and in the aspx i have this code: if (exists) Response.Write("<td align='center' bgcolor=#0033ff onclick=\"javascript:window.open('wfpopup.aspx?ID="+workflow[i]+"&DAY="+ j.ToString()+"','','width=250,height=180,left=2...more >>

How to compare Date?
Posted by Tom at 7/19/2005 5:06:03 AM
Hi, I would like to know how to compare date in C#? e.g. System.DateTime.Now > 2005-10-17 19:55:04 Thanks...more >>

single application file access
Posted by yuvalt at 7/19/2005 2:58:43 AM
Hello, I would like to know if there is any option to allow a certain application to access a file, and prevent any other operation on this file by other applications, especially deletion. Thank you! ...more >>

Reading XML using System.Xml.XmlReader
Posted by TOMERDR at 7/19/2005 2:25:29 AM
Hi, I have the following xml and i need to read all elements and insert them to a hash table hash[businessaddresscity]="" hash[email1address]="tomerdr@hotmail.com" it seems that the reader is skeeping the password element string x="<?xml version='1.0'?>" + "<Document>" + "<busine...more >>

A Combo box doesn't fire event
Posted by sea# at 7/19/2005 2:04:52 AM
I'm trying to use a combo box on a windows form which will change its display on event of changing combo selection. This is the method I wrote: Wrote this code: private void SurveyChooserCombo_SelectedIndexChanged(object sender, EventArgs e) { if (SurveyChooserCombo.Text.Equals("Surv...more >>

How to get/set a session token
Posted by CodeRazor at 7/19/2005 1:42:08 AM
Hi, How can you retrieve a session token? or is a session token something that you set yourself? How can you check for the existance of a session token? Is a session token the same thing as a session key? Many thanks, CR...more >>

ODE for .NET?
Posted by red at 7/19/2005 12:08:06 AM
Hi, I was wondering if somebody knows if there is something similar (or maybe even a port) of ODE (ode.org) for .NET (C#)? -- _red ____ _ ____ ____ __ _...more >>

Best Practices - C#.NET Web Application Development
Posted by Andrew Hayes at 7/19/2005 12:00:00 AM
Hi All, I've been asked to develop an online ASP version of our HR product in 3 months, and only with part-time support from a database developer in the US. The original product is written in VB6, contains over 50,000 lines of code, and took 3 years to reach it's current incarnation. Ano...more >>

How can I force a class to override the ToString() method?
Posted by AWHK at 7/19/2005 12:00:00 AM
How can I force anyone who subclasses my class to override the ToString() method? Andreas :-) ...more >>

card reader for pocket pc
Posted by a NO[at]SPAM b.com at 7/19/2005 12:00:00 AM
anyone got any examples of smart card reading for the pocket pc?...more >>

A function with a Bitmap
Posted by RicercatoreSbadato at 7/19/2005 12:00:00 AM
What's happen exactly when I pass a Bitmap to a function in this way: text_localization(EMP1); public Bitmap text_localization( Bitmap EMP1 ) {} ?? It's the same thing to do this? text_localization(ref EMP1); public Bitmap text_localization( ref Bitmap EMP1 ) {} -- RicercatoreSbad...more >>

How to Create a DBF to C#
Posted by GuoJieFeng at 7/19/2005 12:00:00 AM
How to make a DataGrid save to DBF file. ...more >>

From JScript to C# (COM)
Posted by Petar Popara at 7/19/2005 12:00:00 AM
I'm looking for C# examples when calling COM objects. JScript example: var myApp = new ActiveXObject("MyApp.1"); var res = myApp.callMethod1(); I have tried to use Google with keywords "C# COM" but it finds "COM" in every "somewebsite.com" string. :( ...more >>

How to fill listview in a different class and file?
Posted by Ole Baba at 7/19/2005 12:00:00 AM
In Form1.cs I have defined the "InstituteAdministrator" class which contains ListView "listViewAddress". In a second file (FormTreeView.cs) I have the class FormTreeView with the method "dataTreeView1_AfterSelect". When the user selects a node in the treeview, then listViewAddress should b...more >>

Getting the PhysicalDrive for the LogicalDisk!
Posted by Matthias Pfeffer at 7/19/2005 12:00:00 AM
Hello! I'm working with some USB Events (arrive and remove) using the ManagementBaseObject! It works fine, but i need the relation between the physical drive (\.\\PHYSICALDRIVE0) and the logical drive ("C:"). Is there any possibility to get the physical drive from logical disk c: or d:? ...more >>

IIS image location
Posted by me NO[at]SPAM somewhere.com at 7/19/2005 12:00:00 AM
Hello, Is it possible to retrieve images which are not located at the default IIS location of 'Inetpub/wwwroot/images'? Another folder or other logical drive for example (redirect command?). If so, how does the command looks like? Thanks in advance, Saya...more >>

Problem when generating Client Side Script.
Posted by John Owens at 7/19/2005 12:00:00 AM
I use in Render( HtmlTextWriter output) : //-------------------------------------------------------------------------- output.WriteBeginTag( "a" ); if( ID != null ) output.WriteAttribute( "id", ClientID ); output.WriteAttribute( "href", "javascript:" + Page.GetPostBackEventReferenc...more >>

Datagrid Colum Header Aligment in C#
Posted by huseyin korkmaz at 7/19/2005 12:00:00 AM
Ýs it possible to align only headers of datagrid to center not all column ? huseyin ...more >>

keyword searching in a file..Filestream
Posted by Maheshkumar.R at 7/19/2005 12:00:00 AM
Hi all, I'm new bie to windows application..i want to search a key word inside a = file..let say, if a file contains text "this is sample program...". If = i search "sample" inside a file, it should give the exact matching. ------my code=20 FileStream fs =3D new FileStream("C:\\a.txt", FileM...more >>

Serializing soap object to a database
Posted by Søren Reinke at 7/19/2005 12:00:00 AM
Hi there For logging reasons I need to be able to store Soap object in a Database. The reason is not to replay the data, but to be able to locate where an error has occured, if one occurs. -- Best regards Søren Reinke www.Xray-Mag.com/ - Your free diving magazin on the net. Download ...more >>


DevelopmentNow Blog