microsoft.public.dotnet.languages.csharp Archive - July 2002
Post a message to this list
Messages
Page: 123456789101112131415
catch the execution of a file.... (3 replies)
microsoft.public.dotnet.languages.csharp
Hello, from my eDelphi times I know that there was a message, that was called, when a file was executed, a directory opened or a file deleted. how can I catch this in C#? thx
GUI development wizards for C# applications (2 replies)
microsoft.public.dotnet.languages.csharp
Hi all, I'm just checking out the prospects of employing C# for our new front end. Windows Forms look pretty good, in that they have a neat architecture similiar to Java's Swing. But can you readily create a GUI framework, such as a Multiple Document Interface (MDI) application, like you can using MFC? Thanks, Peter.
Create class using name? Late bound - HELP! (6 replies)
microsoft.public.dotnet.languages.csharp
Hi, I'm writing an application, and trying to use a base class, to take the pain out of coding a nuber of like classes. The architecture is n tier, and I'm trying to get the business object to create a persistance object. I'd like to do the work in the base class, and just pass in a name of a class, it this possible?? if for example, I had a 'PersistClassName' property, is there any way to create ...
Derived class in a collection (2 replies)
microsoft.public.dotnet.languages.csharp
Hello, I have created a derived class from MenuItem. Now I add this menu item: mnuItem1 new MenuItem1(); to the collection: contextMenu1.MenuItems.Add(mnuItem1); No problem, that works fine. But once I want to loop through all added menu items in the collection I can't get the properties of the derived class through, for example, contextMenu1.MenuItems[1].newprop? Do I miss something or is it just...
unsafe pointer to array conversion? (2 replies)
microsoft.public.dotnet.languages.csharp
Hello, I have an unsafe pointer that points to a buffer containing bytes. I would like to convert this pointer to a regular .net array so that I can call MD5.ComputeHashCode on it. Is there a way to convert this unsafe buffer into a managed array? Thanks for your help, David
delete part of string (4 replies)
microsoft.public.dotnet.languages.csharp
string a my name is a.b how can i delete in a the two last word and get just; a My Name thank
SQLDMO C# Problem (3 replies)
microsoft.public.dotnet.languages.csharp
Hi everybody, I am trying to retrieve a list of sql servers using SQLDMO object Here is the code: SQLDMO.ApplicationClass oSQLApp new SQLDMO.ApplicationClass(); SQLDMO.NameList oNames; ////NameList is the Interface try{ oNames oSQLApp.ListAvailableSQLServers(); } catch(Exception e){ MessageBox.Show(e.Message ); } for(int i 0;i oNames.Count;i ) {comboBox1.Items.Add( oNames.Item(i));} I get the foll...
Some more questions (2 replies)
microsoft.public.dotnet.languages.csharp
I have two more questions: 1.. How can i convert a string, that contains a hexadecimal value in the form #ff0000, to a System.Drawing.Color object? b.. Is there a Class/Control (third party???) (in WebForms development) that gives the functionality of a color picker and/or a font picker (e.g. the end user can choose his preferred color from a color palette and/or font from a Font Palette)? Thanks ...
Reference.cs Generated with Parameters Reversed (2 replies)
microsoft.public.dotnet.languages.csharp
Hello, I'm playing around with a web service and client in the same solution. After I add my Web Reference to the client project, I get compile time errors because the Reference.cs file has the parameters to "AddNewQuote" reversed. In the attached screen dump, you can see the generated function and also on the right side of the screen the original function prototype as well as the "new" function p...
Book recommendations, please? (4 replies)
microsoft.public.dotnet.languages.csharp
I've got the whole C# language down. The problem I tend to face is knowing what classes or methods in the .NET Framwork to use. Microsoft's index and documentation on the classes are atrocious. Does anyone know a good reference book for learning all the ins and outs of these classes, preferable with code examples?
Passing info between forms? (2 replies)
microsoft.public.dotnet.languages.csharp
It seems all the examples are single form applications. I am doing a c# application and I need to pass info between forms. I tried defining a public int on one form and then referring to it from a 2nd form, but that did not seem to work. I am sure it is simple, but can someone show me how? Larry Hilley
StreamReader encoding problem (2 replies)
microsoft.public.dotnet.languages.csharp
Hi all, After I read a string from the StreamReader providing a custome encoding type, I found it is unable to convert into another encoding type anymore. MSDN library mentioned that: "compile a set of characters with a particular cultural setting and retrieve those same characters with a different cultural setting, the characters may not be interpretable, and could cause an exception to be thrown...
Problem with combobox databinding (3 replies)
microsoft.public.dotnet.languages.csharp
Hi! I have a very common problem. I searched the groups, found many people with the same problem but couldn't find an answer! When I bind my combobox SelectedValue (or text) property, "System.Data.DataRowView" shows up instead of selecting the right value. What am I doing wrong? I am binding directly in VS.NET (ie: not hand coded). Thanks! Carl
How does the GC handle this ? (8 replies)
microsoft.public.dotnet.languages.csharp
Hi, In the code sample below, I have three variables; two allocated each with a new object and the third one referencing one of the two first. Depending of the user action, MyClassVar can reference instance MyClass1 or MyClass2. Question 1 : How can I prevent the GC to collect MyClass1 or MyClass2 when no more (maybe temporally) referenced ? Question 2 : How can I explicitly free the memory used b...
Looking for Triple DES by using C# (4 replies)
microsoft.public.dotnet.languages.csharp
Does anyone has a cs file for Triple DES Algorithm? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
Implementing an Alert service using WebService? (3 replies)
microsoft.public.dotnet.languages.csharp
Is it possible to make a service like MS Alert using WebService?? I wonder whether the WebService can fire the alert event to clients. I know the WebService is on HTTP. HTTP does not maintain the connection from server to client. So, when there is an action in server, it cannot forward the event to client. Possible?? Another solution??
read bitmap from URI (2 replies)
microsoft.public.dotnet.languages.csharp
Hi, Is there a way to get an image from a url, like this: Bitmap bmPicture new Bitmap("http://myhost/pictures/pic01.jpg"); C# can't use URI's. How can I get the image? thanks, Pieter
reference vs value (4 replies)
microsoft.public.dotnet.languages.csharp
I am having trouble converting some C code to C# because of a difference with the assignment operator. For example, with a class such as public class Point3D { public double dx 0.0, dy 0.0, dz 0.0; public Point3D() {}; public Point3D(Point3D pnt) { this.dx pnt.dx; this.dy pnt.dy; this.dz pnt.dx; } } There is a great deal of C code that looks like Point3d pnt1 new Point3D(), pnt2 new Point3D(); pnt...
Using Regex to parse HTML (2 replies)
microsoft.public.dotnet.languages.csharp
I'm using the following Regex pattern to locate links in a HTML formatted string: @" a[^ ]*?href\s* \s*[""' ]?" @"([^'"" ] ?)[ '""]? " This works (sort of) okay in that it returns the first tag from the anchor tag pair, i.e: a href "http://www.microsoft.com" However what I want it to return is the full anchor tag including the text within, i.e: a href "http://www.microsoft.com" Corporate site /a I...
C# and Excel events (2 replies)
microsoft.public.dotnet.languages.csharp
Hello, I'm trying to handle Excel events from c# (command line compiler) I followed the instructions at http://support.microsoft.com/default.aspx?scid kb;en us;Q316653 to rebuild Excel.dll from the interop samples, but i still get the exception referred to in that article. ie: Unhandled Exception: System.InvalidCastException: No such interface supported at System.Runtime.InteropServices.UCOMIConne...
Inputbox in C# (2 replies)
microsoft.public.dotnet.languages.csharp
how to make the inputbox in C#? 10xs... Iury R Oliveira Bauru SP Brazil
current project directory (2 replies)
microsoft.public.dotnet.languages.csharp
I am using windows forms. From within a source file I want to access an image that is located in the same directory as MySourceFile.c. How do I programatically find which directory this is without hardcoding the entire path. I tried the IO.Directory.GetCurrentDirectory() but that gives me the directory of the project .. bin, and it's not what I need. Thanks! Irina *** Sent via Developersdex http:/...
HELP - how pass ID from ListControl double click (4 replies)
microsoft.public.dotnet.languages.csharp
I populate a ListConrtol from a DB. I capture the SelectedIndexChanged and Double click but don't know how to get the unique ID so I can query the DB to return the full details for editing. Just can't see how to do it!! Thanx Stu
select ellipse (2 replies)
microsoft.public.dotnet.languages.csharp
How I know when clicks in a Ellipse that I draw in my form?? Than You.
using ServiceController from within a Service (11 replies)
microsoft.public.dotnet.languages.csharp
Hi all, I am writing a Windows Service application in C#. Why can't we use a ServiceController to send some control signals to a Service from within one of the event handlers of that Service itself? The documentations says not to do this: snip Note In general, you should not add a ServiceController component to a Windows Service application if your intent is for that component to manipulate the se...
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