noobOOP's Q&A profile
Visual Studio 2008 (Pre-release) drag and drop effect
Hi I have a listbox that contains images , and a stack panel in which i display images one at a time. As of now, the image displayed in the stack panel chnages when i change the selection in my list box. I want to drag and drop images from the list box onto my panel. can somebody tell me how to do this thanks amit Take a look at http://blogs.msdn.com/marcelolr/archive/2005/05/03/414490.aspx --Ifeanyi Echeruo [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Software Development for Windows Vista Delay/Persistence/MaxThreads
Hello, I'm having a delay activity setted to 1 minute and the persistence service when it gets idle write the instance and download it from memory. Then I must restart this instance manually (is there any other way ) but if I restart it before the minute has complete the instance thread blocks and no tracking or other information arrises. This situation holds scheduler threads so any other instancing request must wait... There is any way to release the instance from memory if the delay time hasn't complete yet How can I solve this situation Regards, M Hi Markus, The instance shou ...Show All
Visual C# string manipulation functions
Hi, I've been trying to find a link where all of the string manipulation functions are listed but couldn't find any. Could someone please direct me to where I could find these functions Thanks, Bruce using System; using System.Collections.Generic; using System.Text; class LeftRightMid { public static string Left(string param, int length) { //we start at 0 since we want to get ...Show All
Visual Studio Getting versions of files with a specific label
I am trying to get an older version of project based on a specific label. The command line I used is vss get -v <LABEL> $/<project> but it does not seem to be getting the correct versions. Have I done something wrong Or can I actually get older versions of files based on a label Thanks in advance! Thanks for the link - it actually answered my question. The syntax for ss get -v was not clear in the online help pages. The version of VSS we are using is VSS Version 6.0c (Build 9447). But curiously, what would analyzing the database tell me ...Show All
.NET Development New to xml and how to read an xml doc advise needed
Hi, Strange enough i have never played with xml very much.I have some questions and hopefully you guys will be able to answer them. 1)Need to read/Loop through an XML file whilst looping there might be both elements and attributes .Is there a generic way of looping through both the elements and attributes.I looked in the MSDN and I could not find an example. 2)Reading/Writing xml can be done in many ways. when shall i use the textReader when the doc class. ANy good links with examples for beginners in xml thanks a lot 1) Here you can find a sample code for looping through XML nodes: ...Show All
Visual Studio Long running reports hanging
Hello, I have a report that hangs whenever I specify filter criteria that makes the stored procedure take a long time to run. When I run the report, the page goes blank and stays that way until I eventually get a "Page cannot be displayed error". If I filter more specifically, the report returns properly. The stored procedure can take about 10 minutes to run and returns about 100,000 rows. I could probably re-write the stored procedure so that it runs more efficiently, but I would still like to know why the report is not returning. Here is my configuration: Crystal Reports 11 .Net Server (service pack 2) Windows S ...Show All
Software Development for Windows Vista VS 2005 final release vs. Windows Workflow Foundation
Can anyone (from Microsoft) tell me when a working beta of WWF for the final release of Visual Studio 2005 (8.0.50727.42) will be available Trond - Please check the release plans thread here . Thanks, --Moustafa ...Show All
Visual Studio Team System Manual Test Authoring through Microsoft Office Infopath 2003
If I wanted to use a Microsoft Office Infopath form instead of a Word or Excel document to author my manual test cases, what would be the best way to implement that I'm assuming that I would probably have to create a custom test type of some kind. Should I try to launch Infopath as an editor or something when the test is edited, or would it be easier to use the object model since there is already support for creating tests in Word and Excel formats Just looking for opinions at this point. Rob Ok, I think I have that working now...at least in the Experimental Hive. What do I need to do to deploy it Jus ...Show All
Windows Forms loading assemblies...
Hi, I want to load an assembly from a file, in c#, and I want to load a Form inherited class from that dll, to show in my main form... How can I do it What comes after: Assembly a = Assembly.LoadFilr(fileName); Thanks a lot Are you trying to load this form using Reflection It would be a lot easier to just add a re ...Show All
Visual Studio 2008 (Pre-release) Unable to bind to Dependency property from within a DataTemplate?
Why is it not possible to bind to a Dependency property from within a DataTemplate I'm trying to size items in a data template based on the size of some other control. The following XAML illustrates what I want to do: <Page xmlns=" http://schemas.microsoft.com/winfx/avalon/2005 " xmlns:x=" http://schemas.microsoft.com/winfx/xaml/2005 " Title="Page3" > <Page.Resources> <XmlDataProvider x:Key="BookData" XPath="/Books"> <Books xmlns=""> <Book IS ...Show All
Visual Studio Team System Max 260 characters in path + projectfolder-hierarchi + programname?
I have just had a strange error saying that there is a limit to the total length of the source control path + project internal path + program name that may not exceed 260 characters. That is obvously too little if you want a minimum of structure in both your team foundation server structure and your projects and you want to stict to describing names for your files. How to I change this setting regards Jens Chr You can't. It's a hard limit in the DB schema. You can't use >260char paths in the Windows shell anyway, so it wouldn't be much help. (Yes, there's the \\ \ syntax, but that's not practical for daily use.) Are you ...Show All
Windows Forms Error Creating Window Handle
I created windows form application when I add large number of controls I generate "Error Creating Window Handle" Exception please advice It is not entirely clear to me, but instead of using labels, you could simply print the text yourself on a location. That would already save an incredible amount of window handles. Can you also answer the other questions I posted And: what is the added value of using controls at all ...Show All
Windows Forms WebBrowser control, catching Backspace
With WebBrowserShortcutsEnabled = false I can prevent the user from doing Alt - Left Arrow to go back, but they can still use the Backspace key. How can I grab the backspace keypress in a webbrowser control and cancel it Thanks Hi, To do that all you need is to create a cache of previouse URLs and cancel navigation to them in the naviagating event like that: Private backURLs As New Collections.ArrayList Private Sub WebBrowser1_Navigating( ByVal sender As System.Object, _ ByVal e As System.Windows.Forms.WebBrowserNavigatingEventArgs) _ Handles WebBrowser1.Navigating I ...Show All
Visual C++ Visual Studio 2005 Compilation problem
Hi, we have some compilation problems with VS2005. It seems that sometimes it doesn't recompile some files ( when we have h files with template or anything else ) and we have to perform a full rebuild to make it work. Sometimes it's worst, because it outputs it recompiles the related cpp but no change is made ! Does anyone encountered a problem like this one Thanks in advance, We will need to reproduce the issue to figure out what might be happening. Please log a bug at http://lab.msdn.microsoft.com/productfeedback/default.aspx with the necessary repro case. Thanks in advance for taking the tim ...Show All
Visual Basic Console textbox
What is the best way to make a textbox behave like a console (command prompt) I have a System.IO.StringWriter that gets text appended to it. I can display the output of this in a textbox but the string grows bigger and bigger (i don't care about old stuff just a couple screens of the recent stuff) and anytime the textbox changes it is scrolled to the top, not at the bottom where the new text is located. This is what I have now but it's terrible: Private Sub ConsoleRefreshTimer_Tick( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ConsoleRefreshTimer.Tick If ab.ToString.Length > 6000 Then 'i ...Show All
