Answer Questions
MocoN Registry Monitoring for Service
I would like to know if there is a Registry Monitoring Available. I am using External App to change setting and such in the Service app by changing the value in Registry. But somehow I must be able to signal the service to load the new setting. Please let me know how this is possible. There are 2 ways to solve this problem: 1. Use a special registry key where your service is listening too. For example your external application chang ...Show All
programmer31 How can i know where instance of class was created?
Hi, i have my own Exception class, i want to add to error message source class which create instance of exception. public class Konektor_Exception : Exception { public string Message_Konektor; public Konektor_Exception(string paMessage):base(source_class) &nb ...Show All
Vivek S socket exception
ok made a very very good class server it can handle to 3879 clients but when it reach 3880 it throwes an exception like that says that it cant perform operation on a system socket because the socket`s quenque is full You can use the Socket.Listen method to places a Socket in a listening state. The method takes one int parameter that specifies the maximum length of the pending connections queue. int queueSize = 50; Socket se ...Show All
dexxter Localization Performance Problem
Hi All, I have a small problem which I cant find answer anywhere. I wrote a small applcation in C#. It support english and German, So I am using resouce files for german and they all stored under the "de" and the "de-DE" folders. My Application loads through Internet Explorer ( IIS ). when I connect to my page from a German client console and check the IIS log files i see that a lot of GET command failed (404). the strage thing is that those dll ...Show All
M_Rajesh blocked zip files using zipsharp library
I had a program created in C#.net that zips a folder up for me automatically. We used the zipsharp library and it seems to work great execpt when you try to open it using windows to extract the files from the zip. If you try to extract the files you get a message saying "windows has blocked access to these files to protect your computer" and it tells you you can fix this by right clicking the zip file and go to properties and check the "un ...Show All
foxjazz2 SQL lookup
I am a new user to Visual Studio and SQL Server. This is probably a question that has been asked before but I can't seem to find it anywhere. I have an SQL database with two tables. One has a primary key and the second has a primary key with a foreign key referring back to the first table. I display the fields that are of interest in about 9 text boxes. My question is how do I use the text box containing the key for the second table and derive t ...Show All
ChineduLB What is??
What is the command Line and how do i find in the IDE The command line is not part of the IDE. It's the "traditional" interface to the operating system, where you perform operations by typing commands instead of using the mouse. For example, all .NET compilers are command line applications in the end - they're just hidden behind the Visual Studio IDE. You open the command line by select "Run" from the start menu and typing "cmd". ...Show All
Greg Enslow Positioning windows form...
Hi I have a requirement to position the windows form as i define using string[] args. To achieve the same, i'm passing Top, Left, Height, Width of that form as command-line arguments. Like, C:\>helloworld.exe 0 0 150 1024 and once executed it should position accordingly. In my case, Top position always positioned below, but Console.Writeln output prints '0' as Top value. Do i miss some property setting ...Show All
FernandoAlvarez DirectX app crashing
I wrote a video jukebox program in C# last year. I initially used the AudioVideoPlayback namespace, but it's really buggy, so I used the WMP control instead. However, we used DX to read ID3 tags in the manager program. Now, a year later, the client has changed the contact person, and every machine he tries to install on gives him this error : The type initializer for "Microsoft.DirectX.DirentInput.Manager" threw an excep ...Show All
CHUNGVOKY Convert c++ file.h to c#.cs DllImport
Hi Does anybody know a tool where I can choose c++ header file (with function header) and it will create me C# file with DllImports of c++ function Of course I can do it, but if you've got a lo of projects with includes a lot of different c++ dll - you just want to have a tool for it. Path to dll is not a problem, you can always change it or make a wraper, questions is - if you've got a compiled c++ Dll file is it posible to export f ...Show All
NIck Chance Indexing ArrayList members by strings
Is there any way to index members of ArrayList or Array by any strings I mean something like it happens in DataTable, when we can index columns by their names. I am developing a little application for the wiring/electrical system, and I have to keep track of the switches and meters etc. Now for example there are 20-50 meters, and most of the times it so happens that they are modified individually. Sometimes they are modified simultaneous ...Show All
mbmbeers To get files in folder
Hi, I want to display all files as well as sub folder in a root folder.This sub folder can have more files as well as sub sub folders. By this c# how can i get this hierarchy Thanks, Hitesh Here's a quick solution. This function will search the specified "root" folder for all the files in there, including all the files of its sub-directories. This function may take some time to complete if you specified a folde ...Show All
Alexandr Iacovlev Is it possible to make a subitem on a listview clickable?
Hello, I am wondering if it's it possible to make a subitem on a listview clickable (on detail view). Many thanks. No, the default managed ListView control class doesn't support that, but there are a lot of extends of the ListView control the simplest and best i know is: In-place editing of ListView subitems . Dear Angry Coder: The answer was no at least up to Framework 1.1. However, a close s ...Show All
johnpen about combobox properties
Hi there! Two questions about comboboxes... .- Which property should I use to align the text into the combobox in the center of the box .- Which property should I use to make combobox accepting only "the list of items" (the items I already set) value Thanks in advance, Aldo. (it's very strange that .net technology does not support such basic property for a combo box...) Thanks a lot! Check my answer in ...Show All
ShankuN can my C# assembly know when it's been loaded?
I am writing a C# assembly that is completely independent from its host. This assembly doesnt have a single functional point of entry (it has a lot of objects that can be used in various ways). Is there a way i can be notified on the first time, just once, that my assembly is loaded/and or being used I need to know this in order to trigger an initialization of a resource. Thanks. Hi Steve, Just a ...Show All
