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 2003 > threads for friday november 14

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

very simple & strange error
Posted by Dave at 11/14/2003 10:54:35 PM
I build a very simple program that I put at the end of this post. This program is just supposed to put a button on the screen and exit the program when I press the escape button. But pressing the escape button doesn't do anything if I put the code for the button into the program! infact, pressin...more >>


unhandled exception class System.NullReferenceException
Posted by Merlynx at 11/14/2003 9:41:03 PM
i am getting that error with the Event() method. Don't know whether if i have used the CreateEvent function well as it is the 1st time i used it moreover i am net to C#. If anyone can point me out the error it would be great. TIA public class Class { public struct SECURITY_ATTR...more >>

dynamically loading assembly from gac of a remote machine
Posted by Vivek at 11/14/2003 7:58:21 PM
HI Everyone, I am trying to dynamically load a custom deployed assembly from the GAC of a remote machine so that i could call its method from my code using reflection. Can anyone tell me how do i do this? Any help would be appreciated. Thanks Vivek ...more >>

Dynamically load FlashShockWave Object
Posted by Ron Vecchi at 11/14/2003 7:00:59 PM
I am using the FlashShockWave COM object. in the form design mode I specified the Flash Movie .SWF local path. and it loads correctly. My problem is that if I make changes to the swf file it never is changed in the EXE. It seem to be embedded. I have to remove the object and then add a new...more >>

How to detect mouseclick anywhere
Posted by Kubik at 11/14/2003 5:40:47 PM
Hello! How to detect mouseclick anywhere on the form? There is a lot of controls on the form, so I don't want to add eventhandler for each of them. How can I do it in another way? Adam -- **remove REM from the mail address** ...more >>

Converting date to local specific information
Posted by Muscha at 11/14/2003 4:51:20 PM
Hi, How do I convert a DateTime structure into the same format with the current setting on Windows? thanks, /m ...more >>

Splitting a string into an array using a STRING value
Posted by Jason at 11/14/2003 4:39:09 PM
Hi all basically its what i said in the subject. Would just like to know how to split a string using a STRING value as the delimeter and not a CHAR as the delimeter. Example: "I like Cheese", how would i get the following array: strArray[0] = "I"; strArray[1] = "Cheese", using "like" as the de...more >>

Help: object reference is required for the nonstatic field
Posted by TdJ at 11/14/2003 4:34:30 PM
No end of reading on the net and I can not get this to compile! The error message is: An object reference is required for the nonstatic field, method, or property 'BusinessAreaDataSet.BusinessAreaTableDataTable.FindByBusinessAreaID(int)' Could someone explain to me what I am missing ... I w...more >>



<include> with relative file path does not work
Posted by Alex VanderWoude at 11/14/2003 4:27:58 PM
I am trying to <include> some text into an XML documentation topic, but that text is stored in a file that is in a different directory than the "current" XML file. Using a relative path does not appear to work, because the base being used is the Common7\IDE directory, not my original source ...more >>

Dot net assembly versioning
Posted by Coder at 11/14/2003 4:27:22 PM
I notice that MS says the version numbers have the following format: <major version>.<minor version>.<build number>.<revision> If you give a assembly version as "1.0.*", the two latest numbers should increment. However, the latest number (rightmost/revision) is the fastest moving, which inc...more >>

Newbie question (calculations)
Posted by Ivan Demkovitch at 11/14/2003 4:05:22 PM
Hi! I'm working on porting some fairly complex code from VB to C#. There is some calculations involved. Also, many numeric constants involved. Like: a = 1/b I'm not sure if I need to write it like: a = ((double)1/b) in C#? Also, there is a lot of code where integers computed togethe...more >>

