Wizzie's Q&A profile
Visual Studio 2008 (Pre-release) How to cancel a WCF connection request?
If a WCF connection request will take a long period to excute, how can I cancel it before it is finished. With the Bindings there are SendTimeOut and ReceiveTimeOut properties that can be set. This will throw an exception when timeouts expires. Another way, will be to Close the proxy while the request was made in a different thread and this might leave the communication channel in a Fault state. (Note:I haven't tried this myself) ...Show All
Windows Forms FolderBrowserDialog - Can't select network computers
I'm working on a simple VB app that will allow me to inventory the computers on my network. The difficult part (getting the PC inventory details posted into SQL) is all but complete and now I'm working on tidying it all up. I want to be able to add the above control so that I can select a computer within my network for use within my program i.e. "please select the computer you wish to inventory". 2 things (1) the folder browser control doesn't seem to be able to select a computer rather than a folder, can this be changed and how and (2) is there a way to force the root folder property so that it default to the domain in my network. Any help, greatly appreciated. Cheers, Sumpty It kinda he ...Show All
Visual Basic Combobox
Hello. A question please. At the design time, how can I assign a value to each elements of my combobox Thanks... not sure really but all I can think of at the moment is to have an autocomplete enabled so when the user types in say R, it will show the items beginning with R...just as it is in Windows. something you maybe interested in ...Show All
SQL Server problem when selecting dynamic connection setting
Hello All, I have a SSIS package, desgined in such a way that, there is a table called connection which hold the connection name i.e similar to my DSN connection name & a ID for each DSN there is a unique ID. Now i want if there is a 10 record in the table & i have only 5 DSN connection then i'll work for 5 & for other 5 it 'll skip the process. my task is running success fully for 1 connection. i have used foeach loop container & 3 varibable for that 2 for holding the table value & 1 for refereing the recordset thanks take a example i have a table table1(id,DsnConnectionName,.) table has 20 records. that means there is a information for 20 DSN connection. But my machine has only 5 DSN Connection. ...Show All
Visual Studio Trapping Ascii keypress events.
Hi, I want to handle Ascii key press events in my .Net 2003 plug in. I am able to trap arrow key press events but could not trap the same for ascii keys. There is only one linechange event in text editor, but what if one insert data in the same line.This will not raise any event. Is there any other way to do this. Kindly help me out please. Thanks and regards, Ruhina Parveen. Ruhina, It can't be done with DTE - you need the Visual Studio SDK (formerly VSIP), but once you have that, I describe how to do it for an IVsTextView in great detail on my web site: http://www.ngedit.com/a_intercept_keys_visual_studio_text_editor.html HTH, - Jon ---------------------------------------------------- ViEmu - vi ...Show All
Windows Forms What process locks the file?
Hello, This is probably a newbie question. In my C# program, when I try to delete a file, I get an exception that the file is locked by another process. I would like to terminate the process that locks the file. How can I determine what process has a lock on a file, just based on the file path If you have an example in .NET, that would be super, but if you could explain it in Windows API terms, that will do as well. Thanks for your help! Evgueni PS. I have to be able to solve this programmatically -- sysinternals' tools cannot be used Take a look at this : http://blogs.msdn.com/calvin_hsia/archive/2005/06/02/424586.aspx This may or may not help you, but provides some insight into the problem, atleast.... be ...Show All
SQL Server Log Shipping, more than one database
Hi Folks anyone could provide steps, links, on how to bring secondary online, with more than one database being log shipped thx Toni, It seems that you have two questions - how to bring a secondary online and how to ship more than one database. You can bring a secondary online applying the tlog backup with recovery. To ship more than one database, you just specify them all when configuring log shipping (right click database properties and select log shipping tab). Regards, Matt Hollingsworth Sr. Program Manager Microsoft SQL Server ...Show All
.NET Development How to do image conveting
Hi guys I need to be able to convet image types on my web server can anybody tell me how best to do this Paul The easiest way is to load the file with the Image class and then save it again to a new file while specifying the format you want: System.Drawing. Image image = System.Drawing. Image .FromFile( "originalFile.jpg" ); image.Save( "convertedFile.png" , System.Drawing.Imaging. ImageFormat .Png); ...Show All
Visual J# JDK1.4 to J#
What are the compatiblity issues that one face while recompiling the java code base (written using JDK1.4) in J#. Can somebody point to the classes that are not supported in J# and supported in JDK1.4. Thanks in Advance. Comparison result between Visual J# and JDK1.4 is in the following URL. http://www.ujihara.jp/CodeTips/VJSharp/code/jdk14-vjs20.html It was made using JSAPITools < http://sourceforge.net/project/showfiles.php group_id=151482&package_id=177488 >. ...Show All
Visual Studio Express Editions Hex values in textbox to send out serial com1 using an array.
I am trying to write an application that sends serial data out com1. The data is entered in to a 'textbox' then you press the send button. An example would be send: 1f ff af 01 55 // These are all hex values. I have a string of hex values to send out the port to turn on a LCD projector but I want the ability to change the string, that is the reason for the textbox. I can setup an array and load the values manually then compile but like I said I want to be able to edit. My problem is with the array load. The method I am using is: byte [] myArray = { byte .Parse(textBox4.Text, NumberStyles .HexNumber) }; This will load the first byte but I can't load any other data or I get a format error. I need to be able to load e ...Show All
Visual Studio Express Editions System Tray
I am total newb here, but have done VB6 for awhile. For VB 2005 express, anyone know how to set a program into the tray when pushing the minimize button, then when user double clicks the icon it will pull it back up See if this helps.... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=381830&SiteID=1 ...Show All
Visual C++ Find current active task/document
I want to determine and track the active tasks of a user on a local PC - programmatically of course. It would be nice to get notification of a user switching tasks. I'm not interested in Windows services, just in the tasks that appear on the screen. For example, it would be useful to be able to record that a user was looking at a file with MS Word (and record the filename, username, time and date). I don't know what Win2K features exist to allow me to do this. I don't need the exact code; just direct me to the documentation for the method. If there is some terminology that is commonly used for this, please let me know and I'll query the www for the terms. Thanks. I use the term applications instead of tasks ...Show All
Visual C++ random numbers
I have recently been trying to get the random number generator that comes in the default libraries to work.. I can't get the rand() to acctaully create a real random number to my wanted parameters. For example if I say wanted a number between 1 and 10 I would try: int random_value random_value = (rand()*10)+1 I would then be able to use that random number for switch processes etc. The problem is that the number is not random, the random number is always the same, with any one particular seed. Please is there another easier way of creating random numbers that are really random. I believe that it is possible to use the date as a seed which is always different, but I want a random number between 1 and 0 so t ...Show All
Visual Studio Tools for Office Word extraction
I have a word document that I would like to extract word/sentences that are in a specific custom style. I have written the code to grab the word file but could not figure out how to search by a style... I then thought that I could save the document as a XML document (WordML) and then open that document as a XMLDocument and hopefully write a XPath query to get all of the nodes that meet the criteria. The XPath does not seem to work correctly because the nodes are named with ":" in them. Here is an "short" example.... XML File: < xml version="1.0" encoding="UTF-8" standalone="yes" > < mso-application progid="Word.Document" > <w:wordDocument xmlns:w="http://schem ...Show All
SQL Server Get the list of variables in a package inside a custom component
Hi I am developing custom dataflow component ,I need to get the of variables of the current package in the component , how can i get it Thanks Mani hi thanks darren i got it i used the code IDTSVariables90 var; ArrayList tableOrViewName = new ArrayList (); this .VariableDispenser.LockForRead( "TableName" ); this .VariableDispenser.GetVariables( out var); foreach ( IDTSVariable90 variable in var) { tableOrViewName.Add(variable.Value); } Thanks Mani ...Show All
