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 friday january 16

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

Program Causes Compiler to Crash
Posted by Mark Rockman at 1/16/2004 11:11:10 PM
------ Build started: Project: USDAver2, Configuration: Debug .NET ------ Preparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error (0xc0000005 at address 535F072A): likely culprit is 'BIND'. An internal error has occurred in the comp...more >>


command line compilation
Posted by kendf at 1/16/2004 11:02:02 PM
Appreciated if someone could tell me how to compile the MS Exception Management Application Block downloaded from MS Official site? ...more >>

Recommended SQL Table Size
Posted by Jacob at 1/16/2004 10:17:15 PM
I'm writing a web application that will collect as many as 200 entries per day(~20 fields per entry). The data fields will always be the same and so, if the sky's the limit, I could just keep adding these same entries to one enormous SQL table-- collecting 200 entries per day, 7000 per month, ~8...more >>

VB IIF in C#
Posted by Bobbo at 1/16/2004 9:16:10 PM
Hi All Learning C# - what is the equivalent in C# for the following statement al.CompanyID = IIf(IsDBNull(d("CompanyID")), "", d("CompanyID") I don't see anything in C# that provides for this one line type of syntax. Seems I have to use a If-else block for each in C# True or am I missing ...more >>

How can I open a PDF file
Posted by Menü at 1/16/2004 7:58:02 PM
Hello All How can I open a PDF file. (shellexecute?) Thanks Mengü...more >>

Calling C# Methods in a Dll file from a unmanaged C++ Program
Posted by Grant Stanley at 1/16/2004 6:53:36 PM
Im writting a program in unmanaged C++, and want to access a MS SQL Database. I've done quite a lot of database access stuff in C# before so I'm wanting to use C# for the database access in the program. I want to write a C# DLL file where I can call methods from the C++ program so that it can ...more >>

Rational Rose
Posted by Hector Martinez at 1/16/2004 6:36:20 PM
Any one have (or know when can I get) and addins to get C# code from Rational Rose, or where can I get another app that work like Rational but with C Thanks in advantag ...more >>

Looking For Some Advice
Posted by Jim Heavey at 1/16/2004 5:59:21 PM
I have two data tables which have a parent child relationship. All of the attibutes in the parent table are in the child table. The child table has a few more attributes. The child table, for the purpose of discussion, let's say this table had the following attributes. Competition...more >>



Global Assembly Cache
Posted by DDE at 1/16/2004 5:49:07 PM
Hi everybody, I developed an assembly common to all my Web Services, so I registered it and put it in the Global Assembly Cache. Now, I modified this assembly, but cannot succed to have this new assembly used by my Web Services. Whatever I do, the old assembly is still used!! I try to unregist...more >>

AxWebBrowser HTML text box
Posted by Chris Soulsby at 1/16/2004 4:46:42 PM
I wrote a HTML browser control using AxWebBrowser, it seems to work fine. However, when I added a HTML input text box to the form I was unable to type anything into it. I also added a checkbox which works fine. Does anyone have any idea what may be causing this? One last thing, does anyone k...more >>

Why does this happen
Posted by Ian Frawley at 1/16/2004 4:28:32 PM
Hello I have written some code that I can run as an app or as a service. Its role is to monitor the Process.Responding of an executing application. When it runs as an app it gets the MainWindowHandle and also detects whether the app is responding or not. However if I run my code as a Windows S...more >>

mouse position
Posted by Robert Chan at 1/16/2004 4:05:27 PM
I have a form that is 2000x700 it is meant to be run across two monitors I want to get the mouse position relative to the form not to the screen is there any kind of way to reference the forms position on the screen, to tell where the mouse is in relation to the form and so that I can know which...more >>

Interface Problem
Posted by Stephan Rose at 1/16/2004 3:59:55 PM
Ok here is my scenario I have an interface called IScalar which describes a one dimensional number that has a certain unit of measurement. This interface is used to create multiple structures, each structure representing a certain unit of measurement. So I currently end up with 4 structur...more >>

