NickNotYet's Q&A profile
Visual Basic help!!getting opened explorer instances
how to get the list of opened tasks.i hav got some of the tasks from processes using mainwindowtitle property but i m nt getting the opened folder windows minmised in taskbar. i used: for each p as process in process.getprocesses() messagebox.show(p.processname) next but through this i m only getting processes but as opened folder is a part of explorer.exe process so i m nt getting them in the list.like in taskmanager in application tab u get the list of opened folder as wel as apps.so i m getting apps but nt folders explorer.exe is different to what you maybe referring to - you are referring to application tasks, well, this is what Task Manager defines it as. It's hard to explain, yes it is Explorer that is showing you ...Show All
SQL Server Download DTS for SQL 2005 Express
I'm trying to export a SQL 2005 express database to SQL 2000 without success, really a pain in the ass :-( But I found that it may be a hope but I can't find the page to download the in this page mentioned additional download for SQL 2005 express that will add DTS functionality to it. http://www.microsoft.com/technet/prodtechnol/sql/2005/msde2sqlexpress.mspx " DTS runtime Yes Yes (Web download) " Where can I find the additional package to add DTS to SQL2005 express Best Regards I've did exactly as i read above . On instalation didn't ocured any errors but when i go to C:\Program Files\Microsoft SQL Server\90 i don't find the DTS folder. Can you tell me if it is because i have SQL EXPRESS ...Show All
Visual C# Why does 'String' not have a copy constructor?
Is there a reason that the 'System.String' type does not have a copy constructor A 'copy constructor' is a constructor that takes its own type as a parameter. I would have expected the string type to have copy constructor as it should permit strings to easily share the internal reference to the string data. This would both improve performance and reduce memory consumption as the internal string data object is shared, and not constructed, from the existing string to the new string. Am I missing something There is no such thing as "Copy Constructor" in C# so I assume that you want a contructor like String(String another); The problem is that it is completly useless. Strings in C# (unlike m ...Show All
Visual Studio Express Editions Open with...?
I installed Visual Basic 2005 Express Edition on my PC that has Windows Xp on it. I made a program that i want to run on my laptop with Windows 2000. When I build and publish the program and take it to the laptop the files won't open and I don't know what program to use to open them. The laptop is too slow to install VB on if thats what it takes. Just to check a few things. First, once you wrote your code, did you select Build/Publish and follow the publishing wizard to create a directory that includes a setup.exe and the other associated files If you didn't, you may be running into a problem with the fact that you're trying to distribute object files or source files that don't include any executable c ...Show All
Visual Basic Can you run a process through a UNC path?
Hello All! I know I can launch a program on the same computer, but can I run a process through a UNC path Thanks! Rudy Hi Glenn! I'm looking at System.management docs. Yikes!! It does alot of stuff, any thoughts of what area I should concetrate on Thanks! Rudy ...Show All
Visual Studio Team System ReportProcessingException: The Language expression for the report ‘body’ has a user profile dependency.
Hi, We are trying to configure a subscription to e-mail the "Remaining Work" report daily to a specified email account. We are running the RTM version of TFS and have not modified the RDL's in any way. The Remaining Work report displays fine when accessed via the URL. http://server/Reports/Pages/Report.aspx ItemPath=%2fTFS+Management%2fRemaining+Work The Reporting Service Log (\Program Files\Microsoft SQL Server\MSSQL.3\LogFiles) file shows the following exception when the subscription's scheduled time comes: ReportingServicesService!library!a!08/11/2006-12:02:05:: i INFO: Call to RenderFirst( '/TFS Management/Remaining Work' ) ReportingServicesService!processing!a!08/11/2006-12:02:05:: e ERROR: Throwing Microsoft.Repor ...Show All
Visual C++ .user project files
Hi! Can someone please point me to any information about the .user project files What does VS2005 put into them, what can I put into it and what is the format of the file I'd search this forum for previous answers, but there doesn't seem to be a way to say that I want to search for .user (mind the dot). What I'm ultimately trying to achieve is to put local install paths of 3rd party libraries into a source repository. If I could put, say, environment variables into the .user file I'd be done. Johan I can see that I was a bit unclear. What I meant to ask was what *can* be put into the file, what XML schema if any does it conform to and lacking that is there an exhaustive or partial list of accepted tags som ...Show All
SQL Server Code Snippets
I am looking for a sample code to write a tool or a 3rd party tool that will enable me to get the same functionality as visual studio 2005 code snippets in SSMS. Maybe you are looking for something like this (with sourcecode) http://www.codeproject.com/useritems/enisey.asp ...Show All
Visual C# Returning from finally block
Why is it not possible to return from the finally clause of the try..catch block I tried writing a return statement in the finally block. The message I got while compiling was "Control cannot leave the body of a finally clause", but when I throw an exception from finally block, it compiles without any error. I guess throwing an exception and return both make the control leave the body of the finally block. Please suggest the reasons for the respective behaviours. Regards, Asim. If the finally block was executing as the result of an exception being thrown in the try block, it doesn't make sense to return because there is still an unhandled exception being thrown. Therefore, you cannot return ...Show All
.NET Development IIS 6 connection to SQL Server 2005
Hi, I have an aspx page with a connection to SQL Server 2005 which works fine on the local VS2005 setting. When I deployed it to an IIS 6 box it could not establish the connection. Could someone help shed some light Scenarios, Local to sql 2000 -- OK Local to sql 2005 -- OK IIS box to sql 2000 -- OK IIS box to sql 2005 -- Error The connection string is, "Data Source=DBServer;Initial Catalog=DB;User ID=uid;Password=pwd;Pooling=true;Max Pool Size=50;Min Pool Size=10;" I get the error message SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a conne ction to SQL Server) If connection string is, "Network=DBMSSOCN;Data Source=10.10.1 ...Show All
.NET Development Efficient way to remove double quotes from a string.
For some reason, I am reading a string out of a config file, and rather than just getting the string, I am getting it in double quotes. Here's a clip of my App.Config file < setting name = " TextLogFileName " serializeAs = " String " > < value > C:\CodeTracingFile.txt </ value > </ setting > When I read this value into a variable, the variable ends up with ""C:\CodeTracingFile.txt"" I don't know why the double quotes are being added, but I'd like a simple efficient way to get rid of them. I tried using String.Replace, but it wants a character, and I don't know how to specify a quote as the item I want replaced. The above did not work because the Replace do ...Show All
Software Development for Windows Vista Can Workflow be constructed dynamically?
Hi, I have a table where steps are defined (i.e, the order of execution, the target program to launch – may be SQL SP or an .EXE, log file location) Is it possible to write WF application that reads the activities from the SQL table and dynamically construct the work flow based on the user selection of Name( for example, load XXY, load ZZy) Can anyone give me the URL for code samples Thanks in advance With regards GK Definition of your workflow in XAML format can be saved in database, and then loaded to workflow engine to be executed dynamically. However the assembly of Activities have to be saved in a folder in the file system rather than database, since when workflow run-time engine compiles/executes the ...Show All
SQL Server How to set relationship level when creating diagram?
lets say I have 3 levels of relational table Level 1 is the master table Level 2 has 10 tables and all are children table of level 1 level 3 has 100 tables and all are children of tables in level 2 And I am trying to use MS SQL 2005 to create a diagram. In SQL2000 I used to able to set the relationship level. For example, if I set the level = 0 it will only add the master table. If I set the level = 1 it will add the master table and those 10 tables links to the master table.... so on so forth. But now in SQL2005 when I choose "Add related tables" I will have to let those 112 tables all squashed in a tiny 17" screen and it become very unmanagable. Is there any way I can set the relationship level ...Show All
Smart Device Development Clearing Keyboard Buffer
We have a deployed mobile application which requires some time to process keystrokes in certain cases e.g. 3-5 seconds for waiting for SQL CE queries, and users sometimes think the device is ready for keystrokes although it isn't, so they keypresses get stuck in the buffer and the device gets busy again with some unpredictable events. I was considering to do SQL CE queries by using multi-threading, but the UI still appears to be locked up and the whole multithreading issue is rather complex. It would be more simple and still user-friendly to avoid this by emptying the keyboard buffer after the processing has finished to avoid buffering input during processing. So the question is quite simply: "How can I clear the keyboard buffer ...Show All
Silverlight (formerly WPF/E) FullScreen via Keystroke
In the FullScreen documentation it says that: "A WPF/E control can only enable full-screen mode in response to a set of user-initiated actions. These actions correspond to the MouseLeftButtonDown , MouseLeftButtonUp , KeyDown , and KeyUp events. " However, the KeyDown and KeyUp events don't seem to be able to trigger full screen mode. To test this I have the following javascript: var wpfe; function loaded(sender, args) { wpfe = document.getElementById("wpfeControl1"); } function onMouseLeftButtonUp(sender, eventArgs) { // Toggle between embedded mode and full-screen mode. wpfe.fullScreen = !wpfe.fullScreen; } function keyDown(sender, eventArgs) { // Toggle between embedded mode and fu ...Show All
