jmarkmcdow's Q&A profile
Visual C# how to take ref of classlibrary in web application...
Hi, In my solution when I right click an object and click on "Go to definition...", instead of taking me to the source file for that particular class it will take me to the file with "[metadata]" tagged at the end. How can I stop this behavior and have it go to the real file instead Thanks, Yi Can you give an example of exactly what you're doing (any chance there is a simple repro, or is it only for a large project) If you have a project refence to a source file that's in your same solution it should work. If it doesn't then it's most likely a bug. Either way I'd love to know more about it :) Anson ...Show All
Visual Studio Express Editions split paras into single column vertically scrolling datagridview
I have data stored in my bound access table's memo field. The data is a string like a poem stored in paras with a blank line inbetween paras. Using that as delimiter, how can I split these paras and populate the contents of Column1, row(i) of single column vertically scrolling datagridview where i is the para number Thanks for any help. So would this be the correct code Class Program Sub Main( ByVal args() As String ) Dim twolines As String = "firstLine " & vbLf& vbLf& " secondLine" &nb ...Show All
Visual Studio 2008 (Pre-release) TreeViewItem Container from TreeView SelectedItem Property
I need to get the TreeViewItem control that hosts the object referenced by a TreeView control's SelectedItem property. I'm currently having to work my way down the tree (as I have a reference to each parent object), node by node, and calling ItemContainerGenerator.ContainerFromItem method on each TreeViewItem node. It's unfortunate that the ItemContainerGenerator.ContainerFromItem method only searches for object in it's Items collection or I could call this method on the root node and get the TreeViewItem control that way. Is there a better way of doing this Any help or suggestions would be appreciated. Thanks. Kevin I use quite the same approach in TreeViewEx. Have a look at http://forums.micro ...Show All
Visual Studio Express Editions Chronometer!! and alarm
Hey there, please help, I'm trying to create a chronometer within my application... I need it with this format "hh:mm:ss"... and also when it get's to 3 minutes it must display this "Succes" Now... I'm using a timer to do all this, but in order to get the time at the moment I'm using this code... Dim Timex As Integer = CInt (Format(Now, "hhmmss" )) But I think it's wrong cause when I'm going to set the ChronLabel I'm using this: ChronLabel.Text = CInt (Format(Now, "hhmmss" )) - Time so what should I do, please help!!! Here's a simple example. Public Class Form1 Dim Start As DateTime ''' <summary> ''' Set th ...Show All
Visual Studio Team System Team Foundation server sending the same alert content multiple times
Hello, We have users that have subscribed to the standand "Work items changed by others" alert For some reasons, the TFS server sends the exact same e-mail over and over again. The user will receive it each hour all throught the day (exactly one hour, clockwork). The content are exactely the same. If we make further changes to the work item, the initial notification continues to be sent. I have seen the same behaviour on the check-in alert (the one that shows the change set information) I have only seen this behaviour on this one internal team project we have (we have installed may TFS at other customer sites and I have never seen this behaviour, nor can I see any other complaints about this). I have not ...Show All
Visual C++ C2440 with Generic type
I'm extemely puzzled by this compiler error, because I cannot see a rational explaination for why it should occur. public ref class Class1 { }; generic<typename T> where T: Class1, gcnew() public ref class Gen { public: Gen() { } T value(bool condition) { if( condition ) return gcnew T(); else return nullptr; // Error: C2440 } }; public ref class test { public: test() { Gen<Class1^> gen = gcnew Gen<Class1^>(); Class1^ x1 = nullptr; Class1^ x2 = gen->value(false); } }; // C2440: 'return' : cannot convert from 'nullptr' to 'T' Brian Kramer wrote: Interesting approach... Good thing I'm not saying it's ideal, huh :) Does ...Show All
SQL Server Reporting Services how do I disable a drop down box
Hi, SQL Server Reporting Services 2005. I have a tick box that is required to enable or disable two associated drop down boxes. Example: Tick box has 2 associated drop down boxes. The drop down boxes list details of Area from a database. The Area is linked to Properties. This allows the selection of Properties to be filtering by Area. Ticking the tick box allows the user to select from the drop down boxes. I have tried setting the Report Parameters in different ways, but without any success. Please can someone suggest how I can set the two drop down boxes to be disabled when the tick box is unticked and enabled when the check box is ticked Thanking you, dwemh Hi, I think enabl ...Show All
Visual C# Transparent Text Box
I'm looking for a truly transparent text box. I'm NOT looking for a text box which backcolor is like its parent or Transparent. I DO look for somthing like microsoft did in mspaint. Any suggestions Thanks. thanks, but it's not good enough for me. let give me you the bigger picture: I Have a D3D application. i have a texture streched over the entire window. i want to add a transparent text box to the app. I've tried to set the textbox backcolor to transparent, but it dosen't work (I don't know how transparent is implemented, it's good enough for GDI, but not good enough for D3D). One thing is setting the textbox backgroundimage to a portion of my texture, but i don't like it so ...Show All
Smart Device Development Cursors.WaitCursor is not a hourglass
Hi, i’m using the class Cursors to change the normal cursor to the wait cursor. Cursor.Current = Cursors.WaitCursor; Instead of an hourglass i get a square in the middle of the emulator with colours moving. Is this normal Thanks SP Yes, that is normal. ...Show All
Visual Studio 2008 (Pre-release) How to disable Undo/Redo tracking in a FlowDocument? [To avoid StackOverFlow]
I have a FlowDocument which I'm displaying in a FlowDocumentReader . I'm dynamically altering the content of the document by adding and removing Sections. When I remove Sections I get a StackOverFlowException (caused by a huge number of recursive MarkupWriter.RecordNamespaces calls). It would appear this is caused by the document trying to record the deleted sections using XamlWriter . It digs through the removed section, into a BlockUIContainer , into my view model in the datacontext etc etc before blowing up. I'm still stuck on RC1 for the time being, so maybe this has been addressed. But in the mean time, I'd like to just disable Undo/Redo tracking for the FlowDocument , I don't need it, even if it was working it would just ...Show All
Visual C++ hiding LNK warnings
Basically, I want to get rid off all the LNK warning For ex, LNK4099, or LNK4204, or any other one. I am linking my debug lib with a third party release lib. That's why I am getting those. Is there some kind of "pragma" for the linking step to hide warnings There was the undocumented #pragma comment(linker, "/ignore:4099") but it does not work anymore on Visual Studio 7.1. I is annoying to look at hundreds of these warnings rolling down on my screen. Thank you. Well, good news and bad news. The good news is that you have the correct syntax. The bad news is that is no longer supported as of VS 2003. Sorry. :( http://www.thescripts.com/forum/thread264543.html ...Show All
Software Development for Windows Vista What object to I want to release?
Hello, I'm writing a simple in-place tranform filter, and have encountered a refcount problem. My filter is based on the sample CNullNull filter, with some additional logic in the Transform method that calls SetTime() on the media sample that's passed in. Running in GraphEdit works until I quit, at which time I get a "there are still 3 active objects" error and GraphEdit crashes. Commenting out the call to pSample->SetTime(&startTime, &endTime) elimnates the error, but of course I need that statement for the filter to work. Does this mean I need to call pSample->Release() If so, when Releasing pSample within the Transform method causes bigger problems. Thanks in advance for any advice. -mmc ...Show All
Smart Device Development How To Define Global Variable?
Hi, I want to define a global variable which can store information like Database Connection String and can be accessed accross all the forms and classes in my application. While loading the application, I would like to set this once and then use it throughout my application. How to do this Also, what is the use of Resources.resx and AssemblyInfo.cs files in the application Can they be of any use Regards, Suman Hi, if you need to make a value what ever it was and use it from in form, then you either store it in the registry or in a file, db,.. etc if you don't know the way of doing this, tell me and i'll be glade to help you. the Resources.resx file is used to keep resources in your application to use it from there, like image ...Show All
Visual C++ Regular expressions for VC6?
Hello Comunity, i read about ATL Class Library that they habve an functions for regular expressions in VC6, if this is true, where can i download this library, please post an link(url) for me! With best regards Mirsad Brian Kramer wrote: I wouldn't recommend taking the risk of trying boost ,where C++ conformance needs to be high, on VC6, where C++ conformance was pretty poor. Boost was one of the libraries that VC7.1/8.0 used to test its improved C++ conformance. I'd generally agree, but I can't remember having any trouble with the regex libraries mixed with VC6. In any case, Boost comes with extensive regression tests which should be able to approve (or trash) the usage. ...Show All
SQL Server SSIS + SSAS => Fairly consistent hanging?
I have an SSIS package that reprocesses part of my cube. I've tested that it works, and deployed it as a SQL Job to run regularly. Strangely, it seems that the SSAS server hangs fairly regularly and when the SSIS job starts to run, it'll be stuck for hours. Is this expected Should I be bumping our SSAS service nightly Are there tools available to monitor SSAS service health Had the same problem recently with SSIS and SSAS. Started when I added unprocessed measure groups to my cube. All of the sudden my SSIS tasks would hang with the "building processing schedule" message, and only one task would go at a time. I processed the all cube measure groups so that the only objects left unprocessed in ...Show All
