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# > september 2003 > threads for thursday september 4

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

Remoting Static members
Posted by Nicky at 9/4/2003 11:49:23 PM
Hello, Maybe a stupid question. In my component on the servermachine I have some objects that are static. They are serveractivated. At compiletime of the clientsource, he gives me an error that I can not access static objects?? Is this normal when you use remoting. When I use t...more >>


Refelection - Dynamic programming
Posted by Nicky at 9/4/2003 11:43:57 PM
Hello, I have to explain my problem with an example : public class DecisionTables { public ObjectName ObjectName; // ObjectName defined in other .cs public DecisionTables() { functX(); } public functX() { // Here I read from a datab...more >>

Launch excel from web page
Posted by Alvin Bruney at 9/4/2003 10:24:11 PM
anybody know how to launch desktop excel from a webpage and feed it either a dataset or a file? i've got MS sample code but it aint compiling with the office 10 library. i wonder if they changed the libraries cuz i used object browser and the interface they are calling doesn't exist in the class....more >>

private struct
Posted by Mark at 9/4/2003 10:14:54 PM
I have a .cs file that contains a public class and a public struct in a single namespace. I decided I wanted the struct to only be accessible to the class, and not to the rest of my project. I changed the public struct to a private struct, but it gave me the following error ... why? What are ...more >>

Circular reference and Garbage collection
Posted by Guogang at 9/4/2003 8:23:02 PM
Hi, I have a tree structure in C# with pointer to children and parent. This will form a circular reference. My question: will this kind of circular reference affect garbage collection (parent has references to children, and children have references to parent. such that none of them can be GC)?...more >>

Pass Class as parameter in a method.
Posted by Dion Heskett at 9/4/2003 8:16:39 PM
How can I pass a Class as a parameter to in a method ? i.e. Private myMethod( string pram1, Classobject as pram2) { Classobject.DataSource = reader; Classobject.DataBind(); } I wish to pass either a System.Web.UI.WebControls.DataGrid or System.Web.UI.WebControls.Repeater class object...more >>

Passing a string br reference from c# to c++
Posted by Steven Blair at 9/4/2003 6:41:35 PM
Hi, I am having problem passing a string by reference to some C++ code. Wondered if anyone could help me out. C# code: myFunc(str); C++ code: myFunc(String &str) { str.Copy("Test"); } This doesnt work tho :( Steven www.stevenblair.com ...more >>

Extand and access the internat Microsoft Office object structure
Posted by gicio NO[at]SPAM web.de at 9/4/2003 6:23:37 PM
Hi! How to extand and access the internat Office object structure. Is there any Dev Kit for Microsoft Partners that in not available to "normal" users? Something like NOKIA back entrence!? gicio ...more >>



Const Object Reference in C# function
Posted by Shreyas Ranade at 9/4/2003 5:52:51 PM
I want to pass an Object Reference to a C# function, but also I want to make sure that the calling function should not change it's value. The C++ Code Like MyClass cls; Fun1(cls) void Fun1(const MyClass & cls) { int a = cls.m_No; } I want to write same code in C#. How should I write...more >>

.NET COntrol on Outlook Form
Posted by Michael Tissington at 9/4/2003 4:43:34 PM
How do I create a .NET control that I can use on an Outlook Form? Thanks. -- Michael Tissington Oaklodge Technologies http://www.oaklodge.com/technology ...more >>

Constructors calling one another ...
Posted by Mark at 9/4/2003 4:28:15 PM
A class can have more than one constructor, but can't one constructor call another? It appears that the code below bombs and the error message claims .... "denotes a 'class' which is not valid in the given context". Thanks in advance! - Mark public class cWhatever { public cWhatever(S...more >>

second instance
Posted by Shawn at 9/4/2003 3:46:39 PM
how do i prevent the second instance of my app from being instanced when one is already running? ...more >>

How to sort a collection?
Posted by Prasanna at 9/4/2003 3:28:59 PM
Hi, I have a collection object (SPFileCollection in Sharepint v2 API) that does not have a sort method of its own. Does anyone know of any class that would take in the collection and sort it on a paricular attribute? ...more >>

Compile error!
Posted by Mattias Thuresson at 9/4/2003 3:24:12 PM
Everytime I compile my project I'll get a compile error saying: C:\vss\DPC2\Banverket\Data\DPC2\DPCII Client\DPCApplication.cs(2): The type or namespace name 'ClientCore' does not exist in the class or namespace 'Banverket.Data.DPCII' (are you missing an assembly reference?) Now you all think ...more >>

methods and properties of the same name
Posted by Wiktor Zychla at 9/4/2003 3:24:09 PM
Why it is not allowed to have a methods and the properties with the same name in a class? For example I would like to be able to have using System; class C { int A( int p ) { return p*2; } int A { get { return 5; } } public static void Main() {} } One could argue that I can...more >>

using C# DLL in VB6
Posted by Sutapa at 9/4/2003 3:05:48 PM
Hi, I am creating a DLL in c# and then trying to use it in VB6 and its failing. Steps i did are : 1. code using System.Collections; using System.ComponentModel; using System.Drawing; using System.Data; using System.Windows.Forms; namespace MyCalculator { public interface Calc ...more >>

Save WinForm
Posted by Zviki Goldberg at 9/4/2003 2:40:36 PM
Hi... I am using InkPicture and I would like to save the control (the signature- image) to gif or other image. It will be OK if I could save the WinForm . Is it possible ? Thanks Zviki. ...more >>

Profs for C#?
Posted by Joseph Kormann at 9/4/2003 2:32:06 PM
In Unix, there's a utility called 'profs' which analyses running code to see which functions and methods are called frequently and how long they're called. Is there such a utility available for C# code? Thanks, Joseph ...more >>

Unit testing
Posted by Pete at 9/4/2003 2:01:56 PM
Hi folks, I've been looking at unit testing frameworks (csUnit, NUnit, etc) and have gathered some info on them (see the older thread on c# 2004). My question is this: how do they work with windows forms? All the samples I've seen are for trivial testing, such as making sure a property sets...more >>

exception when cast the reflection created object.
Posted by maoyi7551 NO[at]SPAM yahoo.com at 9/4/2003 1:54:51 PM
hi, I get the problem here, I have exception thrown when I try to cast the reflection created object. first there is BaseObject dll that implemation a interface, factory dll use the reflection load the dll, create the object and return. BaseObject reference the factory dll. factory.dll publ...more >>

help - merge datefield & timefield to datetime field in sql2000
Posted by Frank Rocco at 9/4/2003 1:19:20 PM
Hello, We have a database that as two datetime fields. field1 has the date and field2 has the time. I need to merge field1 & field2 into field1. Can someone help me with this syntax? P.S. I did not design the database.<g> Thanks for the help Frank ...more >>

SendKeys Question..
Posted by Wayne Gibson at 9/4/2003 12:51:36 PM
Hi, Was wondering if somebody could help.. I'm trying to use Sendkeys on a Windows forms. I have entered the following command to simulate a CTRL+ALT+1.. System.WindowsForms.SendKeys.Send("^%1"); This didn't work, so I then tried.. System.WindowsForms.SendKeys.Send("^%1"); This di...more >>

ProgressBar in a ListView
Posted by mariteremtz NO[at]SPAM yahoo.com at 9/4/2003 12:30:41 PM
I have read other topics about inserting a ProgressBar into a ListView. Actually I'm trying to do that but my windows form has several tab pages and the progress bar works inside one of them. How do I define the progressbar parent if I have to do it?? Or how do I specify on which tab page it s...more >>

IEnumerable for look up a collection.
Posted by Iulian Ionescu at 9/4/2003 12:09:51 PM
I have seen the following block of code used by many people to loop through the items in a collection: IEnumerator e; IDisposable disposable1; Object obj1; e = SomeCollection.GetEnumerator(); try { while (e.MoveNext()) { obj1 = e.Current; } } finally { disposable1 = (e as IDi...more >>

draw a form dynamicly
Posted by Jonas Knaus at 9/4/2003 11:35:17 AM
hi there i have a windowsForm with different buttons ad things, on a event i would like to redraw the hole form with different buttons. does anyone has an idea how i could start ??? thanks a lot for your help jonas ...more >>

How to wait for a completed query
Posted by Andrew Mueller at 9/4/2003 11:31:53 AM
Hello, I have the following code: DataSet myDataSet = new DataSet(); OleDbDataAdapter adapter = new OleDbDataAdapter(sb.ToString(),myConn); adapter.MissingSchemaAction = MissingSchemaAction.AddWithKey; int count = adapter.Fill(myDataSet,"ihrawdata"); foreach (...more >>

Running Console App weekly
Posted by Tim Almond at 9/4/2003 10:39:15 AM
I have a console app which generates a report. I'd like the app to run weekly, but I'd also like it to be controlled so that if there's a bug, it gets reported somehow. Anyone done this and have any tips? Was thinking of calling the .exe from DTS. Tim Almond ...more >>

Text to XML
Posted by Mattias Thuresson at 9/4/2003 10:32:55 AM
I want to convert a text based protocol into XML, using C#, how do I do that in the best maner ? Can I use XSLT in any way ? or do I have to make an parser that converts the file manually ? An example of the text file: BORN ANTAL AXLAR = 220 VARMGÅNG TJUVBROMS TEST EFTER TÅG !! F...more >>

Help - need date and time picker/validation
Posted by Frank Rocco at 9/4/2003 10:20:49 AM
Hello, Are there any free or inexpensive date and time picker controls that validate? I need to be able to have the control to just display a date or just display a time for editing. Thanks Frank ...more >>

how can i see the modifications in a form fields
Posted by thomaz at 9/4/2003 10:01:56 AM
Hi... I would like to know if there is a method that show me the modification that i made in a form. For example: I have a field called ESTADO that show me "BAHIA" in a form and i made a modification in this field "RIO DE JANEIRO", after i made an update in a Data Base and finally clean ...more >>

Out of topic, sorry
Posted by Sunny at 9/4/2003 9:54:20 AM
Hi, I know that it's out of the topic, but .. may you recommend me another newsreader, other than OE6. I think it's not working very well with threads. Today and yesterday I have posted a questions here, and even I received an answers (Re: my question), my original post is not displayed. And some...more >>

USB WM_DEVICECHANGE - How create WndProc inside a component?
Posted by Ed Sutton at 9/4/2003 9:52:40 AM
How can a WndProc be created inside a component? Currently I have a WndProc in my frmMain. It looks for WM_DEVICECHANGE messages for connection and removal events for a USB/Serial device. My frmMain uses a component to communicate with a USB/Serial device. I would prefer that this component...more >>

public private property
Posted by Sunny at 9/4/2003 9:39:16 AM
Hi, I want to have a property, for which I want only the get part to be public, but set to be private? is it possible, or I have to make only get public, and make a private method to set the value of the underlying variable? I need to capture setting the variable in order to fire event, but I do...more >>

Play sound for a custom dialog box
Posted by Dennis C. Drumm at 9/4/2003 9:28:11 AM
I have a windows form configured as a fixed dialog I'm using as a custom MessageBox (has some additional buttons). How do I get it to play the standard windows sounds when envoked and can I insert the standard MessageBox icons into this dialog? Thanks, Dennis ...more >>

Please help !
Posted by Gary at 9/4/2003 9:27:44 AM
Hi, I am working with drag and drop functionality. I am draging a button and dropping in a text box. I am able to drop only button text value. 1) Can i drop button itself? 2) If i work with a single form in a project having [STAThread] it work fine but in my project my start page is login - an...more >>

How to get the name of the currently executing class and Project
Posted by News VS.NET ( MS ILM ) at 9/4/2003 9:24:56 AM
Please see subject ( use reflection but how ? ) ...more >>

calling C# functions from excel
Posted by Mark Schaffer at 9/4/2003 9:15:26 AM
Basically, I have two questions: 1. How do you create an .xll file using C# and Visual Studio .NET? 2. How do you make functions callable/visible from Excel (2000 or XP)? I am very new to this type of programming, so I apologize if this is very elementary or obvious. Most of my previous...more >>

LDAP String
Posted by Michael Tkachev at 9/4/2003 9:15:23 AM
Hello All I would like to get all users from domain controller of windowsNT server 4.0 named "ruera03". This domain controller does not have an active directory. I cannot make the connectionstring (LDAP). I'm looking for solution. What can I do? The tracert era returns ruera04.ru.henkelgrou...more >>

Creating Event like in win32 events
Posted by R A at 9/4/2003 8:50:20 AM
Hi How do I create Event handle same as using the win32 CreateEvent? I need the ..net app (c#) to wait for event (such as win 32 waitforsingleobject api). Thanks, Ron ...more >>

What good is Explicit Interface Implementation?
Posted by Steve W. at 9/4/2003 8:34:32 AM
I just read the section (and did the exercise) in the C# Step by Step book that covers Explict Interface Implementation (where you specify in the method implementation the specific interface that you are implementing in the class. Other than to resolve the problem that arises when a class...more >>

Programming for Palmtop
Posted by rahulkansara NO[at]SPAM hotmail.com at 9/4/2003 7:54:01 AM
hi friends I have got above a year of experience in dotnet. i am a bit interested in making programs for palmtops. but dont know how to proceed for it. i mean i dont knoe the concept of how to gor for programming a palmtop. can anybody help me in this?...more >>

Repost: Q: How to identify originator of window.close()
Posted by brewman at 9/4/2003 7:45:31 AM
I asked this question last week, but received no reply so I'll try one more time. It may be that there is no good answer. If you have an application which overrides the onClosing event handler how can the app determine whether the event was caused by the user selecting the close control ('X')...more >>

Rapid creation and Abortion of threads
Posted by Jagadish at 9/4/2003 5:39:09 AM
Hi, My application requires to create a few threads on the occurance of an event E1 and the same threads need to be aborted on the occurance of another event E2. Iam not using .Net thread pool threads. Iam using system threads by using Thread objects and delegates. Threads are aborted by ...more >>

Error while processing records
Posted by Ramesh at 9/4/2003 2:52:59 AM
hi I am trying to insert 50,000 random records in the SQL server. I have created COM for inserting records. When i started inserting, after 44152 records it displayed following error message. " Distributed transaction completed. Either enlist this session in a new transactions or the ...more >>

Mimic Session object (of ASP.NET) in Winform app
Posted by maverick NO[at]SPAM office.naver.co.id at 9/4/2003 1:43:16 AM
Hello all... I need to have global data available within the lifetime of my Winform app, accessible from any objects this application might spring at runtime. In ASP.NET, I can just create this holder object, put this object in (System.Web.SessionState.HttpSessionState)Session object, and w...more >>

The PullData and PushData methods
Posted by BVO at 9/4/2003 1:37:58 AM
I'd very much like to control my data binding by using the PullData and PushData methods on the BindingManagerBase object. The idea is to not update the bound data source until I perform PullData. Can anybody tell me whether this is possible and how to do it? BVO...more >>

loading Dropdown with extra Item
Posted by Jacques van der zwan at 9/4/2003 12:33:22 AM
Hi, currently I load a combo with a field in a table,how can I add an extra item(hardcoded) in the combo with the current items. Thanxs *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>


DevelopmentNow Blog