Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score Simple program causes InvalidProgramException
kosak - 19 Aug 2006 9:52 PM - 6 messages
Hello.  When I run the program below, I get the exception System.InvalidProgramException: Common Language Runtime detected an invalid program.  (Visual Studio 2005 version 8.0.50727.51) I can work around it (by having the delegate point to a helper function).  ...
Score Could i access ConnectionStringSettingsCollection ( Web.Config ) in Class Library?
Serdge Kooleman - 19 Aug 2006 8:26 PM - 2 messages
Could i access Web.Config in Class Library? Next line work fine in web project that consist Web.config: strConnString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["CONN"].ConnectionString; but when i call it from class library it give an error: The type 'System.Configuration.ConnectionStringSettingsCollection' is ...
Score Catch a mouse click on any app in the taskbar
jay.maiurano - 19 Aug 2006 8:04 PM - 3 messages
I'd like to get the handle of any application that is clicked in the taskbar.  Any thoughts?  Thanks! ...
Score ArrayList as Enumerator in JScript
Jayme Pechan - 19 Aug 2006 7:36 PM - 3 messages
I migrated a formerly C++ COM component to C# and I have been able to duplicate all the old behavior except for one. I have an enumeration property that returns a list of com objects.  Using the ArrayList to hold the com objects ought to work.  If I add strings to ...
Score Updating progress bar on Form1 FROM Form2
Svein Erik - 19 Aug 2006 5:52 PM - 3 messages
C# 2.0 How can i update my progress bar on Form1, from Form2? Form 2 contains a button that is supposed to update the progressbar on Form1 by 5 in value. I can't find out how to do this, please help me with some code samples :) ...
Score Class array
Ant - 19 Aug 2006 4:34 PM - 7 messages
Hi, something I imagine would be simple but... How can you create a class array? e.g. MyClass[] mc = new MyClass[2]();  ????????? This obviously doesn't work, but how is it done? Thanks for any advice in advance. Ant ...
Score getter/setter with no body
kronrn - 19 Aug 2006 4:29 PM - 6 messages
Hi Folks Can anyone confirm that the code public string Name { get; set; } is used to define an abstract property accessor? would I also need to use the abstract keyword eg public abstract string Name { get; set; } Many Thanks Kron ...
Score ObjectDataSource and Guid
Arjen - 19 Aug 2006 4:25 PM - 2 messages
Hi, I need to add a Guid parameter to my objectdatasource. But how??? First I get a string with the guid value. Sounds like I have to transfor the string to guid. Second I have to add the guid to the objectdatasource. ...
Score Performance hit in foreach?
David Veeneman - 19 Aug 2006 4:20 PM - 8 messages
This is a very simple question, but for moe reason I can't find an answer. Do I take a performance hit if a foreach statement has to evaluate an expression? For example, consider the following: foreach (DataColumn column in view.Row.Table.Columns) ...
Score Hide a componet?
David Veeneman - 19 Aug 2006 3:41 PM - 5 messages
Is it possible to hide a component that is used as a base class for other components? I have two components that perform the same job. Their only difference is that one works with objects, and the other works with data rows. So, I ...
Score How to read ".txt" resource files
John Layton - 19 Aug 2006 2:54 PM - 2 messages
Hi there, Does anyone know if there's a built-in way to read a ".txt" based resources file (one that's converted to a ".resources" file by "resgen.exe" at build time). I need to read/write the ".txt" file directly. Thanks.in advance. ...
Score Get visible portion of ListView?
Sin Jeong-hun - 19 Aug 2006 2:11 PM - 3 messages
Is it possible to get current visible rect when there is a scrollbar on the ListBox? Say, if the ListBox is in Details mode, and there are 1000 lines. The user has scrolled down to 500th line and currently 500~540th lines are ...
Score WMI support!
Lee - 19 Aug 2006 1:18 PM - 5 messages
Hi, Does a list of supported hardware for WMI exist? (CPU, motherboards, disk drives ect). thanks in advance lee ...
Score what is "new ClassName[ ... ]" (?)
bill tie - 19 Aug 2006 1:02 PM - 5 messages
I'm trying to re-construct missing classes in somebody else's code. Salient points: Dictionary<string, Project> projects = new Dictionary<string, Project>(); .... WeeklyAggregation aggregation = new WeeklyAggregation(); .... aggregation.Project = new Project[projects.Count]; <--------  What is this? ...
Score Disadvantages of using calling methods asynchronously using C#
GVN - 19 Aug 2006 12:02 PM - 12 messages
Hi All,     Can anyone guide me when asynchronous method calls will be benificial? Are there any disadvantages of using asynchronous calls? Thanks, GVN ...
Score Retrieving the COM class factory for component with CLSID {C0E10006-0004-1300-0001-C0E1C0E1C0E1} fai
Harish - 19 Aug 2006 11:03 AM - 4 messages
I am buiding an application in ASP.Net 2.0 with C#. After installing corel wordperfect i am adding the reference into the application. Afetr adding reference interop.wordperfect.dll is added to the Bin folder. After creating the object of Wordperfect.Perfectscript i am opening the ...
Score Allow the user to add his C# code class at runtime
Ghada Al-Mashaqbeh via DotNetMonster.com - 19 Aug 2006 9:45 AM - 3 messages
Hi all, I am working in a simulator (C# window application) for networks. I want to allow the user to add his own code (e.x. routing protocol) written in C#. How can I give my simulator to provide such capability? (In a way similar to ...
Score is it possible to send event object as a parameter
Tony Johansson - 19 Aug 2006 9:44 AM - 2 messages
Hello! Class CharChecker has a field that is called TestChar that is of type event CharEventHandler. I know that if I change in method foo so I have tester.TestChar +=new CharEventHandler(Testing); it work so you don't have to mention that. ...
Score GetAccessControl for Active Directory Objects?
KarlM - 19 Aug 2006 9:12 AM - 11 messages
Hallo! System.Security.AccessControl.FileSecurity (GetAccessControl) works fine. Now I would like to use GetAccessControl for Active Directory Objects like computers. I've searched a lot but I've found no solution. Can anyone help me with an example or with a link to solve my problem? ...
Score Check VAT ID Number C# ?
Louna - 19 Aug 2006 8:51 AM - 6 messages
Hello, I need to check VAT ID Number (from IE company) to check it's valid or not in C#, how can I do this ? Some source is available ? Thank you in advanced. Regards, Louna ...
Score How to search for some process ?
ad - 19 Aug 2006 8:51 AM - 2 messages
I wnat to detect IIS status. Someone tell we could do that by searching  for inetinfo.exe process But How can I search  for inetinfo.exe process  with C#? ...
Score How to start the Default WebSite of my IIS
ad - 19 Aug 2006 8:16 AM - 6 messages
HI, How can I start the default web site of my IIS with C#. ...
Score Drag/drop for tree view?
Brett Romero - 19 Aug 2006 4:40 AM - 2 messages
Is there an object similar to the treeview (or way to extend tree view) that will allow drag/drop functionality to reorder child nodes?  For example: Parent1 -c1 -c2 -c3 Drag c3 above c1: Parent1 -c3 -c1 -c2 Thanks, ...
Score Error at System.Runtime.Remoting.Proxies
SenthilVel - 19 Aug 2006 4:06 AM - 2 messages
Hi All i am getting an error in remoting proxies like the below : Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) ...
Score How can I start IIS in program
ad - 19 Aug 2006 12:22 AM - 6 messages
Hi, How can I detect  if the IIS started or not? If the IIS is stop, How can I start it  start IIS with C#? ...
Score HELP : URGENT : How to get the list of printers on the web server?
gnusmsa - 18 Aug 2006 10:49 PM - 2 messages
ASP.NET 2.0 (C#) application Using Windows authentication and impersonation Windows Server 2003 (IIS6) Server is a member server on a domain Logged into server as a domain user that is in the local Administrators group on the server ...
Score Proper way to check that a numerical range "is valid"
illegal.prime - 18 Aug 2006 10:31 PM - 2 messages
Hey all, I have an app, that could take two numbers of any type of numerical type int, long, double, float, uint, ulong, etc.  I want to check that the numbers are part of a range that I consider "valid". ...
Score Problems using FileStream in a seperate AppDomain
Dan Dorey - 18 Aug 2006 9:49 PM - 2 messages
Hey, I've created a very simple test app to try and fix a problem I'm having. Basically I'm trying to log to a text file from a class in a seperate app domain that I've created. When I first create the ...
Score Checking OS Version from C# WinForm App
randy1200 - 18 Aug 2006 9:47 PM - 3 messages
This seems like it ought to be easy, but I couldn't find anything for C#. I already knew about _MSC_VER >= 1400, but I'm not doing C++ much anymore. I need to verify XP SP2 or better installed. ...
Score snk file & rss.net
kronrn - 18 Aug 2006 9:32 PM - 4 messages
Hi Folks thanks for taking the time to read this post. I'm using the RSS.Net class library which can be found at [link] It works fine but when I come to build a release version I'm informed ...
Score DataSet.XmlReader hangs when & is in string within XML file
SteveT - 18 Aug 2006 9:13 PM - 5 messages
I am trying to create a dataset from an XML file.  When calling myDataSet.ReadXml("sample.xml") the code produces an exception error.  The XML file has many strings that identify pnp ids on a system.  These string ...
Score Issue with DataGridView on initial data load
Rick Shaw - 18 Aug 2006 8:22 PM - 3 messages
Hi, I have a problem with the datagridview not refreshed when the application first appear on the screen. The datagridview display data from a table in the dataset.  At the same time, I've added checkbox columns that are not bounded the table. ...
Score Custom Surrogate
Joe - 18 Aug 2006 7:56 PM - 10 messages
I need to copy a class which derives from CollectionBase but I don't want to include the items in the collection. I only want to copy the fields/properties. I was thinking of creating a Surrogate for this but I'm not too sure how ...
Score about variable
Jie - 18 Aug 2006 7:35 PM - 5 messages
Hi ,everyOne: i has a question, please help me. string strBB = "Hello World!"; string strAA = "strBB" how can i just know about strAA's value, to  get the strbb's Value???? like the controls can use  findControls("objName")! ...
Score Accessing Clipboard in console Application
The.Relinator - 18 Aug 2006 7:21 PM - 10 messages
I need to retrieve a string from the clipboard in a console application, I have tried many methods but all seem to return a null value, any help regarding this issue would be greatly appreciated ...
Score Changing ListView Column Header Graphic
djohnson - 18 Aug 2006 7:19 PM - 4 messages
My listview will sort but I would like the column headers to contain up or down arrows to indicate the sort direction.  I have an image on the column header, but I'm having a heck of a time figuring out how to ...
Score Displaying html stored in DB
Rik Brooks - 18 Aug 2006 7:17 PM - 6 messages
I am writing a web application using C#. I've come to the point that I need to display some html text that is stored in a database. Is there a server side control that I can use to show the html? In other words, read the data, ...
Score How do I update a datatable
Tim Kelley - 18 Aug 2006 7:13 PM - 2 messages
I need to loop through a datatable and update a particular field.  This seems like it should be fairly easy but it is giving me fits.  Here is the code that I have so far. foreach (DataRow row in dataTable.Rows) ...
Score web user control with ascx
Steph - 18 Aug 2006 7:07 PM - 2 messages
Hello has all,  I am in .NET 2 and Visual Studio 2005 and I seek deseperement how to create a webusercontrol in the form of DLL (to insert it in the pallet tools of VS).  Well on it is not a question of simple a ...
Score Inheritance problems with constructor
Julius Fuchs - 18 Aug 2006 6:01 PM - 4 messages
Hi, if I create a Person, a Vehicle is created; that's fine. The problem is that if I create a Child the constuctor of Person is called before and a Vehicle is created then a Bike is created and the variable is ...
Score Global variable question.
cr113 - 18 Aug 2006 5:44 PM - 4 messages
I'm switching over from VB and I have a question. Suppose I had a VB project with 2 forms and one variable. Call them Form1,Form2 and strUsername. Suppose I want to initialize strUsername to "jones" and use this value in Form1 and Form2 at any time. ...
Score Add Event that is viewable..
Brett Wickard - 18 Aug 2006 5:34 PM - 3 messages
How do I add an event to an object (in this case a form) that is viewable in the GUI of VS2005? i.e.  if I add the following to a form: public delegate void TestDelegate(int Test); public static event TestDelegate TestEvent; ...
Score Global Assembly Cache - Installation
Mythran - 18 Aug 2006 5:01 PM - 2 messages
We don't use the Microsoft Windows Installer 2.0 for our setup packages. Instead, we use InnoSetup which is much easier to use and learn and more flexible (that I have found).  The only part that is making me frustrated is ...
Score How do you catch an error from a data bound entry screen
gmccallum - 18 Aug 2006 4:28 PM - 3 messages
I have a data entry screen using controls bound through a bindingSource, TableAdaptor and a BindingNavigator to move through the records. When I have an data entry error (such as Null for a value) I get the following error raised all the way to the App.Run command. ...
Score Main form - Sub form problem
Vladimir O¾ura - 18 Aug 2006 4:15 PM - 2 messages
I am building a Pocket PC application in C#. I have 5 forms (1 main and 4 sub forms). The main form must always load first. The sub forms are loaded from the main form. The application is run using Application.Run(new ...
Score how to use an image located in a subdirectory
keith - 18 Aug 2006 3:53 PM - 3 messages
I created a subdirectory in a project and added an image to the subdirectory from the project and set its property Build Action=Embedded Resource. Then instanciate a image by Image img=new Bitmap(GetType(),"HLP.BMP"); I got runtime error and it said ...
Score How Do I: Add a Form from a control library
graeme g - 18 Aug 2006 3:45 PM - 5 messages
hi i have a control library which contains a couple of custom forms. how do i add these forms to another project? i have made a reference to the control library in the project... do i have to create the form manually? ...
Score FTP Drive Space
pa.singer - 18 Aug 2006 3:20 PM - 3 messages
I am developing a windows service with Visual Studio 2005 that automates the FTP of files to a remote server. I am wondering if anyone knows of a way I can programatically retrieve the available drive space on the remote server prior to the FTP transfer? I know that I can use ...
Score Listbox selected items
Mitch - 18 Aug 2006 3:03 PM - 4 messages
Is the following a correct representation of the relationship of the selected index to selected item:      INDEX     ITEM          0        "item 1" ...
Score How Do I Change Grid HeaderText Fontsize?
Steven C - 18 Aug 2006 2:42 PM - 2 messages
Hello. I have a datagrid with a datagridtablestyle and several datagridtextboxcolumns.  I have overridden the Paint method on the datagridtextboxcolumns via a class called "customdatagridtextboxcolumn," but can't figure out how to set a custom font size for the column headers on the displayed windows form  grid. ...
Score Memory not reclaimed on modeless forms
PGP - 18 Aug 2006 2:37 PM - 6 messages
Sorry i asked the same question yesterday but did a bad job on describing the issue so here is a better description. This is in .NET Compact Framework. I have a form which creates modeless forms using code like Form frm = new Form1() ; ...
Score How to tie ASP.NET 2.0 membership cookie to specific domain other
dba123 - 18 Aug 2006 1:38 PM - 2 messages
How do I tie the cookie that's produced from the login control of the ASP.NET 2.0 Membership API to use a specific domain programmically?   I dont' know how to even talk to the cookie cause I don't know it's name...how do I even ...
Score event handling and delegete
tony - 18 Aug 2006 1:33 PM - 4 messages
Hello! My problem is that I have several methods that is quite similar. Each one works as they should. You see two of them just below. I have removed several statements that is not relevant for my question. My idea is to have only one method and pass argument for things that differ ...
Score Reference datatable row without for loop
Tim Kelley - 18 Aug 2006 1:29 PM - 7 messages
If I have a datatable with 1 record only, can I reference the data in the row without a for loop?  I can get to the data by using the following code, but it would be nice if I didn't have to use the For loop. ...
Score Datagridview: Copy row to array
Silvester - 18 Aug 2006 1:23 PM - 4 messages
My datagridview has columns with text AND integers. Please can someone help me with the code necessary to copy an entire selected row of mixed content cells to an array ? Thanks very much ...
Score Debug problem: "The breakpoint will not currently be hit. The specified module has not been loaded"
Ole - 18 Aug 2006 1:13 PM - 11 messages
Hi, Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't debug my C# program from VS2005 - when setting a breakpoint I only see a ring instead of the normal red dot and when holding the mouse over it I see a ...
Score creating an activeX component at runtime
Wilfried Mestdagh - 18 Aug 2006 12:59 PM - 5 messages
Hi, I have a C# application (VS2005) with Microsoft Mappoint activeX control on a form. At a certain moment I want to create a second one temporary in code. This seems not to work, when I try to access it I have an InvalidActiveXState ...
Score Calling another constructor from constructor
dodger_web - 18 Aug 2006 12:35 PM - 3 messages
Hi, Is there a way to call a constructor from a constructor ? let's say i have this class : public class Dot { private int x; private int y; public Dot() { } public Dot(int xcoord) { x= xcoord; } } Is there a way that i can add this kind of constructor : ...
Score Free Reports
SlawekG - 18 Aug 2006 12:19 PM - 10 messages
Hi! Does anyone knows about some free reporting system (something like FreeReport for Delphi) ? I know that there's Crystal Reports, but i can't afford commercial version of VS yet. I would like to use it for displaying data ( in some configurable way ...
Score Read
Weman - 18 Aug 2006 12:19 PM - 4 messages
Lady only 24-Hrs +91 9810577227 Send email to i***@lenstar.org get access code. ...
Score Is the reading/writing to the registry slow?
UJ - 18 Aug 2006 12:19 PM - 6 messages
I have a system that has five programs that all communicate with each other via Message Queues. Works well. One program is a watchdog that will make sure the others are up and going. Currently I have it store info it gets ...
Score C# Simple Form inside another Form
TCM - 18 Aug 2006 12:03 PM - 3 messages
Hello. I'm developing a windows form application in C#. I have an options button in the main form. When this button is clicked I want a new window to popup with options. While the options window is visible, I don't want the user to be able to interact with the main ...
Score A question about accessing a database using ado.net
tony - 18 Aug 2006 11:32 AM - 4 messages
Hello! This method below works but how can it work when I don't have any open on myOleDbConnection ? As I have understood this is that there must exist an myOleDbConnection ..Open(); in my case but it works just as good with one as without one. ...
Score Urgent - How to access all radiobuttonlists in a loop (c# asp.net)
Svein Erik - 18 Aug 2006 10:48 AM - 7 messages
C# asp.net 2.0. I'm creating an online survey. I'm making a string array that's holding the variables of the answers made in the radiobuttonlists that i create manually. I need to make a method that loops through all the radiobuttonlists and puts ...
Score NUnit Test cases execution
Anbu - 18 Aug 2006 7:39 AM - 4 messages
Hi All, I have 5 test cases (b, c, a, d & e) , NUnit picks up the in alphabatical order. I want to execute the test case e first before the exection of other function. Is there any way to execute the NUnit test cases in a particular ...
Score Test for empty Dataset field
AAJ - 18 Aug 2006 7:11 AM - 4 messages
Hi all A quick question on Datasets..... I populate a dataset from a SQL SERVER 2000 database via a data adapter. I then use the dataset to populate member variables of my class. I know the datatype of a column in the database, so I use convert. to ...
Score Beginner question re data structure
gc - 18 Aug 2006 6:31 AM - 4 messages
Hello all, I'm working on a console app that takes as input a list of domain names then pings them.  The data I want to work with is: long rtt (ping round trip time in ms) IPAddress ip ...
Score C# form close problem
Jason Huang - 18 Aug 2006 5:28 AM - 5 messages
Hi, In my C# windows form project, how do I in a formA open another formB, and close formA when formB is opened? Thanks for help. Jason ...
Score C# Client PC office version
Jason Huang - 18 Aug 2006 3:55 AM - 2 messages
Hi, In my C# windows project, how do I know which version of MS Office that a client's PC's using? Thanks for help. Jason ...
Score About partial class
Lau Lei Cheong - 18 Aug 2006 3:48 AM - 4 messages
A few quick questions: Is there a limitation on how much partial class files we can have for a single class? And can a ASP.NET page file inherit a class from multiple code-behind files? if so, do I need to point out all the codefiles in the ...
Score TreeNode.ShowCheckBox
Alan T - 18 Aug 2006 1:47 AM - 12 messages
I am using VS 2005 and just wonder why I don't have this method? ...
Score TreeNode checkbox
Alan T - 18 Aug 2006 12:24 AM - 2 messages
I have set the checkbox property of a treeview to true so every treenode has checkbox. How do I set certain nodes checkbox off? Just display an icon instead of a checkbox? My situation is I have folders and item to be displayed in treeview. ...
Score Regex help
Stephen Brown - 17 Aug 2006 11:13 PM - 3 messages
I have a simple regex need and I've already wasted too much time on it spinning in circles.  Can a regex god help a stranded soul?  I just need to replace all non-escaped ampersands in a file.  It needs to skip escaped ...
Score C# database access
MarkusR - 17 Aug 2006 11:03 PM - 6 messages
(VS2005/C#/MSSQL) I am looking for a very efficient way to do a database lookup. I am reading 1 to many files in a given directory. I then look up the information based on the filename into a SQL Server database. There ...
Score Slow For-Loop (Picture Data Access)
hufaunder - 17 Aug 2006 10:54 PM - 21 messages
I have 16-bit data that I want to display. In order to display it I compress a certain range of the input data into 8 bit (I need control over this). All seems to work ok except that it is dead slow both in ...
Score Does anyone know if BerConverter class runs on Win 2000 server?
Pucca - 17 Aug 2006 10:14 PM - 16 messages
I'm getting an error when I tried to use this BerConverter class in my C# code.  Even though the Interent doc says that it runs on Win2000 sp4, I just thgouth I'll double check.  Does anyone know if BerConverter is supported for ...
Score New to C# - DB question
hedbonker - 17 Aug 2006 10:09 PM - 12 messages
I am used to using old school ADO where I might create things like: objConn.Open( sConnectString); objRecordSet.Open ("Select * from users where UID=' + sUserID + "'", objConn); Then I have a recordset collection that I can filter on or step through ...
Score How Do I Propagate Exception Back to Host Thread?
Marc - 17 Aug 2006 9:58 PM - 2 messages
I'm building a service application that monitors a directory using a FileSystemWatcher that captures "create" events.  In my "create" event handler, I do all my custom processing of the new file and then I just need to delete the file at the end.  Unfortunately, the file has a "write" lock on ...
Score Populating an in-memory table is really slow (VS2005,c#)
MarkusR - 17 Aug 2006 9:10 PM - 3 messages
Good day, I am using c# from VS2005. I am loading a datatable with the filenames and such from a given directory using the following code: arrFileList = GetAllFiles("c:\\sample", true); dtJobs.BeginLoadData(); try {   foreach (string sFile in arrFileList) ...
Score connectionstring application scooped???security??
David - 17 Aug 2006 8:46 PM - 2 messages
Why is the connection string application, it really help if she was user scooped, is because of security??? ...
Score Constructor in Interface
Cristiano de Pádua Milagres Oliveira - 17 Aug 2006 8:46 PM - 6 messages
Constructor in a Interface is possible? If yes, what's the C# syntax? ...
Score SerialPort
John - 17 Aug 2006 8:16 PM - 5 messages
I am using C# 2005 and System.IO.Ports. private void SendData() { SerialPort  m_Com; m_Com = new SerialPort("COM1", 9600, Parity.None, 8, StopBits.Two); m_Com.NewLine = "\r"; m_Com.Open(); m_Com.WriteLine("VER"); m_Com.ReadLine(); } The problem I have now is that the ReadLine just hang there forever. The ...
Score Generics passing Class type
SteveT - 17 Aug 2006 8:16 PM - 4 messages
I'm currently creating a custom column in a DataGridView.  I'm wondering if Generics can be used to solve an issue I'm seeing. When creating the editing control for the column cell I have the code: class MyEditingControl : MyTextBox, IDataGridViewEditingControl ...
Score C#, SQL - multiple rows handling
Chris - 17 Aug 2006 8:05 PM - 2 messages
I use System.Data.SqlClient.SqlCommand object. I need to fetch data from database by using SELECT command. the problem is that after calling such statement in SQL I will get many rows. how to do in my application to get ...
Score Enum Property with Interface
Cristiano_de_Pádua_Milagres_Oliveira - 17 Aug 2006 7:11 PM - 3 messages
What do I to declare the header of a Property in an Interface, and should this property return a generic Enum? Example: public interface IMetric {     Enum Unit { get;} } public class ClassTest : IMetric {     public enum EnumTest ...
Score Dictionary By Reference
NullQwerty - 17 Aug 2006 5:33 PM - 5 messages
Hi folks, I have a Dictionary which contains a string key and an object value.  I want the object value to point to a property in my class and I want it to be by reference, so that later on I can change the value of the ...
Score Using C# dll as COM in an MFC application
Janiv Ratson - 17 Aug 2006 5:17 PM - 4 messages
Hello, I have written a C# dll in VS2005. One interface and class are exported using Interop Services. I want to use this c# dll in my MFC application, using VS2003. It compiles after I imported the dll to my MFC app. ...
Score Representing a ulong as An Array of Bytes
AK_TIREDOFSPAM - 17 Aug 2006 4:12 PM - 13 messages
I need to store a uint in an array of bytes. Doing it old fashioned style works: byte[] b=new byte[8]; ulong ul = 1; for(int j=0; j<8; j++) { --- obviously I could (and did) optimize the code inside the loop ...
Score ClickOnce install for ALL users?
Ronald S. Cook - 17 Aug 2006 3:47 PM - 2 messages
I want to configure ClickOnce to install my app for "All users on this PC" vs "Just Me".  I.e. I want it to be the default. Anyone?  Bueller? Thanks, Ron ...
Score Event Handler 00026986945
Crumpet - 17 Aug 2006 3:43 PM - 6 messages
** [If you saw this post earlier as a reply, please excuse this second post as my original post was named the same as another thread and got subsumed into as a reply rather than getting posted as OP] ** I have a menu with a number of items that I want to handle their being ...
Score Event Handler
Crumpet - 17 Aug 2006 3:36 PM - 3 messages
I have a menu with a number of items that I want to handle their being clicked on with just one handling method. What I want is for the even handler method to recognize which menu item got clicked. What is considered the best way to do that? ...
Score Two programs accessing an XML file as a dataset.
UJ - 17 Aug 2006 3:29 PM - 3 messages
I have two programs that run at the same time. One creates an XML file of a dataset, the other reads the file. They don't appear to be doing it at the same time. Every once in a while, the XML file appears to get corrupt and ...
Score What level does a user need to be to write to event log?
Ronald S. Cook - 17 Aug 2006 3:28 PM - 5 messages
I have a .NET Win app that writes to the event log.  I'm finding that certain user's laptops errors when trying.  I'm thinking its because they're not admin on their PC (or maybe at least "power" use). ...
Score String Filter for non-Standard Characters
randy1200 - 17 Aug 2006 3:24 PM - 5 messages
Using Visual Studio 2005. I'm using XmlReader to read data into a string variable in C#. Works great! Every once in a while, I see that the string data contains a symbol that looks like a square. Any suggestions on how to filter out characters that don't appear on a ...
Score C# equivelant of vb6 app.name
Tim Kelley - 17 Aug 2006 3:15 PM - 2 messages
Is there an equivelant to the vb6 app.name in c#? Thanks ...
Score Auto mail from SQL
Umar - 17 Aug 2006 2:48 PM - 2 messages
hi every one. i want to mail my site members through sql store procedure when anyone of them meet a specific condition.. i want to know how i can implement the condition using "job" in sql server and how i can mail them from ...
Score deleting cache
Michael - 17 Aug 2006 2:35 PM - 4 messages
Hi, is there a way for me to delete an image file that gets loaded into the cache? I want to prevent people from saving it. I already have the browser problem fixed. My site is written using C#, but I have not found a way to ...
Score Slow Downloading
rony_16 - 17 Aug 2006 2:31 PM - 6 messages
Hi, I have a problem downloading a file . after i connect to the website and get the stream , i treing to write the file on the HD.   public void SaveStreamToFile(string filePath, Stream stream)         { ...
Score Default namespace confusion
shumaker - 17 Aug 2006 2:29 PM - 3 messages
I'm confused about the default namespace setting in the project properties.  Help has the following: "Default namespace Specifies the base namespace for all files in the project. For example, if you set the root namespace to Project1 and you have a Class1 outside ...
Score Getting a private variable through Reflection?
David Veeneman - 17 Aug 2006 2:16 PM - 12 messages
I need to get a parent's private variable from within a control. Here's what I'm doing: I have a control that I want to be able to detect the presence of a particular (System.ComponentModel) component on the same form. Components ...
hi
Next »