Ziran Lin - MSFT's Q&A profile
Visual C# command prompt return immediately when running console application
By default, a console C# app will hold the command-prompt until the app exits. Is there a setting in the .NET framework that will cause the command-prompt to return immediately This is sort of analogous to running a command in the background in unix by appending & to the command. Hi. The responsables of doing that are the shell and the OS not the C# language or the .Net framework. The OS because it must support Multitaksing (ms-dos does not) and the shell because it must do some system calls, ex fork (not exists in ms-dos) and exec, in order to provide that functionality. Regards. ...Show All
.NET Development underlying connection was closed:unable to connect to remote server
hi, webservices installed on windows 2003 is trying to access another server behind firewall. And getting this system.net exception. please let me know whts the fix for this. thanks gouda Maybe firewall doesn't permit packets from your network, or forbids connection to the port you're trying to access. BTW what port you're trying to use Can you specify the Exception text or perhaps InnerException ...Show All
Visual Basic Use %USERNAME% in System.Diagnostics.Process.Start
How Do I use %USERNAME% in System.Diagnostics.Process.Start Or if there is an equivilant please tell me. If not , What I am trying to do is a launch an application from "C:\Documents and Settings\%USERNAME\Start Menu\Progarms\My App\App.appref-ms" Thanks Dim UserName As String = (Environment.ExpandEnvironmentVariables( "%USERNAME%" )) Process.Start( "C:\Documents and Settings\" & UserName & "\Start Menu\Programs\My App\App.appref-ms" ) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. download sdk
where can i download the directX sdk I've looked all over the Microsoft site and all i can find are updates. This is really fusterating thanks. I'm new to game dev. In order to simplify things, you can always visit http://msdn.com/directx/sdk and it will point you to the most-recent SDK. In the future, you should use the full-qualified URL like Daniel used, as it it guaranteed to be an obsolete URL within 2 months time :-) I should also add that each SDK is not an update to a previous one. They are complete SDKs. ...Show All
Visual Studio How can I read C# Class Files from a project? (using _applicationObject)
Hi All, I'm developing an Addin for Visual Studio 2005 Professional edition and I need to read the C# class files just like the Class Designer do, I tried to use the Code DOM model/Application Object Model but couldnt get much idea on that. If anybody can give me a hint it will be very helpful to my project. Thanks! Kind Regards, Imesh Thanks Craig..! ...Show All
Visual Basic API Calls supported by VB6.
I would appreciate information on exactly which API calls are supported by VB6. In paticular, I am having trouble declaring the following calls: SetupDiGetClassDevs SetupDiEnumDeviceInterfaces SetupDiGetDeviceInterfaceDetail The declares for these calls listed by the API Text Viewer generate the error message: "Variable uses an automation type not supported in Visual Basic" One variable it rejects is > ByRef ClassGuid As Guid. I realize that I may have to move up to VB.Net to get support for these API calls, but I have not yet been able to verify this. Richard, I am using the API-Guide ...Show All
Visual Studio Team System Grouping Work items
In MS Project it's easy to group tasks together by using indent and outdent for tasks. what's the equivalent in team system cause the list of work items can get pretty large and it would be nice if they had containers. Grouping work items is not possible. However, you can use queries to limit the number of returned items. ...Show All
Windows Forms Permissions problem
I have an application to log time spent on an activity. I have published it as a ClickOnce app so that it is easy for users to install, and makes sure they are aware of updates. The problem I have is that as the applications needs to run everytime wondows starts, I have a piece of code in the app startup that creates a shortcut in the users Startup group (bit of a hack I know) and on most machines this works fine. On some machines however, I get an UnauthorizedAccessException when the application runs saying that it cannot create the shortcut. To create the shortcut, I use the Windows Script Host Object Library, and call WshShell.CreateSh ...Show All
SQL Server sqlmaint.exe fail
Dear all I would like to run the back up plan for backup my current database but fail! sqlmaint.exe fail。 [SQLSTATE 42000] (error 22029). step fail。 EXECUTE master.dbo.xp_sqlmaint N'-PlanID 23BD4667-2869-44F7-B4EF-FEB78F1B6400 -WriteHistory -VrfyBackup -BkUpMedia DISK -BkUpDB "C:\DB Backup" -CrBkSubDir -BkExt "BAK"' Please help if you have any idea. Calvin Hi, please refer following links : http://forums.microsoft.com/MSDN/AddPost.aspx PostID=214721&SiteID=1&ReturnUrl = http://www.dbforums.com/showthread.php t=812439&page=3 :-) Regards ...Show All
Visual C# datagridview / cells and rows
hi, i need help, how can i get the value from a particular dgvcell if i'll select the entire dgvrow and how to auto-select a row thats brilliant got it working now. super fast reply. Thanks! ...Show All
Visual Studio 2008 (Pre-release) Getting Started sample not getting service.exe
Hi, Well, I have been trying to get this first sample "Getting Started" going for a very very long time, and so far, I've been pulling my hair out just trying to figure out what is going on. My question is, when i compile the "Getting Started sample" which is from WIndows SDK, it compiles fine, and I find client.exe but I can not find service.exe anywhere. Neither under Getting Started/service/bin folder which produces service.dll file and service.pdb nor under wwwroot/servicemodelsamples/bin directory. I got the console based sample going but I really want this IIS based samples to work as well. Any help woul ...Show All
Windows Forms Adding a new "blank" record to edit
I have a bunch of controls bound to a dataset. When I bring up existing data and make edits, all is well. But I'm missing the boat completely when it comes to adding a new blank record to be filled in. I try adding a new row, but just get DBNull exceptions. Where am I going wrong You're probably having the "two different&n ...Show All
SQL Server does "with (nolock)" absolutely guarantee no locks are taken?
I need to run a few short-running queries against a production system. I need to be absolutely certain that SS doesn't take out any locks on the table as a result. Does "with (nolock)" absolutely guarantee this I've read BOL on the topic and I understand isolation level read-uncommitted. But I want to validate that there's not any undocumented behavior in SS that might violate the documentation (which clearly states that no shared locks are issued). Thanks! You're talking two different things. with (nolock) is a HINT. That means there is a possibility that SS will override it. SET TRANSACTION ISOLATION LEVEL ...Show All
SQL Server navigation question
hi all, i need to add a BACK button to some reports. I have a report that has a hyperlink to another report. When I click it, I go to that other report, but because I cannot open it into a new page, I got to be able to return somehow to the initial page. In this second report I added a row, I have embedded the picture of a button that reads GOBACK, but for the Navigation property I do not know how to specify navigation to the previous page. Anybody, any ideas thanks, kowalsky Thanks for the tip. Could you be a littel more specific, though I don't understand what you mean: what is the synthax for the java ...Show All
Smart Device Development how can i load image from jpgfile to the picture box ?
hello .. i am new at the smart device developing .. in WindowsApplications i was using Picbox.Image = Image.FromFile("..") But in the smart device application i can't found " from file " function .. Regards , wating for the answer please :) .. http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_frm/thread/6a3e0ab42f2835b8/75e8dc45fa2570c6 q=image+from+url&rnum=2#75e8dc45fa2570c6 ...Show All
