Andrew Tregonning's Q&A profile
Visual Basic Formatting Currency
Is there any way to format currency as a long string For instance, turning the number $3451.25 into 'Three thousand four hundred fifty one and 25 cents' I am not aware of anything built into the framework. It gets particularly nasty when dealing with globalization issues. I have found the article at http://support.microsoft.com:80/support/kb/articles/Q95/6/40.ASP was relatively easy to modify into VB.Net. Jim Wooley http ...Show All
Visual Studio Express Editions Problem isolating COM reference...
Warning 1 Problem isolating COM reference 'MSWinsockLib': Registry key 'HKEY_CLASSES_ROOT\CLSID\{248dd896-bb45-11cf-9abc-0080c7e7b78d}\Implemented Categories\{0DE86A52-2BAA-11CF-A229-00AA003D7352}' was not imported. EB_Launchpad how can i resolve this warning/error http://msdn2.microsoft.com/ms228225.aspx ...Show All
Visual Studio corrupt project file
I have a custom vspackage and project template file has this ItemGroup: < ItemGroup > < Folder Include = " Copylibs " /> < Folder Include = " Stores " /> < Folder Include = " DDModules " /> </ ItemGroup > After I create a new project of my type the project file's ItemGroup now looks like this: <ItemGroup> <Folder Include="Copylibs" /> ...Show All
.NET Development Error compilation Global resource with ASP.NET 2.0
In my web application, I have a App_GlobalResources folder with somes resources inside like this : GlobalResource.resx GlobalResource.fr.resx GlobalResource.fr-CA.resx When I compile the web application, it give me the following error : /: Build (web): c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\soagop.ui.web\ca2344e4\adbce444\2yng3t2s.1.cs(28): error CS0101: The namespace 'Resources' already contains a definition for ...Show All
Visual Basic suggestion
From inside Visual Studio Basic, at the end of the address bar, there is no ( go ) button. I think there should be one there. I sometimes navigate to websites from inside VSB and a ( GO ) button would be an improvement. Hi Ian, Thanks for your reply. I didn't know this was the wrong news group. Thanks for transfering my suggestion. ...Show All
SQL Server SqlCeRemoteDataAccess Pull issue with ConnectionString
I'm getting an error when attempting to pull some data from my SQL Server 2005 database. It throwing an exception on my strSQLConn string with the following message (please replace <MyServer> with my actual server name: Failure to open SQL Server with given connect string. [ connect string = Data Source=<MyServer>;Initial Catalog=MobileParts;Integrated Security=True ] string localstrSQLConn = @"Data ...Show All
Visual Studio Express Editions How to change key assignments
Can anyone help me wrestle with key assigments in Visual Studio Express. Tools | Options | Environment |Keyboard must be the worst designed dialog to change key assignments I have ever seen, that is, if it is actually designed to do this - I can't even tell. I simply want to make it so that Ctrl-D deletes a line (not cuts it). Are there any tutorials on how to use this dialog anywhere There is no help for that page. ...Show All
.NET Development How to stop the network connection?
Hello everybody, We have a requirement for stopping the network connection. I have tried to use the command "net stop "Network Connections"" but it doesn't work. Would anyone tell me how to realize it Thanks and Regards, Hawkins Hi Hawkins, I'm not sure I understand exactly what you want to do. To clarify, are you trying to come up with a command that will disable your network adapter If so, you may want to che ...Show All
SQL Server Problem installing SQL Server 2005 Express with Advance Services CTP
Hi, I was unable to install the CTP version of SS Express Edition SP1 with Advance Services. The installation failed with the following error message: TITLE: Microsoft SQL Server 2005 Setup ------------------------------ SQL Server Setup could not connect to the database service for server configuration. The error was: [Microsoft][SQL Native Client][SQL Server]Login failed for user 'sa'. Refer to server error logs and setup logs for mor ...Show All
Visual Studio Team System Project heirarchies in TFS
I want to organize our source tree in TFS. We have a few different products and internal libraries. I would like to organize them in the following way: $/Product X /Development /Main /OffShoot 1 /OffShoot 2 /Released /Ver XX RC /Ver XX Golden /Ver XX Beta $/Product Y ... $/Product Z ... Same for product X and Z. At the Group level of Product X I don't want all the thi ...Show All
Visual C++ "site code" "machine ID"
Hi, guys, Do you know how to get "site code" and "machine ID" using C or C++ language thanks a lot. I almost get that the Machine ID is created by some combinations of - The serial number of the primary harddisk - The MAC address of the network card - Perhaps serial numberof CPU (if you can retrieve that) -... Thanks anyway. ...Show All
Windows Forms Determining keyboard key press and mouse key press simultaneously
Hello, all. I've got a tree view. When a user clicks on this tree view, I need to also see if they have the shift key pressed. How do I in a method that handles a mouse click also get the key clicked information for the keyboard ...Show All
Visual Studio External images using parameters
I am trying to add external images to my report, feeding the paths via parameters. Dim params(1) As Microsoft.Reporting.WinForms.ReportParameter params(0) = New Microsoft.Reporting.WinForms.ReportParameter("imageSig", My.Application.Info.DirectoryPath & "\images\sig1.gif") params(1) = New Microsoft.Reporting.WinForms.ReportParameter("imageLogo", My.Application.Info.DirectoryPath & "\images\logo.gif") Me.ReportViewer1.LocalReport.SetP ...Show All
.NET Development Bad Data problem...
Hi all, I have just ported my .NET 2003 project to .NET 2005. No major problem was experienced during the porting. However I am now getting the following error: "System.Security.Cryptography.CryptographicException: Bad Data." Any suggestions on how I can get around this problem A number of sites that I visited suggested deleting all my cookies, this I have done, but I am still getting the same error. Mike55. ...Show All
Windows Forms How a binding source makes updates
Hello, I'm wondering if someone can explain exactly how the binding source resets the bindings to controls. Let's say I have a Parent object that has a child collection and maybe the child objects each of a child collection (so grandchildren). I display a parent property in a text box, and then have a grid display the children and each time I click a child object I display some grandchild information either in some other textboxes or anothe ...Show All
