Toni Greco's Q&A profile
Software Development for Windows Vista DLL registration fails on Windows vista
Hi, i am in process of upgrading a DLL application from VS 2003(Windows 2003) to VS 2005 on Windows vista platform. There is a post build event for registering the DLL. This fails with error code "0x80070005". When i try to register this DLL through command prompt, it fails with the same error code. With reference to all forum discussions, i disabled UAC on vista and tried registering the DLL through command prompt. This time it fails with the error code "0x800703f2". There is absolutely no way i can find out about this new error code on the net. Can somebody help me resolve this P.S. : i am running VS 2K5 as an administrator and also i have administrative privileges for my login. Thanks in ...Show All
Visual Studio Express Editions How do I highlight only the numbers...
Hey… I have TextBox1 formatted like this: TextBox1.Text = Format( Double .Parse(TextBox1.Text), "$ ###0.00" ) How do I highlight only the numbers in TextBox1 when the control gets the focus Best Regards Cathrine If you know regex good, (which I don't.) There is an excellent example program at http://www.thecodeproject.com/vb/net/tarrorichtextbox.asp title Background Highlighting with the RichTextBox the System way. I downloaded the program and VB Express upgraded it with no problem. The code still shows warnings, but no errors, and runs fine. ...Show All
SQL Server MSDB database grows too much even though its empty.
In my SQL Server 2000 msdb database I have several DTS and a few jobs. I also do backups daily. All this should make the msdb grow but I've removed most of the logs and histories and, still, the database is almost 1Gb big. The log file is almost at 0. It is the data file that ocupies the whole size. I'm thinking it must be some kind of corruption of a table so I ran dbcc checkdb, checktable, cleantable, checkalloc, dbreindex and indexdefrag. Nothing seems to work in order to make it smaller. Any ideas Thanks Hi Marcos, After you deleted all the history. You will need to shrink the data file if you want to make your database smaller in size. You can use DBCC Shrinkfile command for the above. ...Show All
Visual Studio Team System Deleting Work Items
Is it possible to delete a work item I know that normally I don't have to delete work items but sometimes mistakes can happen. Is there a possibility to delete the saved work item or to make it no count in reports Thanks, George Homorozeanu. Hi George, You cannot delete work items in this version of TFS. You can however customise your work items so that they have a "deleted" state so you can effectively set your WI's not to appear in your required reports. Check out these series of posts on the subject: http://forums.microsoft.com/MSDN/Search/Search.aspx words=delete+work+items&localechoice=9&SiteID=1&searchscope=allforums ...Show All
SQL Server Predicate or key word all in uppercase?
Hi, What is the dowside of not using all uppercase for predicates and key words I cannot find to see a problem beside adhering to a clean coding convention. After all I already have color coding so what would be the uppercase for Same question for the semicolon ; at the end of a sql block. Is that real necessary not to get in trouble sometime down the road or is it a non-issue. I find like I am now a C# guys if I use these ; Just curious, I find tedious to switch from all upper case to normal case all the time. And not forget to type the ; Thanks, Philippe Our deprecation policy is fairly strict right now in the sense that we make announcement first in version N, then warning in version N ...Show All
Visual Studio Tools for Office Using Excel as a front end for data entry
I am interested in using Excel 2003 as a front end to enter data into an Access database using VSTO 2005. Can anyone be so kind to point me to some sample code or URL where I can get somemore information. I went through quite a number of examples on the web, but they all show data binding to display data. I need some help in writing code to enter data into a relational database. Thanks in advance. I am using the exact code as above. Me .ProductsTableAdapter.Update( Me .NorthwindDataSet.Products) When I enter this code I get "Update is not a method of Sheet1" Thats as far as I can get. The debugger will not allow me to run. Help. There is very little about this issue available. I hav ...Show All
Visual Studio Express Editions Show what is going on faster
When I have a program doing something that takes a few minutes, I like to show them the status, so they know that it is not locked up. The progress bar is a pretty good solution, if you know how many 'things' there are. The label and text or even button text works, but slows the program down quite a bit when it is refreshed. A very unique solution I have found is to create a new window form. Remove all the buttons from it, lock it into the top view (always on top), and resize it so it JUST shows the title bar. Make it invisible. Now, when you need it, call it as shown: dim fr as new formname fr.show fr.text = "Loading record " & record & " of " & totalRecords fr.refresh Update it when y ...Show All
.NET Development WSE2202: The stream is not in a valid format
I have a server running WSE 3.0 and when I test our client against these servers I occasionally receive the "WSE2202: The stream is not in a valid format" fault. I understand that this is related to the MIME formatting but have been unsuccessful in determining what exactly causes this error by going through the incoming packets. Any suggestions/help/pointers would be really appreciated. Arjun ...Show All
Visual Studio URGENT: Cannot pass Parameters into WebForm??!!
Please assist with the following code I have been racking my brain for a week and cannot figure this out. This code works for me in my WinForms but using a Crystal Viewer in a WebForm I cannot pass parameters - at all. If I run a test report with no parameters it runs just fine. Db is Oracle 9i. Any help whatsoever is appreciated. Dim CrystalDecisions.Shared.TableLogOnInfo crTableLogonInfo as New CrystalDecisions.Shared.TableLogOnInfo() Dim CrystalDecisions.Shared.ConnectionInfo crConnectionInfo as New CrystalDecisions.Shared.ConnectionInfo() Dim CrystalDecisions.CrystalReports.Engine.ReportDocument myreportdocument as New CrystalDecisions.CrystalReports.Engine.ReportDocument() ' Assign logon information crConnectionInfo.Us ...Show All
.NET Development html in dotnet??
I'm using the googleapi to add more flexibility to searching google from a vb.net app I'm writing. I get a stream of html data back from google that has a title such as "The <b>best</b> ..." then I get a URL, then a snippet of information about the topic which may or may not have html included. My problem is how to display this Is there no control that can display html data I could use the webbrowser, but then I'd have to save the file out to an html file on disk and I'd rather avoid that if possible (just seems messy :) ), or is there a way that I can write a URL to the webbrowser as html text (as opposed to having it navigate to the URL) without having to print it out. I tried textbox, label, richtextbox etc, but no ...Show All
SQL Server Inserting XML values
" Insert Into...Value" seems to be the command for inserting new data into an XML Doc. I have also seen people using "Insert...Value" without the "Into" keyword. Is there a difference between "Insert" and "Insert Into" ...Show All
.NET Development specifying credentials for reading file from UNC path
Hi there; My question revolves around connecting to an UNC path and reading a file there. I'm using VS C# 2005 Express and c#. Importantly, I need to be able to programmatically specify the username and password for this connection; the logged-on user most likely will not have the requisite permissions. p-code: string strUser = bob; string strPass = bobspassword; Streamreader readme = new StreamReader ( @"\\server\share\path.txt", strUser, strPass ); while ((line = readme.ReadLine()) != null ) { process lines; } readme.Close(); The highlighted bits are where I'm confused. How do I specify the credentials to go get the file I'm used to specifying credentials for WMI via Co ...Show All
Visual Basic COM subprocessing model for Framework 2.0
hi everyone, Primary platform is Framework 2.0 Does anyone is awared with total security about of which are the COM subprocessing model per every .Net Application Another day, I read that Console application are running by default as STA instead of MTA (as I though). In a fact I had problems with a Console Application due to it did P/Invoke calls. Once I allocated MTA over Main() everything ran fine. Application Windows is MTA or STA. Or is STA if you call old Visual Basic 6.0 controls Let me know. As time goes by requirements are forcing us to migrate old VB 6.0 and, you know, strange mutations are waiting for us... Thanks in advance for your time, Mattias, It's ok but at first ...Show All
Microsoft ISV Community Center Forums How do I display my computer name?
Hey, How do I, with code, display my computer name Best Regards Cathrine Hi, You could tip into the Windows API. Private Const MAX_COMPUTERNAME_LENGTH As Long = 31 Private Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long Public Property Get ComputerName() As String Dim dwLen As Long Dim strComputerName As String dwLen = MAX_COMPUTERNAME_LENGTH + 1 strComputerName = String(dwLen, "X") GetComputerName strComputerName, dwLen strComputerName = Left(strComputerName, dwLen) ComputerName = strComputerName End Property ...Show All
Windows Forms Progressbar WinForm popup
How can I make a progress bar popup in C# WIN form when a button click event has raised and close it when my code has gone to a certain point Hi Sibusiso I couldn't understand why you're doing this. Would you please tell me what is it for, since it works right for me And I don't believe this to be a good solution ! -- cheers farshad ...Show All
