wackyspat's Q&A profile
.NET Development Problems with .Net 2.0 RC Framework and accessing Performance Counters (specifically Processor)
I have written a tool to dump performance counter data from any number of sources to a perfmon-compatible csv file. The problem is... on certain performance objects such as Processor\% Processor Time\_Total.... I get a zero back no matter what I do. There are alot of counters that give me zero back that shouldn't, but at the same time there are alot of counters that give me back what I expect (ie. Memory\Available KBytes). I have checked al ...Show All
Visual Studio Express Editions afxwin.h missing? windows.h missing? What am *I* missing?
I downloaded and installed Visual C++ EE yesterday. I'm trying to compile some OCX example code that came with a vendor library, and it's failing because "afxwin.h" can't be included. I did a search and neither than file nor "windows.h" exist on my machine. What am I missing It's been a while since I've tried to write C++ on Windows machines, but aren't these headers fundamental Why aren't they installed with VC++ How can I get them and the othe ...Show All
.NET Development Program exits without throwing exception
I have a problem that I did not think could occur in the .NET environment. I have a .NET program that when the user clicks on a certain option the program just vanishes. If I run the program inside the debugger it works fine. If I first start the program then attach the debugger to the program then I can reproduce the vanishing behaviour. The problem is that the vanishing occurs randomly depending on where I set breakpoints. I can be stepping ...Show All
Windows Forms a problem in mirrored listview
I've faced a strange problem in the ListView control when I mirror it to support the right-to-left layout. I am talking about .NET 1.1. When a ListView control is mirrored, ListViewItems do the mirroring, but ClomnHeader controls do not, i.e. it kee ...Show All
Visual C# Using OS to open files
I am currently writing an app that extracts files from a database and attempts to open them using Process.Start(); It works fine as long as the file type has an association, but if there is no association, I get an exception. What we are looking to have is for the OS to handle it just as if you tried to open a file from Windows Explorer and the file type is unassociated, you get a Windows Dialog (Windows cannot open this file) What d ...Show All
Visual Studio Express Editions Registration?
I have problems with this, everytime i start VB.NET 2005 Express i have been encuraged to register VB.NET and I have done so everytime I started the VB.NET but i have not got any e-mail but the site that starts tells the email is verified but i have not recieved any email with links to useful stuff, is there some answer to this issue. Best regards Danie Anderssson When registrating via Help->Register product... and after signing in t ...Show All
Visual Studio 2008 (Pre-release) Hosting WCF in a Windows Service?? "No endpoint listening exception"
Hello, I'm working on an ASP.NET application that i want to host using WCF using "basicHttpBiniding" . The hosting should be done in a windows service. I've did a test by hosting the service in a console application (instantiating a ServiceHost in a console application project), everything worked fine. The same project is now transferred to be a windows service, i receive an exception "There was no endpoint listening at http ...Show All
.NET Development Calling a stored SQL Proceedure from VB
K, got some canned proceedures on SQL Server 2005 Express, now any thoughts on accessing them The project is pretty simplistic, but its a learning tool for me. dim IP = ...... 'got this working ok Call dbo.HitTable.Update(IP) ' speculative idea Call dbo.Hitable.Hits() 'more speculation Sorry, never tried SQL from VB before, let along any other tool. http://www.vbdotnetheaven.com/Code/Jun2003/2102.asp I provided this link ye ...Show All
.NET Development Editing a control's content embedded inside a custom column style in a datagrid.
Hi, I have a datagrid and I am using my own column Style to host a custom combo box control. I am facing a problem when I try to use editing commands like shift+-> shift+<- shift home, shift end inside my combobox in the datagrid as the command goes to the datagrid and not to the combobox. I tried Overriding the ProcessCmdKey function in my Combobox class, using this approach I am able to handle most of the editing commands but I facing ...Show All
Windows Forms how to write to .resx in VS.NET form designer? And IExtenderProvider question...
Hi all, I have a component using IExtenderProvider which expands my controls with some properties. I use it also at design-time in VS.NET and like to save some values to .resx file of the form it applies to. I used like this: IResourceService resourceService ...Show All
.NET Development Handling outlook security events C#
Hi, Can any one tell me the way to handle security warnings thrown by Outlook engine, in .NET(C# or vb.NET). I am reading the mail through C#, but while reading it is throwing an warning (" a programming is accessing your mail ...."). How i can stop it from occuring. It can be handled at OS level( handling the thread etc.) also, but how thanks in advance Mohan Bisht You must use the "Office 2003 Editions Resource Kit". http://downloa ...Show All
Windows Forms Binding to a list
Hi, I have developed an application which separates the logic from the UI. I want to expose in the library containing the logic a list of custom objects so it can be bind in the UI. 1. How should I implement the list Because I want the list not to be editable I was thinking to make it a ReadOnlyCollection<T> however I want the changes in the list to automatically update the UI and only a BindingList<T> can do that. 2. I also want ...Show All
Visual C# Get a windows object from its handle
How do I get a windows object from its handle in C# IntPtr pointer = MyControl.Handle // this is fine but how do I .... Control c = GetControlFromIntPtr(IntPtr). Thank you. I had trudged through MSDN, this forum and Google with no luck. I even missed in Intellisense cus I had declared an instance. ...Show All
SQL Server Server Availability
I am in the process of setting up server replication using the Central Publisher Model. We are doing this for application availability. The application is a .NET app and this application uses the SQL Server name in the connection string. As far as I know we can’t have two severs on the same domain with the same name. So if our primary server (server A) goes down and that server name is in the connection string how does the application get r ...Show All
Smart Device Development where can I get .Net SDK on CD. I'm in the UK. I want to write code for my PPC
The MSDN download website says I have the .net framework installed. So it should, I downloaded it. 20ishMeg. Took about an hour to download. I've downloaded VB 2005 Express Edition, took for ever on a dial up connection. Took me 2 days leaving my computer on overnight. How can I get the .NET SDK. Downloading a 300plusMeg file is just not worth the effort. My ISP would not let me stay connected for 14 hours. All I wan't to do is write pr ...Show All
