microsoft.public.dotnet.framework Archive - April 2002
Post a message to this list
Messages
Page: 12345678
Getting the identity of the machine (3 replies)
microsoft.public.dotnet.framework
Hello! I would like to get the identity of a machine, e.g. the ethernet address or the like? Do some of you know how to achieve that? Henrik
PC Date and Time (3 replies)
microsoft.public.dotnet.framework
How does one use .NET to set the current day and time??
Yield() (2 replies)
microsoft.public.dotnet.framework
Hi All!, How can I Yield( win32 equivalent) using .NET Framework? I need the screen painting to go on as the application does some processing. Thank you. Chakra
sorting (2 replies)
microsoft.public.dotnet.framework
I having a comlicated sorting process that I want to do, but I don't know how to go about doing it. Basically what I have is an object called a Row. This row has a collection of cells for this example consider it having 2 cells, a description and a total cases. The rows are in a particular order, but I want to reorder them it is best shown with an example I have the following collection of rows in...
Getting the actual string from a TcpClient, not the buffer size. Plus, debugger flaw? (3 replies)
microsoft.public.dotnet.framework
I am writing a client and a server listener utilizing TCP. I am using the classes TcpListener and TcpClient from the System.Net.Sockets namespace. The code I have right now come simply from the help for the listener as follows: TcpListener tcpListener new TcpListener(1412); tcpListener.Start(); TcpClient tcpClient tcpListener.AcceptTcpClient(); NetworkStream networkStream tcpClient.GetStream(); by...
Hyperlink in table (3 replies)
microsoft.public.dotnet.framework
Hi I was just wondering how to add a hyperlink in a table's cell created by Visual Studio?. I can only manage to write in the text by entering the text in the appropriate cell under its text feild. Any ideas on how to create a hyperlink in that cell? Much appreciated Marc.
Invoking a LPCTSTR (2 replies)
microsoft.public.dotnet.framework
I am calling an external C DLL. One of the arguments is a LPCTSTR. How do I represent that in C#??
Fault Tolerance and Load balancing (3 replies)
microsoft.public.dotnet.framework
Hi Folk: I am trying to do a evaluation of the .NET framework. Can anyone tell me how microsoft address Fault Tolerance and distributed load balancing in the .NET framework just like Weblogic or websphere J2EE applicaiton server implementation of load balancing and fault tolerance ? I have notice the old COM doesn't fully address this issue. It still has a single point of failure. Let say I wrote ...
postback with composite + templated controls (3 replies)
microsoft.public.dotnet.framework
Hi, Does anyone know how to get postback to work with composite and/or templated server controls? I've only seen examples of postback for non composite controls. As soon as I add templates and containers, postback fails. I'm guessing that the framework does not know that I want my control to handle postback for it's child controls. the only way I have managed to get any postback into my control is...
MailMessage.Attachments.Addd () (2 replies)
microsoft.public.dotnet.framework
Anyone know how MailMessage.Attachments.Add () works? The documentation says that Attachments is an IList property, hence the Add method, but there are no apparent clues how to use it to add a file as an attachment to an outgoing SMTP mail message. Thanks Phil Wilson
serilaizing objects and streaming though a socket (2 replies)
microsoft.public.dotnet.framework
I am trying to send objects back and forth between client and server (messages). I want to serialize them using the BinaryFormatter. For some reason it doesn't work: chatClient is TcpClient ProtocolV1.LoginRequest login new ProtocolV1.LoginRequest(); login.username "emad"; login.password "1234"; BinaryFormatter bf new BinaryFormatter() ; bf.Serialize(chatClient.GetStream(),login); chatClient.GetSt...
Advanced(?) Reflection Question (4 replies)
microsoft.public.dotnet.framework
Hi All. I need to implement late bound event registration. notifyEventInfo is an instance of EventInfo. notifyInstance is an instance of the type that declares this event (or one of its type subclasses) [notifyEventInfo.ReflectedType] observerInstance is an instance of a class that implements the event handler. observerMethodName is the name of the event handler method in observerInstance. How wou...
SetServiceStatus (2 replies)
microsoft.public.dotnet.framework
Hi! Does anybody know how to set the ServiceStatus of a running Windows NT Service ? Using the Win32API i could easily reach this by calling SetServiceStatus. In the structure passed to this function i could also specify a wait hint and thats another thing i'd need in my .net service! Any help would be appreciated!!! Thanks in advance markus
Active Directory and invalid GUIDs (2 replies)
microsoft.public.dotnet.framework
Hi, We are seeing some very strange (BUG?) behaviour. Consider the following code: // Add a new user DirectoryEntry ouEntry new DirectoryEntry(LDAPPath, AdminUserName, AdminPassword); DirectoryEntry newMember ouEntry.Children.Add("CN " fullName, "user"); newMember.Properties["sn"].Add(lastName); newMember.Properties["givenName"].Add(firstName); .... newMember.CommitChanges(); Guid userGuid newMemb...
Trap Session Ending (2 replies)
microsoft.public.dotnet.framework
I am trying to trap a logout or shutdown event in my WinForms app. So in one of my forms that is always around I use this code in the form constructor: // setup to handle session ending SystemEvents.SessionEnding new SessionEndingEventHandler(this.OnSessionEnding); Then this is another method on the form class public static void OnSessionEnding(object sender, SessionEndingEventArgs e) { Trace.Writ...
How to make ComboBox uneditable` (2 replies)
microsoft.public.dotnet.framework
There is no property on ComboBox called 'editable' or anything similar. How do I prevent a user changing the text in my list of items?? simon
ContextMenu Class Seems Really Limited (19 replies)
microsoft.public.dotnet.framework
I have an instance of a ContextMenu object. I want to display the menu at an arbitary poition on screen. ContextMenu.Show() requires a Control parameter and I pass my form. But my form is not visible and Show() throws an exception. So how can I show my menu using ContextMenu. Will I have to use Win32 API calls to handle this? This seems like a pretty cruddy situation. (I have tried passing null bu...
OpenFileDialog (2 replies)
microsoft.public.dotnet.framework
Using OFD with a filter pattern of my own file type ("My xxxFiles (*.xxx)|*.xxx") shows the filter/pattern in the dialog box as exspected. Moving to a directory containing a file with this extension does NOT show the exsisiting file (e.g. "myfile.xxx" not visible). I need to enter "*.*" in the file textbox above to make appear the file as desired. Is there any property in OFD controlling this ? th...
DataGrid rows like datalist (4 replies)
microsoft.public.dotnet.framework
Hi all, is possible to deny thet the control edittext to appear when i click in a cell of my DataGrid ? I want to use DataGrid like the ListView control for some styles. Thank you. Alessandro Zambonin
About System.Web.Mail (2 replies)
microsoft.public.dotnet.framework
Hello everybody, I'm trying to port a program written in VB6 and using Microsoft Collaborative Data Object for Windows 2000. I found out that the equivalent in .NET was System.Web.Mail but I cannot find a similar method that would return the list of messages if the MailRoot\Drop directory. Any idea? Serge
Arguments (4 replies)
microsoft.public.dotnet.framework
It's possible to send Arguments to a Application from the Framework instead of writing it from the command prompt (when starting the Application) Thanks Paps
1 instance per machine (2 replies)
microsoft.public.dotnet.framework
What is the .Net way to insure that only one instance of an executable will run per machine?
How to integrate a C++ Dll into a C# .Net Project? (4 replies)
microsoft.public.dotnet.framework
Hi all, I'd like to know if it's possible and what are the consequences of integrating a C dll (simple one with a couple a classes, the use of MFC classes use of RASAPI32.dll that is dynamically linked to my dll) to a C# ..Net project... In fact we have started a project with some business C dll modules and now we want to integrate these objects to a .Net application but we don't know if we have t...
Output from c# and more. (3 replies)
microsoft.public.dotnet.framework
Hello 1. How to make (command line) output from c#. I am making some web service, and want to make some text output to help me trace bugs. 2. In the Visual Studio.NET documentation my contents window has starten "floating", how do I dock it in the left side of the screen (again). Everytime i try to dock it, instead what hapends is that i have to taps, one with the contents and one with the "browse...
reading mail (4 replies)
microsoft.public.dotnet.framework
Hi, My application needs to be able to receive e mails. I have an email account on an exchange server created for this purpose, and I need to find a way to access this mail account and download/read the messages. I also need a way to delete old messages. I have looked at the SmtpMail class, but it does not seem to offer the functionality I need. Is there some other API available that I can use for...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com