| XCopy Deployment Directory (2 replies) |
| microsoft.public.dotnet.general |
| How is the xcopy directory of a Windows 2000 service, or any other application, acquired by the application at runtime? The current directory of a Windows 2000 service turns out to be system32. |
|
| File Read/Write Permissions (2 replies) |
| microsoft.public.dotnet.general |
| How do I determine if the running process can read and write to a specified path (UNC or Local)? Tyke |
|
| Rename a Treeview-Node like Windows Explorer (2 replies) |
| microsoft.public.dotnet.general |
| hi, I know how to create and drag & drop a treeview, but how can I let the user rename a node like in windows explorer, that the renaming is in a pseudo textfield or so on the nodes label? thanks Sebastian |
|
| How do you detect file types (extensions)? (2 replies) |
| microsoft.public.dotnet.general |
| I want my users to be able to import a tab delimited file into the system. It will then be parsed and added to the database. I'd like them to only be able to import text files (.txt). How do I check for that extension so that the program can raise an error if they try to import an .exe or .htm, for instance. I know I can just check the last three characters of the file path but I figure there must... |
|
| Simplest code example for creating a dataset (2 replies) |
| microsoft.public.dotnet.general |
| Where can I find a good simple example of how to create a basic dataset with a single table. For example, from "SELECT * FROM customer". I have two books that do a terrible job of explaining. I am a visual learner and an example would do me just fine. |
|
| can't see datagrid in browser (5 replies) |
| microsoft.public.dotnet.general |
| i have create a asp.net web application which has a datagrid controle on the web form. but i can't see it in web browser, how it happens. |
|
| Hungarian, who has ditched it (9 replies) |
| microsoft.public.dotnet.general |
| Microsoft's coding guidelines mention dropping hungarian notation. I have been using it for more than a decade and though I don't think it has that many benefits these days, old habits die hard : ) Has anyone actually dropped hungarian for .NET coding? There seems to be plenty around in code snippets posted in these ng. Your thoughts are welcomed. Mart |
|
| sockets in net (RecieveFrom) (3 replies) |
| microsoft.public.dotnet.general |
| I don't understand the way how winsock 1.1 recvfrom function done in Net Framework Socket class. recvfrom set buffer and size, if buffer is bigger than next call to recvfrom get rest of data message. In Net Framework in this situation MSDN gives next explanation for Overloads Public Function ReceiveFrom( ...) As Integer: "If you are using a message oriented Socket, and the message is larger than t... |
|
| Serializing Xml To A File (2 replies) |
| microsoft.public.dotnet.general |
| Hi, Is it possible to append XML to the end of a file using the XmlSerializer class? I've open the file in Append mode and then used the Serialize method of the XmlSerializer class, but it seem to overwrite the contents of the file. Can anyone help? Many Thanks, Michael |
|
| ListView Problem - Adding Items (2 replies) |
| microsoft.public.dotnet.general |
| Hi, I have a listview that displays records from a database. I have written some code to add the records, which works well. Sort Of. I have implemeted some code to sort the columns found on the MSDN site. The problem is: The items can be added and refreshed again and again. The problem arises after a column is sorted and then I attempt to refesh the listview. The code adds the first record to the ... |
|
| Empty Dates, not NULL dates? (3 replies) |
| microsoft.public.dotnet.general |
| I am pulling records from sqlserver by stored procs into a sqldatareader. From this datareader I am populating my custom object like so: Employee.Name (string)myDataReader["Name"].ToString(); Now for my DateTime type fields/properties of my class I am having trouble loading up a value when my dates are returning null. Cusomer.QuitDate Convert.ToDateTime(myDataReader["QuitDate"]); I need to populat... |
|
| Visual Studio error msg (2 replies) |
| microsoft.public.dotnet.general |
| When I open up my aspx page in visual studio I get this error: "the file failed to load in the web form designer. please correct the following error, then load it again. Visual Studio cannot open a designer for the file because the class within it does not inherit from a class that can be visually displayed." The page directive in my aspx file is %@ Page Language "vb" AutoEventWireup "false" src "... |
|
| Garbage Collection: When it starts ? (2 replies) |
| microsoft.public.dotnet.general |
| Dear Friends, i aheva made a windows services that every 2 seconds create some object and (consequently) put some object in the garbage collection. It's starts consuming 16Mbytes of RAM but only 10 minutes after the RAM has increased up to 40Mbytes and still growing. I have cal the GC.Collect() method but nothings happened. I would like to know WHEN the GC "wake up from the bed" and start to do so... |
|
| Localization of Help bug in VS.NET (3 replies) |
| microsoft.public.dotnet.general |
| This has been brought up, apparently as early as Nov. of 2001, and the bug still exists, so I'm curious if anyone knows if MS has any intention of fixing this, or if those of us doing localizable apps are simply screwed? Basically, if you add a help provider to a localized form, the code it inserts is faulty and won't compile. Essentially, calls to SetHelpKeyword and one other method, fail because... |
|
| StrongNameIdentityPermissionAttribute (2 replies) |
| microsoft.public.dotnet.general |
| Hi, I was playing about with the StrongNameIdentityPermissionAttribute but can't seem to get it to work. I'm following the article at http://www.morganskinner.com/ViewArticle.aspx?ArticleID 7 1) created strong name key sn k test.snk and saved to C drive 2) added [assembly: AssemblyKeyFile(@"C:\test.snk")] to both reference dll and comsumer app AssemblyInfo.cs 3) built solution (contains both dll a... |
|
| Background thread ending issue... (3 replies) |
| microsoft.public.dotnet.general |
| I've created a class containing a HashTable. When the class is created, it creates a background thread that will automatically remove timed out items. The thread looks like this: Do 'delete timed up stuff Thread.Sleep(1000) Loop But now... how do I end this thread? The class won't be garbage collected since it's still used by the thread, so Dispose or Finalize don't get called (I could stop it the... |
|
| throw resets Exception stack trace info (2 replies) |
| microsoft.public.dotnet.general |
| The way Exceptions work currently is that the stack trace information is set when the Exception is thrown. This is convenient as a side effect in that you don't have to specify when to fill in the stack trace data, but it can be a problem if you catch and re throw the Exception at different levels and want the original stack trace data for logging/debugging purposes. Take the following example: vo... |
|
| Select .Net TreeView-TreeNode (5 replies) |
| microsoft.public.dotnet.general |
| Any one knows about how to programmatically select a TreeNode of TreeView, thanks. The TreeView only provid SelectedNode for get selected node, but you can't set. Thank. |
|
| Transforming text to XML (2 replies) |
| microsoft.public.dotnet.general |
| Hi, I have to transform several (strange) file formats into XML. I am currently using System.Text.RegularExpressions.Regex do do the transformations which works quiet sufficient. I wonder however if there is a more "serious" approach to get this done, something like an XSLT transformation that processes text and returns XML? Thanks for any pointer, regards DC |
|
| Simple(?) delegate threading problem (6 replies) |
| microsoft.public.dotnet.general |
| I've set up a method & delegate so I can spawn off a worker thread from my C# Web Form app using the code below. This works fine whilst I'm compiling my code as a Windows Application, however when I compile it to a Class Library (it runs as a plugin from a main app) it chokes on the delegate.BeginInvoke. delegate void getStuffDelegate(CustomListViewItem item); void getStuff(CustomListViewItem item... |
|
| Get File Version of COM DLL (2 replies) |
| microsoft.public.dotnet.general |
| Hi Can anyone tell me how to retrieve the verison of a com dll from a vb.net program. I know that there a win32 api calls to do this but there must be a better way? Regards Rob Bowman MCSD |
|
| Rename File (2 replies) |
| microsoft.public.dotnet.general |
| I can't found the Rename function in the .net File class File.Move function just rename the file if the actual folder and the destination folder is the same? Thanks. |
|