Hawk390's Q&A profile
SQL Server Getting the data type of the IDTSCustomProperty90 object
Hello, I want to get the datatype of the IDTSCustomProperty90 object which I get from my IDTSComponentMetaData90.CustomPropertyCollection. I tried IDTSCustomProperty90 .ObjectType.GetTypeCode() and I get Int32 for all properties. How do I get the data type for each property in the custom property collection. In case of a control flow executable I simply get it by calling DtsProperty.Type (the Type property). Hence I guess there has to be something which will give me the data type of the custom property as well. Thanks -Suri The Integration Services development team has al ...Show All
Visual C# Tips on posting
Here are some tips on posting, so that your questions could likely be answered quickly. 1. Make your Title as significant as possible . Compose it in a way that you would ask an expert. example - "How could I change a Buttons Background " instead of "button background problem" 2. Explain in detail the nature of your dillema . But please make it short, straight to the point but descriptive. 3. Provide steps on reproducing your problem . So that other posters could replicate this on their pc's and thus find a quick solution. 4. Also, provide a Code Snippet where you think is causing the problem . This is a common situation that ...Show All
.NET Development Getting the type of a value entered in a Textbox?
Hi there, Well, i'm using VB.NET2003. I'm trying to get the datatype of a value that I've entered in a textbox, and according to the value the resultset returns, it must validate to see if the value are in fact numeric, or an integer value, if it's anything else, I want to notify the user that the value entered are in fact not a valid entry, and that the value must be re-entred. If someone can please help me. Thanks SJB The text in a textbox is always a string irrelevant of what the user typed in. You need to convert the string to a numeric value using Convert.ToInt32 or Int32.Parse. Of course ...Show All
Windows Forms datagridview and dataset.table rowindex don't match
Hi everyone, using VS 2005 C# I have come across a problem, I have a windows form with one datagridview control binding to a dataset with a doubleclick event. The problem is datagridview rowindex matches the binding dataset.table index, as long as I don't click on one of the column headers to change the datagridview sort order. Then the two indexes do not match e.rowindex on a CellDoubleClick event, because I delete a row from the database, the database drops the wrong row. But if I delete from datagridview it's self with sorted colums it does drop the correct row from the database. So datagridview does track datagridview row.in ...Show All
Visual J# user.dir for Microsoft Java VM
Is there any way to set the default working directory (system property user.dir) for all Java applications run on a system (via a registry key, etc) I know how to do it programmatically for one application, but I'd like to make the setting apply to all applications running on a workstation. Any help is appreciated. Thanks! James Hi Jaiprakash, 1. Sorry I'm fairly new to the Microsoft VM, so I'm not sure if I'm answering this correctly. I'm not actually doing the development, I'm trying to support a 3rd party Java application. More specifically it is a web application using Java applets running in IE. Our vers ...Show All
.NET Development Removing IIS site port from WSDL
Due to the arrangement we have with our firewall, our IIS server sits behind our firewall and hosts websites on different ports. When requests come though the firewall for different URLs, the firewall handles these and passes them onto the appropriate sites by their port. This is fine for everything but web services. When you try to capture a web service on a site behind the firewall, for some reason the WSDL keeps putting the port of the website in IIS in the path, and as a result, gets blocked by the firewall (because all requests go through HTTP(S)). How can I prevent the WSDL file from automatically adding the port to the web servic ...Show All
Visual Studio Team System "Process Hook Failed" with Performance Explorer when using sampling on a specific app
I've successfully used sampling with Perf Explorer on my app in the past, maybe a month or two ago. And I can use it successfully on several OTHER applications. I can also instrument, although it's too slow for my current needs- However, currently if I either launch or attach to the process with sampling, I receive a "Process Hook Failed" error. In Output, it successfully attaches, and then immediately exits. Any ideas I've searched in vain for any mention of this error message, and am now at the point of just randomly twiddling things to see if I can get it to work again. thanks! ...Show All
Visual C# How to play sound from resources?
I can play MySound.wav from my disk, using SoundPlayer media= new SoundPlayer (@"c:\MySound.wav"); media.Play(); But i want this sound was included to my program. I add it to resources. but SoundPlayer media= new SoundPlayer ( CsApp.Properties. Resources .MySound); media.Play(); doesn't work... I added tada.wav (X:\Windows\Media\tada.wav) to resources. This code I added to Form_Load event: Stream str = Properties.Resources.tada; SoundPlayer snd = new SoundPlayer(str); snd.Play(); ...Show All
Visual Studio 2008 (Pre-release) Scaling StrokeThickness problem
In a previous thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=211255&SiteID=1 I was asking about the problem of the StrokeThickness scaling for engineering drawings, etc. I have tried several workarounds and all require each child of the canvas to have its StrokeThickness value altered to 1/Zoomfactor. This takes too long for the number of elements in a drawing leading to noticable delays when, for example, changing the zoom with the mouse wheel. Does anyone know if MS is going to have a modifier to disable scaling or e.g. a StrokeThickness of 0 to force a one pixel stroke, or similar Does anyone know of a ...Show All
SQL Server SQL Server 2005 Management Tools
I have recently set up a MS SQL Server 2005 x64 Standard server and am looking to migrate my databases over. Before I started this process I put the dvd into one of my clients and when i click the 'Server components, tools, Books ONine, and samples' i get an error '%1 is not a valid Win32 application', can i not install the tools on client if they arent x64 compatible This cant be right... please help! Let me see if I have this straight - - You have the x64 CD. - You have installed the x64 SQL 2K5 on the server, which is x64. It works properly from there. - You are attempting to install the client tools on 32-bit systems. If ...Show All
Visual Studio Team System Can I specify Multi-valued Parameters in a (custom) Valudation Rule?
Suppose that I want to specify multiple RuleParameter with same name, but with different values. Is there any way to do this E.g. (example!) <RuleParameters> <RuleParameter Name="FindText" Value="(Regex1)" Operator="AND"/> <RuleParameter Name="FindText" Value="(Regex2)" Operator="AND"/> </RuleParameter> public class MyCustomRuleRegEx : ValidationRule ............ Parameter names need to be unique. If you are writing a custom rule, you would need to pass in a delimited string to one parameter and then parse the string int ...Show All
Visual Studio Team System Debugging Custom Template Wizard
I am building a custom template wizard as suggested in http://msdn2.microsoft.com/en-us/library/ms185301 How can I debug it Thanks, Pierre Just attach a debugger to the instance of visual studio where your wizard is running. Make sure you have the .pdbs etc, and everything should be fine. ...Show All
Visual Basic How can I access the audio equalizer level information?
Anyone know of a way to access the levels for pitches of whatever if playing out of the speakers Every audio program seems to have those little bars bouncing up and down in realtime so it can't be too hard, right I actually need them in number form because I'm writing a program that uses basic pitch levels to identify non-dynamic sound files when they're played (don't ask, it's a long story but it will work, lol) I'm sorry, but I believe before anyone can assist you, you're going to need to supply a lot more specific information, such as what class or XP you are talking. Are you speaking of an equal ...Show All
SQL Server Combining text data rows
I am working with a database derived from text documents. One of the tables (TEXT001) contains the text of the documents with each paragraph of each document assigned to its own row with a paragraph number in a SectionNo column. I want the entire text of each document in a single row with its own unique number (so that I can do a full text search with SQL Server 2005 that will search and return the entire document as a result). How do I combine the rows with the same DocumentID into a single row of text data This will put the entire text content of each document in its own row. TEXT001 table as it is Documen ...Show All
Smart Device Development Bring form objects to overlay over topmost form
I am working (C#) with navigation software that creates a native form with the map etc. On PC this form is created inside the existing program form and it is possible to bring things such as buttons infront of the map. On PocketPC this is not the case. Forms are independent and to view the map i have to hide the first form. Anyway around this Is it possible to get control over the form the navigation library created (On full framework there is the Form.fromHandle, although it didn't work) Yes the window belongs to my process. I create a COM object and call functions that create and show the map window to whi ...Show All
