| Any WinForms books? (3 replies) |
| microsoft.public.dotnet.general |
| Hi, Could anyone recommend a good book that focuses on WinForms? Most of the ..NET books that I've seen are very broad explaining what the CLR is, how assemblies work, and how .NET compares to Java. I'd prefer a book that gives an in depth description of WinForms... I might be asking a bit much, since the product is still in Beta... but just thought I'd ask. David |
|
| If Else if statement (3 replies) |
| microsoft.public.dotnet.general |
| Hello, Can someone explain why did they removed the "if. else if" statement which exists in C and preserved in Java while the goto statement preserved? switch statement treats constant and therefore cannot replace "if.else if" complex decisions and nested "if. else" statement is absolutely neither readable (nor writeable). And why is this fact not mentioned anywhere? Did I miss something? Thaks a ... |
|
| AutoPlay (2 replies) |
| microsoft.public.dotnet.general |
| Hi! I tried to implement AutoPlay handler for my sample application. I've read "Prepare hardware and software for use with AutoPlay", so i made appropriate changes to the registry and wrote COM server implementing IHWEventHandler interface (just invoke MessageBox, i tried both .dll and .exe). All this have to handle insertion of blank CD R (RW) into the recorder. I see menu displayed after inserti... |
|
| Lose Controls from HTML to Design Mode (8 replies) |
| microsoft.public.dotnet.general |
| When I switch the viewing mode of a .aspx from Design to HTML, and I switch back to design mode, many times I lose alot of my controls on the form, yet their references remain throughout my code. Does anyone know if microsoft is aware of this, and when they plan to have a fix for this? thanks |
|
| can i export the contents of a datagrid control to an excel file? (2 replies) |
| microsoft.public.dotnet.general |
| I'm hoping to add functionality to my windows app (written in C#) so that the contents of a datagrid control (sorted by the user in whatever way she wants) can be exported to an excel file. It seems like it would be a simple task, both of these things being grids and all, but I can't seem to find a way to loop through the values in the grid. Can anyone help me get started? Thanks, Barb |
|
| How can I get all the local hostnames (or IPs) in the DNS? (6 replies) |
| microsoft.public.dotnet.general |
| Hi: Say, if my C# app wants to let users choose the host (inside the local network) they are connecting to from a DropDown Box, how can I retrieve the local hostnames or IPs from the DNS (maybe by giving it a local IP and subnet mask??)? Thanks a lot in advance, Patrick. |
|
| Region Constructor in System.Drawing (3 replies) |
| microsoft.public.dotnet.general |
| Looking at the help files of the Region Class I find constructors for rectangles and a RegionData Class, but nothing that constructs a Region object from an array of points as in the Win32 GDI. Is the help topic describing the RegionData object incorrect when it says, "An array of characters that contains the data that makes up a Region." How could you possibly create a Region object from an array... |
|
| C# Equivalent of PtInRegion (3 replies) |
| microsoft.public.dotnet.general |
| In the Win32 GDI API there is a function for determining if a point is within a Region. What is the C# equivalent of this function? I find nothing that sounds like this in the System.Drawing help. Tom C. "As night does not come at once, neither does oppression. In both instances, there is a twilight when everything remains unchanged. And it is in that twilight that we must be most aware of the cha... |
|
| Creating the root XML element (what used to be xmldoc.DocumentElement) (6 replies) |
| microsoft.public.dotnet.general |
| Using MSXML called from an ASP page creating the root node in an xml document could be done with a line of code like Set xmlDOM.documentElement CreateTag("ElementName", "ElementValue", "AttributeName", "AttributeValue") (Where CreateTag() is a user developed function that returns an XMLDocument) Under .NET System.XML, the DocumentElement Property is read only. How do I create the root elemement un... |
|
| All Controls on Form Disappeared When Deleting One Control (5 replies) |
| microsoft.public.dotnet.general |
| I just ran into an instance where all my controls on my form disappeared when I deleted a single control. I checked the source code within the VS.NET generated region and all the code for the controls is there however they don't appear at run time or design time any more. Has anyone found a way to get them back? Thanks! |
|
| Problem shutting down an UDP socket ... (3 replies) |
| microsoft.public.dotnet.general |
| Hi: I have a UDP socket created like this: udpSocket new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); When I tried to shut it down using: udpSocket.Shutdown(SocketShutdown.Both); I get this exception: System.NullReferenceException: Value null was found where an instance of an object was required. Samething happens when I tried udpSocket.Close(). What did I do wrong? Than... |
|
| Runtime object creation using strings (classname) with dotnet (2 replies) |
| microsoft.public.dotnet.general |
| Hello, I am a JAVA programmer, and in JAVA there is reflection. If you have a string like: "package.subpackage.Classname" it is possible to create a new object, just by using reflection. it goes like this: Object testObj null; Class theClass2 Class.forName("TestObject"); testObj theClass2.newInstance(); testObj is now a object from the type TestObject, and it's methods can be called. Is there anyt... |
|
| Stringbuilder (2 replies) |
| microsoft.public.dotnet.general |
| Just curious as to others opinions, at what point does it become advantageous to use a StringBuilder over standard concats? 3 concats? 10? 20? Assuming, of course, that concatenations are all that are occuring. Thanks Jacob |
|
| Generating Documentation of Code, functions (4 replies) |
| microsoft.public.dotnet.general |
| Hi All, Is there something similar to JavaDocs in the .NET world? If so, how do I generate the documentation? TIA Roshan |
|
| Program Return Code Where (3 replies) |
| microsoft.public.dotnet.general |
| I am using .net framwork and VB I want exit my program with a return code i.e. 10 where i have to program the return code ?? Thanks for any help peter |
|
| Anyone with VS.net/VSS/Team Environment project? (11 replies) |
| microsoft.public.dotnet.general |
| I'm trying to setup 'WebApplication1' on web server for team development. This project is already located on the web server and was originally added to the Visual Source Safe, after being created on a web server. I receive an error saying that web application 'WebApplication1' already exists on the web server after I create a local project file on a developer machine, by opening the project from V... |
|
| Extend the EditColumn (2 replies) |
| microsoft.public.dotnet.general |
| Hi All I've got a Web DataGrid with an EditColumn witch offers Update, Cancel and Edit Links. I would like to add a Delete Link to that column. How can I achieve this? Thanks bluesky |
|
| DropDown List in DataGrid (5 replies) |
| microsoft.public.dotnet.general |
| Hi All I would like to use a DropDown List in a TemplateColumn in the DataGrid WebControl. How can I define the content of the dropdown list from C# (Load it dynamically from a DB Table)? I'm running out of ideas. Thanks a lot Martin |
|
| VS7: Documentation Broken - ms-help::\\ (3 replies, VIP) |
| microsoft.public.dotnet.general |
| After installing VS7 Beta 2 I have this problem: Whenever I try to look up documentation from "Microsoft Visual Studio .NET Documentation", I get "The page cannot be displayed". An example URL for a help file is: ms help://MS.VSCC/MS.MSDNVS/vsintro7/html/vxmscCustomizingWind owsOrWindowsNT.htm When I search Technet, Knowledge Base, MSDN I get no references to this protocol named "ms help://". I've... |
|
| Cannot Subclass Webservice-returned Classes in Client App (3 replies) |
| microsoft.public.dotnet.general |
| Anyone know if this is possible??? Problem description: I have written a Web Service which correcly returns a serialised representation of a custom object hierarchy. A client .Net Windows App has a reference to this web service and the IDE shows the objects correctly and can access them when the web service function is called. The web service returned objects have only Properties no methods as exp... |
|
| Serialization: ISerailizable or IFormatter or (3 replies) |
| microsoft.public.dotnet.general |
| Hi All, I would like to understand the difference between ISerailizable or IFormatter or [Serializable]. If I need to create a class that can be serialized should i implement ISerializable or IFormatter or do I just put [Serializable] in the code? TIA |
|
| structure of my solution? (4 replies) |
| microsoft.public.dotnet.general |
| Hi, I'm new in the .NET area. If I want to build a Web application that gets a DataSet from C# class and the C# class manages the db conenction. Do I put the Web class in one project and the C# class in one project? Or do I put all classes in the same project? Can I access classes from another project without having them in the same folder? Where can I read about how the "solutions" and "projects"... |
|
| COM+ cleanup in Deactivate vs. Dispose with object pooling? (5 replies) |
| microsoft.public.dotnet.general |
| I have recently read Tim Ewald's article in MSDN titled "How .NET Enterprise Services can help you build distributed applications" and found it to be very informative on .NET/COM integration. However, it also raised a couple of questions for me: 1) Tim shows how to create COM objects that use object pooling. He also explains how to cleanup objects by overloading the Dispose method and in turn disp... |
|
| How to interact with windows service? (2 replies) |
| microsoft.public.dotnet.general |
| Hi NG I built a windows service, that runs just fine. Now I want to write a winforms client, that calls some methods of the windows service. I guess that I need a remoting class to do so. So I wrote a class in the service that inherits from MarshalByRefObject and has one single method. The problem is, I can't add a reference to the windows service in my client project. I get an error message that ... |
|
| How to create a component/control with special properties? (4 replies) |
| microsoft.public.dotnet.general |
| Hi, For example how to create a custim control with a property having a [...] button in the property window design time to open a "file open" window? thx for answers |
|