microsoft.public.dotnet.languages.csharp Archive - July 2003
Post a message to this list
Messages
Page: 12345678910
COM+ Controls (2 replies)
microsoft.public.dotnet.languages.csharp
Hi all, Just trying to find out some information on how and if it's possible to write COM component in C# that could be for example a visual control within a COM container, e.g. Internet Explorer.. any ideas / links would be appreciated TIA sam martin
How do i use COM object fromC#. (5 replies)
microsoft.public.dotnet.languages.csharp
I have a COM object which I would like to use in my C# application. The problem is that I need to access interfaces which are not described in TLB. I have an IDL file and .H file. 1. How do I create COM object if I know it's GUID? 2. How do I describe interface which is not in TLB (i can not use TLBIMP.exe)? Thanks. George.
ICollection.Serializable(); (2 replies)
microsoft.public.dotnet.languages.csharp
This static member can be used to totally make the instance class thread safe without having to write locks everywhere in code. Is there a way to write or is there an available wrapper I can use to have the same functionality on any class/object I create? Thank you
what's wrong in the string.replace ? (5 replies)
microsoft.public.dotnet.languages.csharp
Hi, I've write the following code : string Ch8 "SELECT TOP X 'Y' AS Date Heure, Valeur, ID var FROM dbo.Data var WHERE (Date Heure CONVERT(DATETIME, 'Y', 102)) AND "; string Debut "03/07/03 08:12:00"; Ch8.Replace("X","3"); Ch8.Replace("Y",Debut); After the two replace call, the string is still the same. Nothing Change... but no error ! I have already use many times the replace without any problems...
How do i support an COM interface in my C# class (2 replies)
microsoft.public.dotnet.languages.csharp
I need my C# class to expose the regular COM interface. (To provide the Callback mechanism for COM object). I do not need my C# object to be full COM object (which can be created using CoCreateInstance). Will the follwoing code be sufficient? [Guid("B032BD8D ED40 4F8F 97E0 3414D5BDAD76"), InterfaceType(ComInterfaceType.InterfaceIsDual)] interface IEmailHelper { .... } public class CTest : IEmailHe...
Resolution size... (2 replies)
microsoft.public.dotnet.languages.csharp
Hello everyone... Just wondering is there any method i can use in order to determine what the resolution screen size Windows is currently running?? Thanks Tony
Memory Leak? (2 replies)
microsoft.public.dotnet.languages.csharp
I am testing my application for memory optimization. I have noticed that when I opened a form and close is again, I dont gain back my memory. Doing this several times maske the memory usage go up. I started with 20MB of memory and ended with 250MB???? What can I, or does the GC cleans memory after it notices the system needs more memory? Thanks.
Design-time persistence of a custom collection (3 replies)
microsoft.public.dotnet.languages.csharp
I have a custom collection of custom objects exposed as a property off of a component. At design time I can edit things in the custom collection, but they don't get persisted in the InitializeComponent method. I'm sure there's some simple attributes I need to put somewhere, but I can't figure them out from the docs... : ( I have the following: public class GdbCommand : Component, IDbCommand, IClon...
Convert string to method pointer (2 replies)
microsoft.public.dotnet.languages.csharp
Hello. In C# if I have two methods: void DoSomeThing() {} void DoSomeThingElse() {} And I have a string containing "DoSomeThing" What is the most efficient way to create a pointer to the DoSomeThing method from the string? I am creating a delegate that needs this function pointer. Thanks. Michael R cre1@tampabay.rr.com
Handling Exceptions in released applications (2 replies)
microsoft.public.dotnet.languages.csharp
Although i used try catch codes i'm still getting exceptions on my application. When i run it under visual studio.net with debug mode it catches all errors; but when i run it stand alone, it does not! Any idea!? thanks, Fatih BOY
Fatal Execution Engine Error (0x792dc413) upon AppDomain.Unload (2 replies)
microsoft.public.dotnet.languages.csharp
I wonder whether someone else has observed the following behavior: I have three AppDomains, let's call them A1, A2, A3. A1 creates A2 and creates and instance of an class in it. The object in A2 in turn creates A3 and creates an instance of yet another class in it. Now when I try to unload the application domains, I receive a "Fatal Execution Engine Error (0x792dc413)" when calling AppDomain.Unloa...
Debug .NET Source Code (3 replies)
microsoft.public.dotnet.languages.csharp
I'm new to C# and have been a C programmer. I created a simple C# application and then went to debug it. I tried to "step into" a class library code to "see" what was happening. I was unable to. First is it possible to step into the library source? Second, the reason I wanted to do this was to see how the overloaded operator was working on the "menuitem" class for the "click" event. Here is the ex...
Icon saving problem (2 replies)
microsoft.public.dotnet.languages.csharp
I don't want to have to include Icon files with my application (I only want an executable file) however my application uses icon items to change what the system bar icons are. I tried using an ImageList to store the icons but the list won't take them. So I tried converting them to BMPs and adding them to the image list however I couldn't figure a way of converting the BMPs to Icons. Does anyone ha...
system.timer eventhandler (6 replies)
microsoft.public.dotnet.languages.csharp
I created a timer class. I called it 10 times from a main procedure. the event handler writes an entry to a log file when the timer interval has elapsed I also log the timer creation. I see the timer class created 10 times. HOwever I only see the first time eventhandler write and entry to the log file and the last timer. They both write an entry at their specified intervals. One time I had three o...
Datasets with SQL Server (3 replies)
microsoft.public.dotnet.languages.csharp
I've been fiddling about with DataSets, trying to find a way to store my data in a set of tables in memory, that I can run SQL against (including joins). Just somewhere I can put some data, and maybe serialize to a file....? In VBScript I'd create a RecordSet and use .Append() to add fields, and then I can loop through them with MoveNext/MoveFirst/etc. I want to do something similar, but also run ...
HOw i convert following IDL defenitions to C#? (2 replies)
microsoft.public.dotnet.languages.csharp
I've got an interface in IDL file interface IEmailHelper : IDispatch { [propget, id(5), helpstring("property Value")] HRESULT Value([in] BSTR bstrName, [out, retval] VARIANT *pVal); [propput, id(5), helpstring("property Value")] HRESULT Value([in] BSTR bstrName, [in] VARIANT newVal); [propputref, id(5), helpstring("property Value")] HRESULT Value([in] BSTR bstrName, [in] VARIANT newVal); [id(6), h...
Combobox ValueMember (2 replies)
microsoft.public.dotnet.languages.csharp
I have a ComboBox populated with a database table. This table has a double primary key (AccActivityID and AccNatureID) How do i set the ValueMember with the combination of the 2 primary keys. Thanks
Serious Memory leak or Seriously lazy GC (3 replies)
microsoft.public.dotnet.languages.csharp
I have an MDI form that creates child forms in the traditional form. In the menu click event y make something like: MyChildForm child new MyChildForm( params ); child.MdiParent this; child.show(); The thing is that I need to construct a new form each time the menu is accessed, since the constructor parameters may change during the course of the program and I need to make some stuff at the load eve...
DirectorySearcher & sorting (3 replies)
microsoft.public.dotnet.languages.csharp
I would like to do a search and have the results sorted by property 1 and then by property 2. My first thought had been //set up the searching object and call it oSearch oSearch.Sort.PropertyName "Property1,Proptery2"; but that was unhappy. I can do a oSearch.Sort.PropertyName "Property1"; or oSearch.Sort.PropertyName "Property2"; without issue but I can not figure out how to do what I need. I too...
Updating Database with Datarow? (2 replies)
microsoft.public.dotnet.languages.csharp
Hi, Sorry, please ignore the previous post 04.07.2003 10:19 AM i put the wrong code snippet in. The code below is what it should have been... I am trying to update a database using a Datarow type, but when i try to update i get an exception stating the 'Table has no primary key' but i does. I have reset it about five times from within access and that doesn't make any difference. here is my code, a...
Logical disk drives (2 replies)
microsoft.public.dotnet.languages.csharp
I want to find out how many writable hard disk drives there are on a machine. I tried using string[] ld Directory.GetLogicalDrives(); but this returns ALL disk drives, floppy disks and CD/DVD roms. I'm only interested in finding the writable hard disk drives. How do I determine which drives are writeable, and which are not? Fredrik T
Discuss ESC in Form (2 replies)
microsoft.public.dotnet.languages.csharp
Hello! I have set in my Form the property KeyPreview to true. On this Form, I have a some ComboBox's and some other Controls. Now, I have set the property DropDownStyle of the ComboBox's to DropDown (I can edit the value in the ComboBox). Now, the ComboBox processed the Control Keys (PageUp, PageDown, ESC, Enter ...). But I have to process this Keys on the Form before the ComboBox will process it....
DirectoryInfo question (5 replies)
microsoft.public.dotnet.languages.csharp
Wondering if anybody else has seen something similar... I building treeviews of the filesystem by checking A:, B:, C:, etc to see if it is a valid directory by creating a DirectoryInfo object with it. Then for each valid drive, I try to get all of the subdirectories by calling dirInfo.GetDirectories(). This all works fine on the first machine I used to test. However, running the same program on an...
Bug in .NET (3 replies)
microsoft.public.dotnet.languages.csharp
Hello, Has anyone seen the following bug? Bug is. double myDouble Double.NaN; bool returnValue (myDouble Double.NaN); 1. If you run the following code then returnValue will be set to 'false', if you then watch '(myDouble Double.NaN)' then the value is 'true'. I've run the following code in Framework 1.0 and 1.1. The workaround that I've found is as following bool returnValue Double.IsNan(myDouble)...
form resizing ... (7 replies)
microsoft.public.dotnet.languages.csharp
Hello, Is there a way to prevent horizontal resizing from happening? i've placed code in the resize event of the form but this causes the form to flicker when a horizontal resize takes place Regards, JB
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification