.NET Developer's Q&A profile
Visual C# Code change are not taken into account in web app
I'm using Windows Vista RC1 and Visual Web Developer 2005 Express SP1 with Vista support files. The user that runs Visual Web is a local admin. The files are on a file share access using a mapped drive. It's work well with XP but not with Vista. Went I make change to my code in Visual Web Developer 2005 Express, they are not taken into account, like if the change was not made. For example, I have this code: protected void Button2_Click( object sender, EventArgs e) { Response.Output.Write(1 + 1); } When I run it, it prints a 2 on my web page. But if I change to code for this: protected void Button2_Click( object sender, EventArgs e) { Response.Output.Write(1 + 2); } It still prints 2. I need to close Vis ...Show All
Visual Basic A background process to detect user activity
Hello all, I have a multi-form application that is running fine, but now I would like to add code that would revert the application to its startup form if there is no user activity (mouse or keyboard). I have 27 forms in my application, and instead of going into each form indiviudually and adding a timer, I was wondering if there were a method to simply have a separate application (or hidden form in the same application) that would detect mouse and keyboard activity running in the background much like the method that your Windows screen saver uses to detect whether there is activity or not before showing the screen saver. I have looked into keyboard and mouse hooks but ran into a dead end; if I understand the documentation directl ...Show All
SQL Server Report parameters not empty
Hi, I have four reports with the same three report parameters. Two of them have defaults. Last is empty and must be selected. I created one main report and added those four reports as sub reports. I also created 3 parameters in the main report and mapped the parameters of the subreports to the main report. I also setup that the first two parameters are filled and that the last one is empty Now if I run the main report in the IDE it gives for the last one an empty parameter which is correct. If I publish it to the reporting server, the last parameter gets filled by the first of the drop downlist. Why is it not empty And how do I clear it With regards, Constantijn Enders Hi, You can ...Show All
Software Development for Windows Vista SqlTrackingService
How would someone go about using the SqlTrackingService to track public properties on a given workflow My goal is to be able to query a state machine workflow from a given series of data values (e.g. first name, last name, etc) using a SqlTrackingQuery. Here is how I have tried going about it: private void ExecuteWorkflow( object type) { WorkflowRuntime runtime; WorkflowInstance instance; Type workflowType; AutoResetEvent waitHandle; waitHandle = new AutoResetEvent ( false ); workflowType = type as Type ; using (runtime = new WorkflowRuntime()) { runtime.AddService( new SqlWorkflowPersistenceService (ConnectionString) ); runtime.AddService( new SqlTrackingSer ...Show All
Visual Studio Team System Move TFS projects
Our development team started a TFS 'development' installation back in 2005. We now have production TFS system in place and running and want to migrate one large project over to the new system. How do we easily do this Thanks. There's no easy way to move a project between TFS instances in v1. We're working on a solution for a future release. Moving the whole instance to a different machine or set of machines is doable (if there's no TFS deployment already there, of course); the details are in the TFS Admin guide. ...Show All
SQL Server Import works but no data? Part 2
Now I got a little bit further on my own. But, I have run into this issue with, "Not being able to import the data to the database". I can import the column headings, then that is were it ends. I was reading up on this and it made it seem as if you are to go back after you get the column headings. Then do the same to get all the rest of the data. But, for some reason the "Query or Copy" menu doesn't display to do the query action to import this data. Is there anyone who knows what I am talking about, please help.. I'm not able to catch if this is a continuous problem you have had previously, that helps if you can refer your old thread that was posted here. On the other hand confirm what is the edition of S ...Show All
.NET Development Dropped/duplicated elements in a Collections::Queue
I would need to provide a large amount of detail to properly describe this problem so before I do that, I'd like to just briefly outline the nature of my problem with the hope that the problem is well known. I should begin with the fact that although I have many years of experience programming native code, I am new to .Net programming and I still do not have good understanding of its basic concepts, for example, how the garbage collected memory management model works. First, I should start by saying that I use Visual C++ 2005. In my project I use mixed code because ultimately the program will interact with a native process via shared memory, using OS synchronization mechanisms. That other process stores data in a filemap and sets an eve ...Show All
Windows Live Developer Forums How to customize the pushpin popup window
Im a newb on this stuff I'm trying to convert a VEMaps program from version 2 to the latest. The problem I'm having is trying to manipulate the overall look of the popup window that comes up when you roll your mouse over a pin. In version 2 the developer used the innerHTML parameter of the AddPushpin method to add custom javascript code that would popup a custom window.. is there an easy way to do that in the latest version.. Version 2 AddPushpin method: AddPushpin(id,lat,lon,width,height,className,innerHtml,zIndex) Any help would be great Thanks Kirk Kirk, You should be able to do the same functionality as V2 control. The constructor for creating a pushpin is: var x = new VEPushpin( id , location , i ...Show All
Visual C++ doubt with Winexec
Hi All, i want to open another application in my application for that im using winexec. the problem is i want the another application opened like a domodal(), what i mean is the myapplication should wait till the opened application get completed. -Amjath WinExec is obsolete function. This article shows how to run application using CreateProcess and wait until it exits: http://msdn2.microsoft.com/en-us/library/ms682512.aspx ...Show All
Visual Studio Express Editions background worker arguments
Hello all, I feel as if the answer to this one will be an "oh, why didn't i think of that" . Here goes anyways: I am trying to run a background worker and I need many variables passed to it as opposed to the one that it seems to normally be able to accept. In C i could just use a structure and pass that object, is there an equivalent in VB I tried passing in more than one variable, the methods are not prepared to accept more than one. Thanks, and try not to make me feel too stupid Just use an array of objects (if they're heterogeneous, otherwise any array will do): int myInt = 42; String myString = "text" ; backgroundWorker.RunWorkerAsync( new ...Show All
Visual Studio Express Editions precomiled header directives
I am using some user defined header files and i have included the header files in the program but when i try to compile it, i get the following error: fatal error C1010: unexpected end of file while looking for precompiled header directive Error executing cl.exe. I went onto project->settings->c++ and changed the option to not use precompiled headers but it did not solve teh problem. I had a similar problem before but changing the project settings solved my problem but thats not the case anymore. Could someone shed some light on this please!! Thanks very much I was under the impression that u need to include the reference to stdafx.h file, if you have the option of using precompiled header ticked b ...Show All
.NET Development SqlCommand.CommandTimeout is being ignored
I am getting the following exception because of what appears to be SQL command timeout issue: System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount) at System.Data.Common.DbDataAdapter.UpdatedRowStatus(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount) at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping) at System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping) at ...Show All
Smart Device Development Mobile Datagrid Format
I am using a datagrid in 2003 SE. I am not able to find a way to format the column (i.e. set them to display currency.) NETCF V2 SP1 has formatting support (as well as cell painting override). http://blogs.msdn.com/netcfteam/archive/2006/04/25/583542.aspx ...Show All
Visual Studio 2008 (Pre-release) Dual Factor Service Authentication
Hi, What I would like to do is to establish "dual factor" authentication for a service. Basically, I want to ensure that the machine certificate and an appropriate username/password is supplied to the service in order to construct the appropriate claims. I've been toying around with various configuration file entries, and I can't seem to find the appropriate set of bindings to make this work. In these cases, the clients are presenting these items to the STS which is issuing the appropriate claims which are verified at the receiving service. There are two scenarios that need to be handled: 1) Utilize current Windows Login information along with the machine certificate 2) Utilize custom username/password along with the ...Show All
Visual Studio Express Editions HELP! HELP! HELP!
Hi im new and heres my problem: I want to create a program where you can create accounts and log in (somekind of password protected database) and see data of accounts and stuff like that. where do i start and do i have to do Hello All. Leo: I'm sorry, but it doesn't get much simpler than the topics in the link I posted earlier. Most of those topics are step-by-step walkthroughs, and I don't think I can explain it any simpler than that. If that material is too complicated, you might consider whether you are reaching too far, too soon. Perhaps you would be better served by spending more time gaining experience in basic Client development with Windows Forms applications before jumping off into da ...Show All