Genrics questions
Posted by Chun Wang at 11/14/2003 3:51:15 PM
1. When writing genric classes or methods, can I use specifc type (instead of generic type) as type parameter? For example: pulic class MyStack<T, int> { ..... } Here maybe I want to establish a upper limit of the stack. 2. Does the implemention support specialization? (I mean s...more >>

Organizing metadata
Posted by belangour abdessamad at 11/14/2003 3:02:12 PM
Hi, In the metadata for an exe file for example, there is classes organized in namespaces. the GetExportedTypes methods returns all types. I need to get the names of namspaces and to organize these classes in their corresponding namespaces. Any help would be appreciated. Thanks. ...more >>

decrypting from memory stream
Posted by JW at 11/14/2003 2:56:26 PM
I can encrypt the contents of a memory stream with no problems, however when decrypting( I'm using the same key an IV ) I get an exception stating bad data. I'm at a lost. I'm actually creating a new memory stream, filling it with the encrypted bytes then trying to read from the crypto stre...more >>

Visual Studio bug / limitation
Posted by Bill Burris at 11/14/2003 2:45:00 PM
When compiling my solution which contains 15 projects (2 Window Apps, 2 Services, 11 class libraries, C#, MC++, & C++), I was receiving warnings about symbols defined in multiple places. Selecting Rebuild Solution did not make the problem go away. After selecting Clean Solution, followed by Re...more >>

dploying windows service using install script
Posted by raghavendra at 11/14/2003 2:12:15 PM
Hi, How to run automatically windows service by using setup deployment insatllation script using visual studio 2003.? What i did is :-- 1. created a windows service & tested the same. 2. then i used the windowsservice.exe in setu...more >>

C# help ...
Posted by Paul Rodrigues at 11/14/2003 2:07:16 PM
I=B4m new to programing C# and i have a doubt. Does C# form=20 apps need .net framework installed on host computer to run=20 ?...more >>

Newbie class question
Posted by Lou at 11/14/2003 2:00:57 PM
I come from VB so.. I created a class named Channel, to create an instance of that class, On a form button click i add the following code: private void button1_Click(object sender, System.EventArgs e) { Channel myChannel=New Channel(); } but I get a build error there, says ";expe...more >>

Dotted lines
Posted by Durand at 11/14/2003 1:58:06 PM
Somebody can help to draw dotted giagonal lines? Thanks Durand ...more >>

ArrayList Question
Posted by george r smith at 11/14/2003 1:23:11 PM
I am trying to create an arrayList that contains multiple arrayLists. My code attempt is below. The question I have is how can I get away from creating another pAttribute list than can be added to pItem. As I understand it (and I coded it to test) if I try to use pAttribute again by clearing w...more >>

How to wake up a sleeping thread?
Posted by Muscha at 11/14/2003 1:22:39 PM
Hello, I have a thread that in the middle of the execution I did Thread.Sleep(). How do I tell this thread to abort it sleep and continues? Is there a way? thanks, /m ...more >>

expressions
Posted by Dan H. at 11/14/2003 12:43:23 PM
Hello, I have a need to take user inputted text such as: 13.5*(1./((1./5)-1.))**(1./4.17) and evaluate to a number. What key words would I google on? Or are they some decent object oriented books that you know of that cover this? Online tutorials or sample source? Thanks in advanced, ...more >>

change the default UITypeEditor
Posted by margoulin at 11/14/2003 12:25:18 PM
Hi, I have a custom color selector control and a derived UITypeEditor allowing me tu use my color picker in a property grid. But I have to specifically call this editor for each property, like [CategoryAttribute("General"), EditorAttribute(typeof(kColorEd), typeof(UITypeEditor)), TypeConve...more >>

Simple question on DataTable and DataGrid
Posted by Doug at 11/14/2003 12:12:10 PM
Hi, I'm trying to load data from SQL Server into a DataGrid. I planned on using a DataTable to store the data, but I can't get the logic correct. Can someone please tell me what I'm doing wrong? Thanks. try { DatabaseConnection dc = new DatabaseConnection(); //this handles all the A...more >>

Disposed exception at runtime but not in VS.NET
Posted by Scott at 11/14/2003 10:54:29 AM
I'm getting a ObjectDisposedException from my Winform EXE, but not when I run the identical test case in the VS.NET debugger Our application is a run-of-the-mill two pane (like outlook) app that dynamically creates the right-side user control based on what node you click on the left-side treeview ...more >>

What is equivelant to VB.NET GetType()
Posted by Daniel Billingsley at 11/14/2003 10:36:23 AM
Using this keyword in VB I can do Dim typeData As Type = GetType(myClass) which returns a Type of course. I can't find quite the same thing in C# or the framework. Will the following meet the needs like the above VB code? (If so, then why the keyword in VB???) Type typeData = Type.Ge...more >>

Private webservice?
Posted by Hugh at 11/14/2003 10:33:37 AM
Hello everyone, I'm reasonably new to webservices, and have been playing around with creating one in VS .NET, and then writing another app, and adding a web reference to it to communicate with my web service. What I was wondering, is if someone got the URL to this web service, are they free to...more >>

Possible to attach an HWND to a Form??
Posted by WayneD at 11/14/2003 10:18:35 AM
Hi All, I'm writing a class that implements a COM interface. Unfortunately, one of the methods passes in an HWND and I'm supposed to create a control with that HWND as the parent. The idea is to plop my control onto the client's dialog. Is this possible in C#??? There are 2 issues I'm concerned ...more >>

UDPClient and my mental situaton.. Please Help
Posted by Serdar C. at 11/14/2003 9:28:57 AM
im trying to write a really simple program that communicates with udp packets between server and client apps... but i cant receive (or send?) any data from any of the applications.. what am i doin wrong? here are the send and receive lines from my program: Server: ofcourse this void is in ...more >>

Fresh Install Issue
Posted by Chris Jackson at 11/14/2003 9:16:18 AM
I just installed 1.1 SDK and after reboot I created a new file (hello.cs) in c root. then in a command prompt I types: csc hello.cs and i get 'csc' is not recognized as an internal or external command, operable program or batch file. the installation went fine - how can i compile a...more >>

object question
Posted by PCH at 11/14/2003 8:37:02 AM
posted on wrong ng :-) Hello all, I want to setup a program that will have several similar classes that with have identitcal properties. Im my main procedure I want to only declare 1 basic object that can be used for any of the classes. such as: object oObj; oObj = new Class1(); ...more >>

MSDN Architect or Developer
Posted by george r smith at 11/14/2003 8:35:53 AM
What are the main advantages to a developer in purchasing Visual Studio .NET Enterprise Architect over Visual Studio .NET Developer. I know of the web sites - just would like some developer opinions. thanks. grs ...more >>

is C# suitable...
Posted by pvp at 11/14/2003 7:49:38 AM
.... for implementing another, new, computer language that needs to have a concurrent runtime. IOW, I am creating a new language that needs runtime that supports multi- tasking. The language will need to schedule existing applications such as MS Office. Thanks. ...more >>

Performance Counters
Posted by Jerry Negrelli at 11/14/2003 7:42:23 AM
What is happening behind the scenes when I call System.Diagnostics.PerformanceCounter on a remote machine? Is it connecting via RPC? What security context is it run under? Any explanation or links would be much appreciated! JER...more >>

Accessing File and Folders on Network
Posted by Rosa_Shelton NO[at]SPAM hotmail.com at 11/14/2003 7:12:05 AM
Hi, I'm experiencing a bit of a problem with security and file access from within a ASP.Net application... Locally (from an XP client) I manage to get any file or folder on my machine with something similar to this: DirectoryInfo di = new DirectoryInfo(strURL); if(di.Exists) { FileInfo[] ...more >>

same type in 2 different assemblies - issues?
Posted by n_o_s_p_a__m NO[at]SPAM mail.com at 11/14/2003 7:05:54 AM
Ok, I have source code shared between 2 projects using links in VSS, so we are compiling the same type information (classes, interfaces, enums) into more than one assembly. This was done only by special request of our client. I am wondering if this is ok to do: In AssemblyA: class1's method...more >>

TripleDESCryptoServiceProvider bad data error
Posted by james_crane NO[at]SPAM btinternet.com at 11/14/2003 6:16:43 AM
Hi all, I have seem few messages posted regaring this but as yet have been able to get this code to work. The plan was to encrypt some string then pass the result to another function that woudl decrypt it - please see below. Anyway i keep getting a 'bad data' exception. I'm totally at a loss,...more >>

Calling a COM Object with a VARIANT* param from C# just shows ref object varParam
Posted by david.adams NO[at]SPAM group4technology.com at 11/14/2003 5:55:16 AM
I wish to call a COM Object which has a parameter of type VARIANT* on a method call from C# The COM Method :- STDMETHODIMP CClassType::GetTypeIDs(VARIANT * TypeIDs) { AFX_MANAGE_STATE(AfxGetStaticModuleState()) if (DeviceTypeIDs->vt != (VT_I2|VT_ARRAY)) return E_INVALIDARG ; VARIANT*...more >>

datagrid in c#
Posted by r.bihain NO[at]SPAM belgacom.net at 11/14/2003 5:48:01 AM
when using datagrid in c#: a blank field is replace vy the (null) value. How is it possible to avoid this?...more >>

help Newbie. How do I reference a forms control from another class
Posted by robweston NO[at]SPAM o2.co.uk at 11/14/2003 5:31:57 AM
I am a newbie to the wonders of C# programmming and I would be grateful if someone could help me! I would like to create a class that will change the properties of a label or text control (such as back color) during a mouse over event. I would like the class to be generic so that it may be used ...more >>

Thread safe Static methods how
Posted by Claes R at 11/14/2003 5:05:01 AM
Hi ! I would like this class method to be thread safe. public static ArrayList List(DateTime date) { ArrayList l = new ArrayList(); l.Add(new ListItemInfo( 1, "S1010")); ...... return l; } How do i accomplish this in a scalable way ? lock works on a object, not class (or ??)...more >>

Question on Using Partial Types with ASP.NET via J.I.T.
Posted by nospam at 11/14/2003 3:56:28 AM
I got three (3) files (1) Untitled.aspx (2) Untitled.aspx.1.cs (3) Untitled.aspx.2.cs These three files must be used together to make file #1, Untitled.aspx, page work via J.I.T. when the User first hits Internet Explorer 6.0 on your browser. MY QUESTION to the Microsoft ASP.NET and C...more >>

problem with hexa
Posted by nvivo NO[at]SPAM mandic.com.br at 11/14/2003 3:54:47 AM
Ok, let me explain this first. I did a search about 'hexadecimal' first and found a lot of threads about it, but none of them tell me what i want to know. I am new to C#, and want to work with binary data (actually some custom file formats). I used to do this a lot in PHP, but i can't underst...more >>

Outlook Express and this forum??
Posted by Serdar C. at 11/14/2003 3:47:28 AM
can anyone tell me how can i cnonect to these forums from outlook express? that will help a lot! have a nice day.....more >>

using namespaces in C# (newbie)
Posted by Svein Erik Storkaas at 11/14/2003 1:48:30 AM
I'm having problem using namespaces in C#... It's like it is being ignored no matter what i use..does'nt seem to work. Can anyone give a small sample code just how to use it? thanx ...more >>

Can resource of system be disposed when a thread is aborted?
Posted by fjlpf at 11/14/2003 1:45:20 AM
I create a new thread, and in it, create a socket. Now I want to terminate the thread in main thread, but can the socket be disposed automaticly? If it can't, how can I manage this situation? Thanks in advance!...more >>

C#/asp.net paging
Posted by Ron Fowler at 11/14/2003 1:39:09 AM
Folks, I'm a newbie to web programming and c#, so please excuse if I seem to ask silly questions! I'm trying to figure out how to program a test on a web site so that the users can't use the 'back' button. I need to do it all client-side, without anything stored on the server. Is t...more >>


DevelopmentNow Blog