slickred's Q&A profile
Visual C# AfterCheck event, unchecking a nodes
Hellous, trying to delete node when it gets "UnSelected", been trying something like this but gettin error all the time. its not e.Node, e.Node.Text, e.Node.FullPath, and e.Node.Remove removes it from treeView1 private void treeView1_AfterCheck(object sender, TreeViewEventArgs e) { if (e.Node.Checked) { treeView3.Nodes.Add(e.Node.FullPath); } else { treeView3.Nodes.Remove(e.Node); // Problem is in this line } } Ok, what you can do is this: treeView3.Nodes.Add(e.Node.FullPath, e.Node.FullPath); Using this overload of Add, you add a node with a key (the first parameter). The value of key is e.Node.FullPath, but you can create your ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DreamBuildPlay is up!!!
Now go register!! Actual contest details to come the week of Feb 5th The site is live and yes we realize there are a few things that haven't quite propped properly. We've got people looking to get these fixed asap. To be clear, yes you will be able to register outside the US as this is a global competition. And yes, the missing states will be re-annexed shortly. Apologies for the wrinkles in the rollout. --dave ...Show All
Visual Studio Express Editions Trouble Creating a Class File
New to Visual Web Developer 2005 EE, have created a website to learn development, and am having the following problem (with website already opened as a project): 1) File --> New Item 2) Click Class 3) Choose a name for the class file, then Visual Basic selected 4) Click [Add] The studio then attempts to create the folder and file on the server, but gets the following message: "Unable to add the folder "App_code" to the web. Cannot create the folder 'App_code'. This same series works ok on my local machine, but not on the web server. Is this a bug, or is it trying to create the folder in a directory that is higher up than the web site root directory Creating the folder beforehand does not help. Help is ap ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting multiple errors back from the effect compiler?
I'm using the effect compiler (specifically the Effect.CompileEffectFromSource method) to compile effects on the fly, and was wondering if anyone knew a trick to getting more than just the first error back. It's kind of annoying to not get them all back at once, but I'm not seeing a way (via CompilerOptions) to have it continue. I'm worried I'll have to build my own yaccer :( And as a sneak peek, here is a screenshot of an early build of the tool I'm writing - it's a minimally invasive drop in shader editor (requires about 4 lines of code in the host project to set up - maybe less if I create a GameComponent wrapper). It will probably go up on CodePlex in a week or two. http://www.hiranipra.com/data/help_attach/ShaderDesigner1.png ...Show All
Software Development for Windows Vista XPS Viewer not printing with XPS DrvDocumentEvent changes
Hi , We are developing a monolithic XPS Driver. We are facing a major issue with printing from XPS viewer. We are extracted the print ticket from DOCUMENTEVENT_XPS_ADDFIXEDDOCUMENTSEQUENCEPRINTTICKETPRE and converted it to XMLDOMDOCUMENT. We did the necessary changes in the printticket, wrote it back to pvOut, but in datain.xps,Job_PT.xml is not proper.It comes as Job _PT.xml\[0].piece, and Job_PT.xml\[1].last.piece. We also found that there is a BOM of 3 bytes for UTF-8 encoding in memory pointed by pvIn. Is this the reason for the corrupted job_pt How can we handle this encoding issue Could someone please help us with this problem Thanks. Naomi. Also it depends on couple of oth ...Show All
SQL Server sp_addextendedproperty gives error as object does not exist
Hi, When i executed this code below, where i wanted to create temp table and add description to the columns. ALTER TABLE #tmpTable ADD [1] varchar ( 1000 ) default 0 null EXEC sp_addextendedproperty @name = N 'MS_Description' , @value = N 'ColDesc' , @level0type = N 'SCHEMA' , @level0name = N 'dbo' , @level1type = N 'TABLE' , @level1name = N '#tmpTable' , @level2type = N 'COLUMN' , @level2name = N '1' I got this error ---- Msg 15135, Level 16, State 7, Procedure sp_addextendedproperty, Line 37. Object is invalid. Extended properties are not permitted on 'dbo.#tmpTable.1', or the object does not exist. Where i found the table in the tempdb created as, dbo.#tmpTable ____________________________________________ ...Show All
.NET Development Help on regex
I need a regex for a timespan .. from 15 min to 24 hour. input is something like 00:15 I'm not very good in building the pattern. Thanks, (Moderator: Thread move to Regular Expression forum and Title changed from "Help on regex" to "Regex and Timespan" for quicker thread understanding during a search) Here is a regex where the first two matches say invalidate (don't return a match) if this range is found. The first range is 00:00-00:14 and the second range is (24:00 and up). Then the items are placed in named groups Minutes and Seconds within the match. ( !00\:[0|1][0-4])( ![2-9][4-9]:\d{2})( <Minutes>[0-2]\d)( :\:)( <Seconds>[0-5]\d) Tested on these numbers, matches in green 00:14 00 ...Show All
SQL Server insufficent system memory
Running a large transaction that runs successfully in SQL 2000 in a couple of minutes but running on another system with SQL 2005 after 4 hours it failed with error “ there is insufficient system memory to run this query” Both systems are running a GIG of memory with 1 instance each and nothing else running. 1 Gig of memory for SQL 2005 seems to be way underpowered as crazy at that might seem. Is the only answer to add more memory or are there settings I can adjust to avoid SQL 2005 from being such a hog Thank you in advanced, Pauly C ...Show All
Visual Studio 2008 (Pre-release) WindowsFormsHost is placed above the AdornerLayer?!
Hi, I’m using adorners for FrameworkElements and it has worked perfectly fine until now, when I also want adorners on windows forms controls hosted in WindowsFormsHosts. It seems like the WindowsFormsHost is placed above the AdornerLayer and not beneath it as it should Is there a solution to this problem, or am I doing something wrong Thanks! / Joel I’ve read another post in the Cider Forum, where someone from Microsoft said that they still thought about how to solve the issue, where it ends up above the AdornerLayer. So it would be nice with an answer from them, where they will let us know if they'll fix this or not. / Joel ...Show All
Visual Studio Express Editions Tackling an issue
Hi all, I'll try to describe this as best I can. If it gets a little confusing, let me know and I'll try to rephrase everything I've said! For the past few weeks I've been trying to get my head around VB2005EE. After reading a few books and tutorials I feel that I'm almost ready to go ahead and build my first "real" program to distribute. The program I have in mind should be nothing complicated, but I'm a little confused on how to build the key feature. Without giving too much away, my idea is to build a large database on every ride, roller coaster and theme park in the world. Each entry will feature statistical information on the particular attraction, along with media (video/pictures), location etc. - this will mean I'll have ...Show All
Visual Studio Team System SkipCompile?
As most enterprise build processes do much much more than the simple compilation of code these days. Is there a recommended way to skip the Compile phase of a Team Build process completely If you are talking about speeding up the whole build process while in test, here are some parameters that you should add to your response (.rsp) file. I got this from Steve St. Jean's blog but can't find the link: /p:SkipClean=true;SkipGet=true;SkipLabel=true;SkipInitializeWorkspace=true;SkipWorkItemCreation=true Search Steve's blog for more info on what this does. Hope it helps... ...Show All
Visual C# Passing properties as delegates
Let's say I have the following: class Foo { private int myInt; public void SetInt(int i){myInt = i;} } And then somewhere else, I have this: delegate void MyDelegate(int); // Define a delegate that matches the signature of the Foo.SetInt function class Bar{ void DoStuff(MyDelegate someDelegate){ .... } // A function taking the delegate as an argument } Now I can easily pass SetInt as a delegate to the DoStuff function, no problem there. But what if I'd used a set property instead of the SetInt function, like so class Foo { private int myInt; public int MyInt{ set {myInt = value;} } } Is there any way I can then pass the MyInt property as a delegate to another function I suppose I could do it by wrapping it in an ...Show All
Visual Studio Team System Is there some material about how the TFS track and record all information?
e.g., how the TFS stores the info, and where How the TFS knows a file, or a project is version controlled, or not How the TFS manages all data, in what manner What's the structure of TFS And so forth. I believe a lot of people wanna know TFS internals. Thx. Everything is stored on the server. When I say "client POV" I mean I'm approaching it from the perspective of a user (vs the MS developers who write the DB sprocs). For instance, when I talk about branch & merge structure, I will probably use 3D charts and graphs to explain the concept, even though on the server it's just a bunch of rows in tbl_MergeHistory. ...Show All
SQL Server Custom Data Flow Task throwing error when run from command prompt
Hi, I developed a custom data flow task in .net 2.0 using Visual Studio 2005. I installed it into GAC using GACUTIL and also copied it into the pipeline directory. This task runs absolutely fine when I run it on my local machine both in BIDS and using the script in windows 2000 environment. However, when I deployed this package into a windows 2003 server, the package fails at the custom task level. I checked the GAC in windows\assembly directory and it is present. Also I copied the file into the PipeLine directory and verified that I copied it into the correct pipeline directory by checking the registry. The version of the assembly is still Debug. I looked up documentation in MSDN but there is very little information about the error ...Show All
SQL Server Object Explorer/Server Explorer Error
I have just installed the released VS2005 as well as the released SQL2005. When ever I try to browse my SQL Server with either the Object Explorer in MS SQL Server Management Studio or the Server Explorer in VS2005 I get the following error: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{6D5140C1-7436-11CE-8034-00AA006009FA}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). Does any one have possible solutions for me Any help would be greatly appreciated. --Nick ...Show All
