Brunoo's Q&A profile
.NET Development NullReferenceException when calling PerformanceCounterCategory.Exists(categoryName)
I am experiencing an odd error in one of my applications where I randomly seem to see NullReferenceExceptions when I call PerformanceCounterCategory.Exists() with a non-null category name. I am working with version 1.1 of the .NET framework. I have verified that passing a null or empty category name would generate a different exception, so I am pretty certain that the problem is NOT that a "bad" parameter is being passed to this method. Has anyone seen this behavior previously and have any idea what might be causing this exception I have multiple copies of this application running, and they are each updating counters in ...Show All
Visual Studio Express Editions Working and saving as VB 6.0
I have an assignment to do and one of the hand-in requirements is that the files submitted are Visual BASIC 6.0 only. I don't have Visual Studio 6.0 available to use, but I do have Visual Basic Express Edition so I'm wondering how do I run VB Express in BASIC 6.0 mode, and so that it will only save files at 6.0 At the moment I load up old files and it converts them to VB 2005, adding code I'm not familiar with, so that's not what I want. Many thanks hi, i don't think this is possible to convert code from visual basic.net to VB 0.6 using VBEE IDE , it just convert code in one way and no way to go back ...Show All
Visual Studio Team System GUI regression tests with Visual Team System
Hello, We are currently searching for a testing tool to perform functional regression tests on our GUI application. For the moment, we developing with Borland C++ Builder 6.0 but we are going to make the transition to Visual soon. We don't want to purchase a tool if Visual Team System offers a way of testing the GUI. Currently, TestComplete from AutomatedQa seems a good testing tool. Would it be useful to use this tool with Visual Team System And what would be the advantages, meaning what would it permit us to do that Team System cannot Thanks for the information! Here is the soluti ...Show All
Visual Studio Express Editions Databases!!!
Hello, I have a problem trying to connect to an Access Database, the problem is that I want to make a working project without thecontrols, I only need the source code to do that. I would like to know about working with databases without using the bindingnavigator, how can i do that. I don't know, please help!!!:D I imagine the code in this article will cover what you want to know, there's lots of similar articles on that site as well: http://www.codeproject.com/vb/net/atcl.asp ...Show All
Windows Forms determine Smart Client app deployment strategy
I'm new to Smart Clients ... I've inherited a Smart Client application written in Visual Studio 2003. How can I determine how the application is intended to be installed on clients How does the user get to the app currently If thru a webpage, it may be Click-once, I think thats what it is called. If so then the apps EXE and ...Show All
Visual Basic Radio Buttons within frames
I am trying to set several frames with radio buttons in each frame. I currently have two frames with 3 option buttons in each. I have the understanding that I can have one button in each frame with the value set to true. I can not make this work. If I select a button from one frame then go to select an other option button from the other frame the previously selected option button becomes selected. I have tried recreating the buttons and frames and nothing seems to work. If you know of something that I may be doing wrong please let me know otherwise let me know how to perform this. Thanks Derek Ensure that the autocheck property of t ...Show All
SQL Server Cannot open database
My mdf file was deleted. I was able to restore the said file but unfortunately I can no longer open it. I have also noticed that the recovered mdf file was smaller than the file before it was deleted. What can I do to open the database file I have tried the following lines using osql utility. 1> use db1sql1 2> go Msg 946, Level 14, State 1, Server JDI11-31, Line 1 Cannot open database 'db1sql1' version 525. Upgrade the database to the latest version. Hi Paul! I got the following message upon execution of sp_attach_db. Msg 5180, Level 22, State 1, Server JDI11-31, Line 1 Could not open FCB for invalid ...Show All
Visual Studio Team System deleting a workspace from a specific repository
in the process of uninstalling and reinstalling VSTF on my server I have created a small problem with my workspace mappings that I am having trouble resolving. Basically, I want to wipe out the workspaces for a given user, so I tried this: h.exe workspaces (to see what workspaces existed) it outputs something likes this: Repository: dpmserv1 DPMSERV1 <domain>\<user> DPMSERV1 Main project workspace Repository: http://DPMSERV1:8080 DPMSERV1 <domain>\<user> DPMSERV1 It seems as though I have 2 workspaces of the same name (and user) for 2 different SCC repositories (only 1 of the repositories ...Show All
Windows Forms Validation issues (save and new items)
I implemented validation on my form overriding the OnColumnChanging of the underlying datatable. While this worked ok whenever I step on the control (let's say textbox), put an invalid value, and leave the control, it didn't worked in another scenarios: * I want the validation occurs hen I press the Save button * When I do an AddNew on the BindingSource, ColumnChanging event is never fired, so validation does not occur How can I solve these issues Thanks, Matias Any word about this I've just did a proof of concept with the Customers Northwind table. I've overriden OnColumnChanging with this: ...Show All
Visual Basic Retrieving Hard Drive Temperature (S.M.A.R.T)
Hi, Does anyone know how to retrieve the temperature of a hard drive in Visual Basic 2005 The temperature can be retrieved from the S.M.A.R.T information, but I don't know how to do that in Visual Basic 2005. There probably is a way, but unfortunately, I don't know. If anyone could help me with this, it would be great! --daniel15 http://www.dansoftaustralia.net/ - DanSoft Australia http://www.frihost.com/ - Free Reliable Internet Hosting Hello, I am unable to fetch the values using this code. It is raising the exception saying "Not Supported". I had tried to use WMICreator utility ...Show All
Windows Forms Autocomplete speed/delay
Hello, It's strange how "little" UI features really annoy the users. We're producing a large .NET Winforms application. It uses VS2005 Combobox autocomplete. The main complaint is that the autocomplete "restart" delay is too quick (pause to think and the autocomplete times out, and restarts...) Does anyone know how to control the time delays in autocomplete (time between keypresses to restart the autocomplete search for example) Thanks, Dr Michael Dye I can't believe it's been over a year since I posted this; and no, we're no nearer to a solution. It's something people have ...Show All
Windows Forms SqlClientPermission
OK.....I have been searching and haven't found much helpful info on this topic. I am hosting a winform (user control) on a website. The form makes a call to a stored procedure...: Public Function getxxxxx() as dataset Dim sqlCmd As New SqlCommand Dim da As New SqlDataAdapter ...Show All
Visual C++ Help Errors
First of all I have no idea on the forum where this is suppose to go so forgive me if it is the wrong place. I have been trying to compile my programs but i keep getting these same errors everytime. Compiling... stdafx.cpp C:\Program Files\Microsoft Visual Studio 8\VC\include\winnt.h(3043) : warning C4103: 'c:\program files\microsoft visual studio 8\vc\include\winnt.h' : alignment changed after including header, may be due to missing #pragma pack(pop) C:\Program Files\Microsoft Visual Studio 8\VC\include\winnt.h(3335) : warning C4103: 'c:\program files\microsoft visual studio 8\vc\include\winnt.h' : alignment changed after including header, ...Show All
Windows Forms Form Distortion
I have three VB.net forms on my desktop - One program only runs Monarch which opens it's form on top of the forms. This causes distortion in the other forms.(part of the Monarch Form imprints on the vb.net forms) Is there a way to prevent this from happening Make sure when Monarch is ran that it doesn't suspend the thread. Can you post the part where Monarch is launched ...Show All
Smart Device Development secure transfer + tips
Helo, [scenario] synchronising pda's with server If there are errors in the post below, plz tell me also I think ssl is the best way, to use. Because it does authorisation and encryption of the data. What do I have now Apache server2 with mod_ssl installed (own) X.509 certificate on the server (because it's only for max 20 persons) I can reach it via https with the browser.;) So I have read on the forum that if I now try to use the webservices, it won't work because of the certificate. (not tested yet) This can be solved with something like th ...Show All