CheckListBox
Posted by john sutor at 1/16/2004 3:56:46 PM
Does anyone know how to get the index of an item checked and then check it if it is unchecked? ...more >>

Multiple Modules in one Assembly
Posted by Dejan at 1/16/2004 3:48:11 PM
Hi, I wonder if someone can help me. I want to deploy a Assembly which contains multiple modules. I know how to handle things with the command line and managed C++...the question is ...is it possible to generate such an Assembly with multiple modules with the VisualStudio.Net IDE? I read ...more >>

DLL import in C#: function parameters conversion problem
Posted by Martin Daøílek at 1/16/2004 3:32:19 PM
Hi all, please can You help me with translation of function parameters provided by p2smon.dll library (Crystal Reports)? Any example, which I found, is only in VB (I don't like it :-) I would like use this function for runtime creating of reports ... function name: ------------------- C...more >>

How do I get "lastLogon" from ActiveDirectory
Posted by Sargas Atum at 1/16/2004 3:05:53 PM
Hi all, I am trying to get the field "lastLogon" out of ActiveDirectory. It should be trivial I thought, but it is not, as I have experienced. private DataRow FillDataRow( DataRow dataRow, PropertyValueCollection property , string columnName ) { if( columnName.Equals("Last Login"...more >>

How to pass method as Parameter
Posted by Gopal Prabhakaran at 1/16/2004 3:05:10 PM
Dear All Pls help me to pass Method as a Parameter ???? -- "Sucess Comes To Those Who Dare To Dream" Thanx Gopal Prabhakaran ...more >>

GetType() on a class w/o instantiate an object
Posted by Zeng at 1/16/2004 2:46:43 PM
Hello, I'm just wondering if we somehow we can obtain the System.Type of a class w/o instantiating an object of the class. Right now I have to do this and it doesn't seem efficient, type is a static information, why would we need to instantiate an object of the class? MyObject = new MyCla...more >>

[?] how to change identity to code inside ASPX?
Posted by LS at 1/16/2004 2:38:16 PM
I need to access some files from my aspx, but I don't want ASPNET user itself to access those files (i don't want other aspx files to read those directories) I would want to change identity just for that aspx file (I could write explicitly username and password inside the file, it's not a prob...more >>

Regarding Passing Parameters
Posted by Gopal Prabhakaran at 1/16/2004 2:32:23 PM
Dear All, I have 1 class namley classa classa has a method which need a parameter as class methods How shall i pass class method as parameter to another class method. Pls help me asap Thanx Gopal Prabhakaran ...more >>

do i need to register VB6 com dll?
Posted by Mullin Yu at 1/16/2004 2:12:54 PM
i write a c# application with reference to a VB6 com dll by using Add Reference -> COM i found an Interop.xxxx.dll has been created at the build directory. it works fine at my development machine, but when i deploy it to another machine, it reports can't find the classid. do i still need to ...more >>

WinWord.exe does not quit
Posted by Bhavya Shah at 1/16/2004 2:02:13 PM
Hello there, I am facing a strange problem. I use office converters for converting Microsoft Word documents to html in my application. I use office automation for the entire process. I open the Word file in invisible mode for conversion to html. But I face a problem after the conversion. The Wi...more >>

error receiving information from fixed IP address "The underlying connection was closed: An unexpected error occurred on a receive."
Posted by Angel at 1/16/2004 1:59:02 PM
I'm trying to connect to a fixed IP address (eg. = http://10.60.903.50/TempFile) in order to retrieve one accii line of = text in TempFile. I try to read the information with this code: string fullpath =3D " http://10.60.93.51/TempFile "; HttpWebRequest req =3D (HttpWebRequest)WebRequest.Crea...more >>

static props
Posted by boxim at 1/16/2004 1:51:46 PM
got some static props in some classes some of the props need to refer to other static members of the other classes however, cos they're not simple types, cant use const, have to use readonly how do i ensure that they're initialised in a particular order e.g. class one { public static readonly M...more >>

Machine Name on Windows 98
Posted by Terry Reardon at 1/16/2004 1:50:55 PM
Hi: I have problem getting the name of a client machine running windows 98. On Windows 2000 the client works just as it should and this function returns the machine name. On a windows 98 second edition it returns an empty string. Here is a section of code. public string GetMachineName() ...more >>

Need help here!
Posted by Calvin Lai at 1/16/2004 1:43:23 PM
Hi all, Is there any function in c# that allows my program to determine if the machine is in a network? (either in WAN, LAN, or even wireless? ) thanks. Calvin ...more >>

Adding Nodes to a TreeView
Posted by sho_nufff76 NO[at]SPAM yahoo.com at 1/16/2004 1:33:19 PM
Question here: I have been trying to find a way to add existing nested nodes to a tree that already has nodes in it: So, my tree looks like this: -com -foo -goo -blue -true then, i have a node that contains the following children: -com -foo -go...more >>

UpDating a controls
Posted by Hector Martinez at 1/16/2004 1:16:40 PM
I need to send to update a windows control from another class, how can I do that... Thanks in advantage......more >>

Does anyone how to print a pdf file in C#?
Posted by ywchan at 1/16/2004 12:59:23 PM
I have tried to print pdf by using gswin32 and call it through the process class but I can't change the paper orientation....no matter I have set dORIENT1 = true / false...it is printed as portrait.... Does anyone know how to change the paper orientation in my case? or having some other ide...more >>

Threading issues with COM in Web Service
Posted by realdman2000 NO[at]SPAM yahoo.com at 1/16/2004 12:43:01 PM
I'm writing an application that will run as a Web Service. It will communicate with some old COM DLLs. These COM objects need to be called on their own thread. In a regular Web Service I would create a pool of objects that I call so I don't have to instantiate, log in, etc, on each Web Servic...more >>

is my string a number ?
Posted by JezB at 1/16/2004 12:22:24 PM
I want to efficiently test whether an arbitrary string contains an integer value. I know I can try to execute Int32.Parse on it and capture the exception but I'd like by code to be a bit cleaner. ...more >>

Can I load an ASPX page through Linux?
Posted by at 1/16/2004 11:57:46 AM
Can I load an aspx page using a Linux machine?=20 Thanks....more >>

Urgent: how to create Nested/Inner Property in CSharp
Posted by JollyK at 1/16/2004 11:52:21 AM
Hello folks, Suppose I have a property called SortField string SortField { get { if (SortField == string.Empty) { return "123"; } return SortField; } set { SortField == value; } } Now I want to have a nested property ...more >>

I really need help
Posted by Lord Fonty at 1/16/2004 11:49:45 AM
Hi can anyone help me please? I have written some code that monitors another application using the Process Class and checking the Responding property. This works fine when my code is running as an application but when I turn it into a service, which is how I would like it to run, it always ret...more >>

converting html page to aspx page
Posted by at 1/16/2004 11:49:37 AM
I'm trying to add to my project an html page so that I can add some C# code into it. I would need to 'convert' into aspx so that I can add the code with the IDE. What would I need to do? Thanks. ...more >>

Two Dimensional Array
Posted by cql60 at 1/16/2004 11:43:16 AM
Hi all Pro, I have the class call "Person", and I do declare two dimensional array type of string inside this class which will keep "First_Name" and "Last_Name" as the record. When I try to serialize it by using XMLSerializer, I got error like this: An unhandled exception of type 'System.In...more >>

Waiting
Posted by Burns at 1/16/2004 11:36:50 AM
Hi, I'm writing some code that talks to a POP3 server with a TcpClient. I can send and receive using a NetworkStream, but when I send my message, then try to recieve, no response has returned. I'm assuming that this is because the server hasn't had the chance to respond before the recieve buffe...more >>

XML post command
Posted by e-lores at 1/16/2004 11:25:07 AM
How can I send one XML post command to an specific url? Thanks e-lores ...more >>

generating pdf with nfop
Posted by Serge ANTON at 1/16/2004 11:12:22 AM
Hi, I try to produce pdf with nfop, J'essaye de générer du pdf avec nfop, but I not found any tutorial or sample code. I have a valid fo file (I generate pdf with this file using fop and java) but I can't generate pdf with the following code : Driver driver = new Driver(new InputSourc...more >>

XmlReadWrite
Posted by discussion NO[at]SPAM discussion.microsoft.com at 1/16/2004 11:11:20 AM
Hi, Whats the best way to infile edit a value in an XML file? I want INI file update functionality on a XML file. This will come in 2.0 I was told, is this true? Until then how can I do this easily today? Thanks ...more >>

Serializer
Posted by discussion NO[at]SPAM discussion.microsoft.com at 1/16/2004 11:04:41 AM
Hi, When we get generic collections will the serializer change so we dont need to give it a type parameter for collections ? Currently today if we serialize an ArrayList, we have to give it a Type array. If the collection is of a specific type, is this still needed? Thanks. ...more >>

Basic question about ref and variables
Posted by Paul K at 1/16/2004 10:56:17 AM
I have a very basic question about ref and variables If I create a variable such a private Form1 mform and then assign mform a variable passed by reference such a Form2(ref Form1 f){mform = f; is mform assigned to a reference/pointer pointing to the object referenced by f or does the clr c...more >>

Command-line compiler can't find assembly in GAC
Posted by Frank Rizzo at 1/16/2004 10:42:44 AM
I have a batch script that is supposed to compile this script: vbc.exe /main:Form1 /target:winexe /imports:Microsoft.VisualBasic,System,System.Collections,System.Data,System.Diagnostics,System.Drawing,System.IO,System.Net,System.Text,System.Windows.Forms /r:System.dll,System.Data.dll,System.D...more >>

newbie custom controls questions
Posted by Dan at 1/16/2004 10:38:49 AM
I'm writing a C# custom control and I have a couple of question regarding its design-time behaviour: 1) how do I hide some of the control (not inherited) properties from the designer? Some of the control properties are meaningful only at run-time, or are just read-only, and I'd like them not t...more >>

class
Posted by selen at 1/16/2004 10:32:07 AM
Hello; I have little information about classes.First I ask you a book which one explain classes with details.Second Can you look the code where I am making wrong. public static void ArrayList rolSil(Rol aRol) { rolIdSil(aRol.getRolId ()); int i=0; ArrayList bagliRoller=aRol.getBa...more >>

Online Help for a C# Application
Posted by Denise L. Moss-Fritch at 1/16/2004 10:21:10 AM
Has anyone developed context sensitive help for a C# application? According to our programming staff, the development side is not able to provide links without adding hard coded links (topic names) in the user's registry. The latest e-mail we received from development states: "Launching help with...more >>

Base page error at design time
Posted by Mark at 1/16/2004 10:18:12 AM
I have .aspx code-behinds that inherit from the class below. The code runs just fine, but the form designer bombs at design time when trying to view the .aspx page in VS.NET 2003. If I comment out the single line of code below, then there is no error. I posted the error message below - it imp...more >>

References to add to use GDI+ in web form
Posted by at 1/16/2004 10:03:48 AM
Hi, I'm trying to include some code that draws an image into a web form using GDI+ but I get several errors (eg. "Type or namespace 'ClientRectangle' could not be found"). What reference(s) should I need to add for the code to compile? I believe the code was written for a win form. Thanks....more >>

Dynamic casting
Posted by Val at 1/16/2004 9:16:15 AM
Hi I am using a DynamicProxy (class that inherits from RealProxy). I don't know the type of my Transparant Proxy at compile time. Is there a possibility to have a dynamic casting object[] correctParams = new object[x] for(int i... Type t = Type.GetType(tiB.GetTypeName()) DynamicProxy proxy ...more >>

How to properly close Excel when finished?
Posted by David Berman at 1/16/2004 8:50:24 AM
Hi, I've written an application to do a while bunch of Excel automation. I open a file, scan through all the worksheets, extract data, and then I try to close Excel. However, I can see that I'm not doing it effectively. If I am debugging my app, and I kill the app before my app exits, but afte...more >>

enumerating table names
Posted by indexnode NO[at]SPAM yahoo.com at 1/16/2004 8:44:29 AM
How to enumerate table names in a database which are created by me and not systables in my C# program. I am using SQLServer2000 If i use in SqlDataAdapter i get only one table...more >>

Including references question
Posted by Christina Androne at 1/16/2004 6:42:25 AM
Hello This is a simple question : I have to build an C# app and inlcude the A.dll in references path. A.dll makes use of B.dll. Both assemblies are not distributed with VS.NET. Do I have to add B.dll in the preoject's references as well? SOrry for the newbie question, Christina Andron...more >>

System.StackOverflowException ?
Posted by Anders Both at 1/16/2004 5:55:29 AM
In a system with asynkronius socket and different collection, there are some times throw a System.StackOverflowException . I cannot really figur out why , Can someone say something clever about System.StackOverflowException ? Best Regards, ...more >>

There was an erro opening this document. The file cannot be found
Posted by Tom at 1/16/2004 5:06:32 AM
Anytime someone wants to open a document, they have to first save it to disk. They cannot simply choose "open". If a user attempts to open the document, they are met with the error message "there was an error opening the document the file cannot be found". Here is my C# ASP.NET web code. I am ru...more >>

Where is the event log ?
Posted by Anders Both at 1/16/2004 4:53:07 AM
If i write to the event log like this: EventLog.WriteEntry("myPro","Applcation_Starty",EventLogEntryType.Informatio n); Where can i then see a list of thesse event, if i go into the event log in computer management they are not there i think. Do i have to add a new log file or something? ...more >>

ANother One
Posted by ibrahim NO[at]SPAM islamabad-dot-net.no-spam.invalid at 1/16/2004 4:17:34 AM
Hi all, Can anybody help me to convert this code from VB to C#....i got this code from msdn but i want to do this in C# .... plz help if u can....thanx the code is... /***************************************/ Dim WithEvents gobjTapiWithEvents As TAPI Attribute gobjTapiWithEvents.VB_Var...more >>

Idea behind a custom text editor...
Posted by nvivo NO[at]SPAM mandic.com.br at 1/16/2004 4:14:42 AM
Hi everybody! I am planning to create a kind of text editor that you can insert objects in the middle of the text, much like you insert WordArt or vector graphics inside a MS Word document. You can drag them, align with the text and etc. When you double click those objects, you enter another ...more >>

Serialization and hashtable
Posted by Cederstrom at 1/16/2004 4:13:26 AM
Hello group! :) I want to create a config/status object, that will contain a Hashtable. This object I would like to save through Serialization, but im having some trouble. My hashtable contain some objects, from a class I created myself. I read that I need to make my own "add" method, which ...more >>

Program that stores his own checksum and verify own at the execution
Posted by cyril_vieville NO[at]SPAM hotmail.com at 1/16/2004 3:00:57 AM
Hello, as it's written in the subject, I just want to know if it's possible. My app should verify his own chechsum and if those are diff (value and own checksum) i want to display an error message. Really Thx...more >>

lock a file during execution of an app
Posted by cyril_vieville NO[at]SPAM hotmail.com at 1/16/2004 2:56:25 AM
Hello, I would like to block two files during the execution of my prog to avoid that another prog modify them (write in). Is that possible?...more >>

Convert this Code from VB to C#
Posted by ibrahim NO[at]SPAM islamabad-dot-net.no-spam.invalid at 1/16/2004 2:17:16 AM
Hi all, Can anybody help me to convert this code from VB to C#....i got this code from msdn but i want to do this in C# .... plz help if u can....thanx the code is... /***************************************/ 'pick up the collection of Address objects Dim gobjAddress As ITAddress Dim...more >>

.NET exposed COM assemblies required .NET framework?
Posted by John Bravo at 1/16/2004 1:40:22 AM
Hello, I have exposed a .NET class library and created a CCW for the dll so that it can be used in a VB6 application. Is .NET framework required on the target machine that I will be deploying this VB6 application that references the .NET dll? Thanks. *** Sent via Developersdex http:/...more >>


DevelopmentNow Blog