| How to serialize a class derived from TreeNode ? (13 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi I'll serialize MyObject. Can I do that? Or it's impossible to serialize TreeNode derived classes? using System; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.IO; using System.Collections; using System.Windows.Forms; namespace ConsoleApplication1 { [Serializable] public class MyObject : TreeNode { public MyObject(string dirName) : base(dir... |
|
| handle not initialize (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hello, some times (so not periotic) I gets exception like this in sub. What is wrong?? debe PS. Please on prv, solutions i'll put on group. |
|
| a question about dispose and close (3 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| hi, I had a sqldatareader dr, after reading some info from the database. I want to close it. Can i directly use dr.dispose() instead of dr.close() plus dr.dispose(). Is it safe? In another word, is dispose() will close dr before dispose if it is still open? I appreciate your help! |
|
| Access Violation (Global Resources)! (2 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Hi All, I have a process A which calls a worker thread. Process A can is invoked by a launcher x no of times.. How do I ensure exclusive access to read/writes to my worker process? since my worker process is doing a read and write to a shared resource. Mutex is the way but how and where should I implement it. Putting a global Mutex on the worker thread is not helping me.... and Launcher is a very ... |
|
| NEW: Visual C# Express Edition (2 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Visual C# 2005 Express Edition [1] is a simple, lightweight, integrated development environment designed for beginning programmers and non professional developers interested in building Windows Forms, class libraries, and console based applications. Visual C# 2005 Express Edition includes many of the same productivity features found in Visual Studio, all streamlined to fit the needs of the non pro... |
|
| PostBack on a Datagrid (2 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| How do I code for a datagrid to postback an editable field? I have field that come up automatically when the datagrid gets populated. You can make some changed right there to multiple fields, however, I want it to postback to the dataset after that field loses focus. |
|
| Using CodeDom to edit code (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| BlankCan anyone give me an idea as to how to use the CodeDom to edit code? I would like to perform mass changes (such as putting logging messages as the first statement in all methods with method names) to a system with hundreds of classes and thousands of methods. I know the CodeDom can allow you manipulate the code and spit it back out, but I cannot seem to see how to get it to pull the code int... |
|
| ANN: .NET Framework 2.0 Beta 1 (9 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| ..NET Framework Version 2.0 Redistributable Package Beta 1 (x86) http://www.microsoft.com/downloads/details.aspx?familyid f1232c37 0fee 4aa6 aa89 b6dcefc0873b Download (at your own risk): http://download.microsoft.com/download/9/6/6/9666067a 660f 48e0 a755 a83a81036b67/dotnetfx.exe (note, NT4 no longer listed as supported..) http://msdn.microsoft.com/netframework/ Thomas Scheidegger MVP .NET 'NETM... |
|
| Connection String Dialog (5 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Hi, How can I display to the user the "Connection String Dialog" (The Dialog to build connection string) in my application ? Thanks, Steph. |
|
| NEW: Visual C# Express Edition (3 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Visual C# 2005 Express Edition [1] is a simple, lightweight, integrated development environment designed for beginning programmers and non professional developers interested in building Windows Forms, class libraries, and console based applications. Visual C# 2005 Express Edition includes many of the same productivity features found in Visual Studio, all streamlined to fit the needs of the non pro... |
|
| dotnet running in Unix (6 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Have anyone tried to code C# in a Unix box running solaris ?? Does it working fine ? or any issue you've found ? |
|
| On Error tranlation (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hello, I'd like to know what the C# counterpart is for the VB On Error statement ? My VB code looks like this : On Error GoTo ErrGetItem plain simple ud say, but I need to "translate" it into C#... Any ideas ??? |
|
| event handlers and GC (4 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| I have an object X, and an object Y. Y is the only object that has a reference to X. X has an event. Objects A, B, C register for this event but dont keep a reference to object X. When whoever owns Y is done with it, and Y is garbag collected, what happens to X and to the Objects that registered for the event? will those event registration prevent X from being garbage collected? |
|
| license files (4 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| I am using some 3rd party assemblies that require license files. I have placed all the licx files into one and compiled it. If I compile it from command prompt and include the compiled license file as an embedded resource it works file, however if I include the compiled license file in visual studio as an embedded resource and remove the licx file it throws a system.componentmodel.licenseexception... |
|
| Serializing object with members that are not all declared public (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hello, I am writing an application in C# and am trying to insert an object into a message queue. The problem is that the object is quite complex with many variables, some of which are not declared public. Does anyone have any ideas as to how I could get around this problem, without using the BinaryMessageFormatter, in that I should be able to insert my object into the queue with all its variables,... |
|
| C# Tutorial Videos Available (2 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| If you are looking for a set of videos to learn the C# language, check out our site: www.vtmag.com Save now with our introductory offer! Several professional Tips and Tricks are in the videos. Thanks, Wade www.vtmag.com *** Sent via Devdex http://www.devdex.com *** Don't just participate in USENET...get rewarded for it! |
|
| Response.ContentType and C# (4 replies) |
| microsoft.public.dotnet.languages.csharp |
| How do you reproduce this vbscript in C# % Response.ContentType "text/plain" response.write "This is text type" % |
|
| how to add 2 rows and 2 cols into datagrid (2 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| the first column title is "abc" the second column title is 'efg' |
|
| what is an event? (5 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| i used mouseEvents or clickEvents etc.. but i did not still understand what an event is yet. eg: when we press a button, the eventhandler registered with the the button's click *event* is invoked. what is "button's click event" here? or can we write this event from scratch? eg: we have an integer , say i. incrementing the i , i . could this be an event too? i mean, can we invoke a function (or a e... |
|
| about inheritance (5 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| i have a class, lets say myclass and 2 derived classes(derived1, derived2) from myclass. i do the following: myclass a; then i will instantiate according to user choice. a new derived1( ); or a new derived2( ); but i can not reach the members of derived1 or derived2 using the object a. what should i do? |
|
| Frustrated newbie question (5 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| I have inherited a treeview control. I can create instanciate build event etc. in this new class in my main form and it all works. I thought that the best design practice would be to create a new class file and define the inherited tree class in this seperate file. After moving it into the new file I can not seem to get it to recognize itself on the main form. Any info , pointers or links to info ... |
|
| Dynamic load of a c++ dll in C#? (4 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Hello I'm new to C# and wonder if it is possible, as it is possible in C , to dynamically load a DLL and use it in C#. The dll is written in C (unmanaged) and has the following export: int test(void); and the code resides in test.dll I want a C# application that when I press "Button1", it should dynamically load test.dll and its 'test' function and call it and get its return value. Is this possibl... |
|
| Form Closing event - again (4 replies) |
| microsoft.public.dotnet.languages.csharp |
| I need to know if the "X" in the upper right hand corner of the form was pressed to close a form. Nothing else, just the "X" close button |
|
| Invisible form (4 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi guys, I m trying to make a startup invisible form. I don t want a form with Opacity property 0. First I did the property Visible of the form to false. It wasn t a good idea, was too easy. Then I follow the tips of MSDN making a new class with an instance of the form that has the logical of the application. But it not run since I call the ShowDialog() method. Please, can anyone gime me a tip or ... |
|
| Sharing VS.NET projects (use FTP?) (5 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| I couldn't find the 'right' group to post this, so I thought I'd try it here. If you can suggest a better newsgroup to post this in, please let me know. I trying to figure out if there's an easy way to share VS.NET code (for an ASP.NET app) between 2 remote developers. In general only one developer will be changing the code, but I'd like both developers to be able to compile and run the code on th... |
|