Answer Questions
Greg3055 WMI as a C# service project
Hi, I'm using WMI to write an application for gathering information about the users Computer. That works fine! Now, I wanted to write this application a a service. But I don't get any output. Working with an normal winexe-file, the output looks like this: Operating System: Windows Professional XP As a service, I get: Operating System: So the queries don't work. Does WMI even work as aa service Thanks, Finch. ...Show All
mlater Getting the user's location (country) in C#?
How can I find the user's (client computer's) location (country) in a C# Windows Application I want to get their country and filter the items in a combobox to the determined country as default. I have the comboboxes set up corretly in Visual C# Beta 1 are getting the cities from my database. Basically the first combobox is full of Countries and the second is full of cities (filtered for the selected country). Best Regards, Dean Krause ...Show All
AnjaliDevi USING VIS c++ V 6 WITH c# OR c++.NET
I am trying to figure out the best way to rewite a Vis C++ v6 dll that is part of a Commercial Software Package. I was wanting to do it in C#,and hopefully use some of old C++ code. Does anyone have an idea what the best way to approach this problem. Also I will need new C# or C++.net DLL to still work with Vis C++ v6 package, including being able to navigate from a menu back to othe parts of application in ver 6 C++ from c# dll, and still ...Show All
courion24 Possible to disable Control-Alt-Delete buttons?
First off, I have searched on google and have not found any answers, and all of the folks who have asked in the archives basically got a "why on earth would you want to do that " or, "Only reason to do that would be to spread a virus!", etc responses. So here's the background: I'm an instructional designer/developer tasked with implementing a certification program for my company. This includes a series of examinations, simila ...Show All
gagan Beginner help with Regular Expressions and replacement
Sorry if this is in the wrong forum. Feel free to move it if it is. I'm a student learning C#. I'm having trouble with a program I'm writing. I have a rich textbox that has been accumulating string data. This data is choices the user has selected. I'd like to allow the user to remove choices. I’ve tried getting the data in the rich textbox and replacing their choice with “” but this replaces all instances of their choices. I’d like it to remove ...Show All
jimcason I try to exercise a sample in Visual Web Developer 2005 Express help, why do I always get the error "Please input another passwo
I try to exercise a sample in Visual Web Developer 2005 Express help, why do I always get the error "Please input another password" Now I try to exercise a sample in Visual Web Developer 2005 Express help Title: Walkthrough: Creating a Web Site with Membership and User Login (Visual Studio) URL: ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.chs/dv_VWDcon/html/296c0be6-9ad5-4104-9a1b-a853986fa1a3.htm The ...Show All
Patti Biggs Abstract methods and cannot declare body.
I just wanted to confirm my understanding that there's no way to implement an abstract class with a method that must be overrriden but also provides a method body in the abstract class. e.g. the equivilant of a pure virtual method with a body in C++. i.e. the only way to force a derived class to override a method is with the "abstract" keyword on the method declaration. Indeed, the only way you can do this in a abstract class ...Show All
Catadmin How do I compare time?
I would like to compare time / do a time comparison. How would I code: time1 = 8:00am if (time1 < time2) { //execute some code } That's correct - but I would also point out that the easiest way to extract the TimeSpan from a DateTime is to use the TimeOfDay member: if (time1.TimeOfDay < time2.TimeOfDay) { //execute some code } ...Show All
Lions get/set
Hi, would be great if you could help me! Any ideas why the access modifier "private" doesn't work with the following code public string Name { get { return name; } private set { name = value ; } } This extra modifier on a get or a set if only available since C# 2.0 and you can't do this in older version. You can do it like this: public string Name { get ...Show All
Mike for VB But wait, it gets better.
Cannot install/re-install MS DeskTop Search (nor toolbar): "cannot remove older version"; running XP Pro on Intel 865 motherboard with 1 gig of ram and 3Mhz Pentium 4. Error message "cannot remove older version" is response to running new download; nothing which looks remotely similar to desktop search shows up in {Remove Software} nor do I find any version of anything which looks like desktop search in \Programs\..., incl ...Show All
Graham Kingdon Editing project references in visual studio 2005 project files
Currently, if you add a reference to a project that is outside the folder structure of the current solution, but on the same drive, you will get a relative path in the HintPath of the .csproj file. The only problem we have with this, is that the reference will be to a DLLat an exact location, so switching between debug and release build will still reference the same DLL. I've found that you can edit the HintPath in the .csproj file to use the ...Show All
ravithegreat thanks of answer
sir my question is that how we make or made DLL file You just start's create a product with ClassLibrary template project. Then you can include the classes, user controls, Forms, modules, etc to the class library product. Then build your project. It will creates an DLL file for you project. Cheer. When you create a new project, you can shouce for the Class Library template. Here you have you DLL project. ...Show All
pal0294 how to plot a graph?
Hi, I wanted to plot a graph by reading numbers from a file. How would I actually plot anything Thanks Bruce Hi, Check out the following article: http://www.codeproject.com/csharp/ZedGraph.asp Regards, Vikram ...Show All
GUYO equivalent of split but the separator be a nomber
helo i try to use if exists a method like split but a separator is a number of caractere In that case you can use string strText=" FirstwithSecondcaractereTreewithFoorcaractere "; foreach(string strItem in Regex.Split(strText," caractere ")){ Console.WriteLine(strItem); } Hope this helps!! -Jay thanks for this information but my problem is a split but with a number of caractere exemple st ...Show All
Senthil Murugan Error:Not all code paths return a value
The following method is supposed to get data from database, store them in an array, and then return it. But somehow error of "Not all code paths return a value " occured. Pls help me with this, your help is greatly appreciated! (note:DBClass etc. are class made by me, which works well without problem) public ArrayList querycolidbyupcolid() { try { DBClass db = new DBClass(); db.ConnStr = ConfigurationSettings.AppS ...Show All
