Razgriz Ace's Q&A profile
SQL Server Teradata data extension question
I recently installed the Teradata .NET data provider and I am trying to use named parameters and multi-value parameters in my SQL. I am finding information on this topic hard to come by. In order to get parameters to work do I need to write my own Teradata data extension from scratch, expand an existing data extension to work with Teradata, or can I simple edit my .config files to point to a generic extension wrapper already existing Thanks! You need to implement a custom data extension. In order to have named parameters working, you need to implement your o ...Show All
Visual Studio Tools for Office Outlook 2003 VSTO plugin doesn't run
I've built a custom attachment zipper upon the BusinessContactAssisstant solution. Program runs fine when starting Outlook from the debugger. I've build an installed based on existing one to install into custom folder (program files\magicZip). Application is successfully installed and folder created. When starting Outlook from outside debugger, the magicZip is not loaded, tools/options/other/advanced/com addins shows that a runtime error occured. Funny thing is that the com add-in panel in outlook displays program files\microsoft\vsto as folder. I have no clue what might be the problem- any ideas Thanks, Andi ...Show All
Smart Device Development Listbox Horizontal Scrollbar
Hi guys, I've been trying to have a horizontal scrollbar for my listbox, and I came across this C# code at http://blog.opennetcf.org/ayakhnin/CategoryView.aspx category=ListBox%20extender and tried to convert it to VB.Net. Can someone help me out with this I've errors on underlined line of code which I can't figure out what's wrong with it. Thanks in advance. Imports System Imports System.Windows.Forms Imports System.Runtime.InteropServices Public Class ListboxExtender Private _listbox As ListBox Private _handle As IntPtr ...Show All
Windows Forms Extender Provider
Hi Guys, I recently implemented the IExtenderProvider interface for type control. Here is the problem. I have provided two properties. string Text Color BackColor Now when I drag my extender provider into the form and then drag a button. The button displays no text. Under the properties for the button, the Default Text property of the button is nothing but the Text p ...Show All
Visual Studio Team System Mapping between FxCop Rules and .NET Design Guidelines
Is it planned to implement a mapping between FxCop Rules and the "real" MSDN .NET Design Guidelines (Could be a table on some web page or something in the FxCop CHM). Regards Micha The version is identical to the standalone release, with the caveat that there is some difference in the rule set. The spelling rules are missing from VS and VS contains a new assembly for Maintainability rules that don't ship in the standalone. Custom rules development is an officially unsupported scenario, see the FAQ in this forum. Rules development will certainly be supported in the next VS release. ...Show All
Visual Studio Printing to printer using VS 2005 Web Browser Control error
Hi, I have a simple report that renders correctly in the Web browser Control of Visual Studio 2005. However when I press the print button I get the error: "An error occured trying to get the current window" It then follows on with an Internet Explorer Script Error 8007f305 If I get the report to render in a seperate form i.e Windows Internet Explorer using webBrowser.Navigate(textBoxUrl.Text, true ); then it works fine. Any help would be appreciated. Thanks Rhys Hi Brian I'm using VB6 with webBrowser control in my win form. so it seems i cant u ...Show All
SQL Server Best Practices Analyzer
Hello, I found in marketing materials, than Best Practices Analyzer is included in installation of SQL 2005. Is it right I could not found it. Any ideas I'm a program manager heading up the next version of Best Practices Analyzer for SQL Server 2005. We are pretty early in the development cycle right now... we'll probably ship second half of this year. Check out this blog post for more information: http://blogs.msdn.com/sqlrem/archive/2006/04/06/570292.aspx . Thanks, Paul A. Mestemaker II Program Manager Microsoft Corporation SQL Server Relational Engine Manageability Team ...Show All
.NET Development How to replace the Img Tag
Hi, I need to replace img tag occuring HTML eg: it contains 5 image tag, i have to replace each image tag with unique image name and the url The img tag in the html file is and the tag to be replaced In HTML File to be replace tag in html <img src="image001.jpg"> <img src="http://url/images/bear.jpg"> <img src="image001.jpg"> <img src="http://url/images/cat.jpg"> <img src="image001.jpg"> <img src="http://url/images/lion.jpg"> how to replace this, max image tag is 5 and min is 1. Thanks in advance ...Show All
Windows Forms Limit number of lines in a TextBox
Is there a simple way to limit the number of lines in a multi-line textbox that wraps I want to be able to look for soft returns as well as hard returns. You know what I really miss I could swear that somewhere along the way before .NET shipped, the Control class had a SendMessage method. Man, that was nice. EM_GETLINECOUNT&nbs ...Show All
Visual Basic Why can't I UNLOAD a form in a comboBox handler ?
I have a problem which I hope someone can help me with, it only takes 2 minutes to replicate. If you have a form with nothing on it except for a single command button you can click on that button and UNLOAD the form using the following code: Private Sub Command1_Click() Unload Me End Sub However, when I try to UNLOAD the form due to a ComboBox event instead, using the following code for instance: Private Sub Combo1_Change() Unload Me End Sub I get the following run-time error: Run-time error '365': Unable to unload within this context Can anybody shed some light on why I can't Unload the form due to a Comb ...Show All
Visual C++ yet another c2248 error
I'm another user (paid ) getting this compile error message now that the project was converted from .net 2003 to .net 2005 this is a show stopper and I need a resolution of some kind so any ideas /help would be appreciated . C:\Program Files (x86)\Microsoft Visual Studio 8\VC\atlmfc\include\afx.h(879) : error C2248: 'CObject::CObject' : cannot access private member declared in class 'CObject' C:\Program Files (x86)\Microsoft Visual Studio 8\VC\atlmfc\include\afx.h(539) : see declaration of 'CObject::CObject' C:\Program Files (x86)\Microsoft Visual Studio 8 ...Show All
Visual Studio Team System "Error 32000. Failed to execute command."
I'm getting a 32000 error installing tfs application server. The error message says " Error 32000. Failed to execute command ." I'm doing the dual server setup. I have all the requirements for the install on the server. Any clue Thanks for the info. It seems that we need the lines before this. You should get like a "CustomActionData" with a long line of the command that was being executed. Can you do a search up from this line and get the first occurance Thanks ...Show All
Windows Forms Windows Constants Posted
I can't count the number of times I've wanted to catch a window message but didn't know to translate the message name to an int. In order to make this easier for everyone, I've created a class which defines many of the common constants and posted it in the samples section. Check it out: <a href="http://windowsforms.net/downloads/gdn/WindowsConstants.zip">http: ...Show All
Visual Studio Express Editions Bad Advice - Don't use Roxio
In the manual install instructions for burning a CD, the instructions on the web http://msdn.microsoft.com/vstudio/express/support/install/default.aspx page say "To install the image directly from your hard drive you will need to install 3rd party software that is capable of understanding *.img file extensions. Popular software programs like Roxio’s Easy Media Creator include a Disk Image Loader application that enables you to mount disc image files in a virtual drive as if they were physical discs in a physical drive" Well, I forked out AU $144 to purchase Roxio's easy media creator, and it doesn't understand what a .img file is ...Show All
Visual C# Equivalent C# statement
Hi, Could any one tell me what would be the C# equivalent for the following Delphi/Pascal statement: IF ((a in [0,1,2]) or (b in [5..6])) THEN BEGIN END; When VS2005 comes out, it still won't have proper sets - BUT Peter Golde, (formerly a Lead Designer for the C# language) has designed a proper library of generic collections for it - and it includes a Set. See http://www.wintellect.com/powercollections/ and the MSDN article: http://msdn.microsoft.com/msdnmag/issues/03/09/NET/ for details. ...Show All
