MiamiwithError25015's Q&A profile
Windows Forms make listbox accessible outside of form
I have an app that uses a listbox to display program status messages and a function in a class other than the form needs to be used by the solution to update the listbox. I do not know how to make the listbox public so it can be updated by that function. public class frmMain : System.Windows.Forms.Form{ public System.Windows.Forms.ListBox listBox1; I would lik ...Show All
Visual Basic Procedure For Creating A Registry Key
I have a problem on creating a registry dynamically. For example, I want to create a registry using a procedure with an arguments asking a registry root value where I want to write a key. In my Visual Basic code, it looks like below: Public Sub RegCreate_A_Key( ByVal lRootKey As Long , _ ByVal sRegKeyPath As String ) Dim lKeyHandle As Long &n ...Show All
.NET Development ADODB.DLL Command Output Parameters
Hi, Having probs with ADODB.DLL (C:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll) Here's one issues I'm seeing with the following VB code if you use CreateObject calls it works and I get a return parameter back. If you use the ADODB.dll (Replace the createobject lines with the commented out Dim x As New ADODB.xxx) then I can't get back output params. NOTE: To replicate this create a console app, replace module1 with following and add a reference to adodb.dll. Then Make a DB add the sproc below and put your DB and user in the connect string. Thanks in advance for any help. Is anyone actually using ADOD ...Show All
SQL Server How to import cube definition from SSAS 2000 to SSAS 2005
Hi. I have a SSAS project CAB-file created in SSAS2000 and would like to import/convert it to a SSAS2005 project but I can't find any way to do this... Does anybody know how this is done Any suggestions would be greatly appreciated! Regards Kjetil AS2005 won't read the backup files produced in AS2000, but AS2005 comes with MigrationWizard.exe that can be used. You will need to: - have AS2000 running and containing the database you want to migrate - run MigrationWizard.exe, specify the source AS2000 and then you can decide to migrate directly to an AS2005 or to just generate the migration ...Show All
Visual Basic lost object reference after sort
Hi All, Who could help me sort out this problem It seems that an object reference is set to null after sort! Probably a mistake from my part, but still a mystery. If some one can take a look on this piece of code . You can observe that the msgbox - following the sort -although identical to the one preceeding the sort- triggers an error"Null Reference Exception was unhandled. Object reference not set etc." ******************************************************************************************** Public Class Form1 Public objData() As Part = New Part(2) {} Private Sub Form1_Load( ByVal sender ...Show All
Visual Studio Team System TeamFoundationServerFactory.GetFactory
I downloaded the VS Studio Team System Extensiblity Kit and I am using the TeamFoundationServerFactory .GetServer method to get the team foundation server. I am getting an error accessing registry key because I suspect the teamfoundationserver did not have the permissions to access the registry. Even when I try to pass in the default credentials using the following code, I am still getting the registry key error: System.Net. ICredentials teamFoundationCredential = System.Net. CredentialCache .DefaultCredentials; TeamFoundationServer tfs = TeamFoundationServerFactory .GetServer(server, teamFoundationCredential); I would reall ...Show All
SQL Server MS SQL Server 2005 EE & MS SQL Server 2005 Express Manager
I recently installed SQL Server 2005 Express Edition CTP (It appears to be working fine). I then found the SQL Server 2005 Express Manager, and tried to load it, but I keep getting the error: This computer must have at least Windows 2000 SP4 and the user must have administrator privileges in order to continue. Also, you must first install the SMO Components and the .NET Framework version 2.0. Well, the machine is Windows XP Pro SP2 (fully patched), the account I am installing with is a member of the local admin group, my machine has both .Net framework 1.1 and 2.0 loaded (could this be the issue ). I guessed that installing 2.0 would upgrade ...Show All
Visual Studio Maximized microsoft document explorer window in VS2005
Is it possible to always open document explorer maximized If maximized once, it works fine during a VS session, but still opens using its default size/pos when exit and re-run VS. Thanks for reporting this issue. We have fixed it for the to-be-released version of Visual Studio 2005. For Beta 2, the best workaround is to manually resize Dexplore to be the size of your monitor. Although it won't be in the true "maximized" state, it will be a close approximation. The final release of Visual Studio 2005 will contain the true fix. Thanks, Jeremy Jones ...Show All
SQL Server hiding "Change Credential" link
Is there any way to hide "Change Credential" link comes in browser I cannot change the credential type, It will be "Prompt" only as i am passing connection string and Credentials via URL. What you are doing may work in the current version, but it is not a supported mechanism for changing the viewer. The html structure may change in a future version or service pack. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Confirmed Bug in DirectX SDK with Visual Studio 2005
Just a heads up for anyone using the DirectX SDK with Visual Studio 2005. A bug has been identified and confirmed concerning the DirectX Extensions for Visual Studio component of the DirectX SDK and Visual Studio 2005. Short Description: Installing the DirectX Extensions for Visual Studio component of the DirectX SDK breaks the Class Designer in Visual Studio 2005. The VS Shell team and the DirectX SDK team is aware of the issue. Here is the forum history on this from the Visual Studio Class Designer Forum: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=206455&SiteID= ...Show All
Visual Studio Team System TeamBuild Error If Website Has Impersonation in Web.Config
Hi, I have a solution with a class library that references some assemblies using file references. The solution also has a website that references the class library using file references (team build doesn't seem to handle using Project References). Visual Studio puts them in the website's bin folder and Team Foundation wants them checked into version control. If the website's web.config has an impersonation entry, teambuild fails with: ASPNETCOMPILER : error ASPCONFIG: Could not load file or assembly 'CSLA, Version=2.0.2028.16990, Culture=neutral, PublicKeyToken=2dc6bfd73b1fe182' or one of its dependencies. Access is denied. If I comment ou ...Show All
Visual C++ how to save html file in VC++
hi, i want to save a html file from my browser. i have created my own browser and want to save the html file.. i have used ACTIVE X controls to make my own web browser(same as IE).. it should be like that of SAVE AS option of IE.. plzzhelp.. Just Google. I C++ i don't know. You need to code yourself and learn how it is working. Sometimes it is hard work :-) Bye Martin ...Show All
Windows Forms Problem with datagridview in VS2005 (C#)
Hi, I've implemented a datagridview in a form and have create the event RowEnter in order to catch the events when changing a row, in this event i output the currentrow index. This works however i remark some strange behaviour. When launching the form the currentIndex is 0 (thus the first row). When i navigate towards the 2nd row the event is launched however the row index remains the index of the previous one. And this behaviour remains while i further navigate in the datagridview. Did i use the wrong event for outputting the cell value of the row that is selected on the screen Tnx in advance for the answers, Kind regards, In your ...Show All
Windows Forms Windows form ??
Hi, I have a question regarding Windows form application. My application has to implement a feature which is similar to Excel. Here is what Excel does:- I launch two instances of Excel. In each instance I open up the same file. While opening a file in the second instance Excel gives me a choice to be notified when the file becomes available for read/write, I select OK and it opens the file in readonly mode. Then In readonly instance I go and select cell format dialog and leave that instance keeping dialog open. Then I go to the first instance which opened the file in readwrite mode and close the file and the instance also. Then in t ...Show All
Visual C# Question on How to Import CSV file into SQL Express
Greeting, Any comments would be welcome Thanks a lot~ By the way, I am using Visual Studio 2005 and SQL Express 2005~ how do I read the CSV file and put into SQL ...Show All
