Fabrice MARGUERIE MVP's Q&A profile
Visual C# Program Execution
Ok. I know how to open a program through code using the Process method. But what I would like to know how to do is, how to execute a command within a program that I open. For example. Say if I was to execute a .rar file. It would open and show the compressed files. How would I call a method to extract those files If this is possible can someone explain to me how Only a very few player can play compress file, you will have to decompress the ...Show All
Windows Forms How to get the URL when NewWindow event triggered in WebBrowser control?
Hi, All I am new to .Net framework programming and I was trying to code a multi-tabbed internet browser using the WebBrowser control introduced in .Net 2.0. From the documentation, I found that this control can raise a NewWindow event whenever the user right-clicked a URL and choose 'Open in New Window' menu item or the URL requests to be opened in a new window. The problem is that how can I get the URL that the WebBrowser tries to ...Show All
Visual J# java.net.Socket buffer sizes in J#
Hi, New to J# (and java) so please bear with me! I've converted some Sun java code into a J# project, to allow me to use the logic from within existing C# code. The converted code is a rather complex API for sending / recieving data via a Socket (as a client). The conversion has gone extremly smoothly, I've only had to change (comment out) 2 lines of code, which relate to setting the send/recieve buffer sizes on the java.net.Socket. My ...Show All
Visual FoxPro use the reccount
hello all I use "set filter to" and want to know how much record is match the filter condition. I use the "reccount()" but it return the result is not I want. it is all the record count Hi, i think you will need to use COUNT command instead. RECCOUNT() is not affected by SET FILTER. ...Show All
Visual Basic Form: Was using "set" in VB6 to choose form.
I just upgraded my VB6 project to .NET 2005. There is 82 files with 10 of those over 100k. I finally resolve 501 errors, 1488 warnings and I can "build" my code. I am missing one feature that was really important for me, the "set" form. My routine aways call the same form and I use the "set" to select the form depending on some parameter. There are 8 forms with all the same label and text. The only dif ...Show All
.NET Development Attach files to local mail
Hi all, My application creates files and attach these files to local mail (ex:outlook). This mean my application call local mail and attach these files automatically. I tried to use "System.Net.Mail", but I'm not successful. Please help me to solve this solution. Thanks for your collaboration. Steven. My idea includes following steps: - Open a new local mail. - Fill in "To ...Show All
SQL Server Can you Cache a SSIS Lookup component to Foxpro v7 with parameterized query?
I am using a lookup component in a SSIS data flow. The lookup is a select to a foxpro table. THe lookup works fine with full cache selected. I cannot get the lookup to work with a partial or no cache. I have the latest Foxpro OLE DB driver installed which I understand to support paramaterized queries. Has anyone had success with using cached lookup to Foxpro Does anyone know how to set the lookup properties of sqlcommand and sqlcommandparam I a ...Show All
Visual J# Problem with File.createTempFile() under IIS 6
Hi; When running an ASP .NET app under IIS 6.0 on Win 2003, I can do the following: String jname = Request.PhysicalApplicationPath + "images\\java_" + fn + ".txt"; java.io.FileOutputStream fos = new java.io.FileOutputStream(jname); fos.write(data2); fos.close(); And it gives the created file the correct permissions (based on permissions in that directory, ASP .NET, ...Show All
Windows Forms DataGridView KeyDown?
(VS2005 - beta 2) Hello, is there anyway to capture a keypress or keydown event in the DataGridView I know there's events called KeyDown and Keypress, but if the DGV is in edit mode, they never get caught. My ultimate goal is to make it so pressing enter moves to the Cell to the right, instead of to the next row but I need to know what key is being pressed before I can do that. Thanks -Adam Ive ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX February 2006 SDK has Conflict with other DLL
Hello! I loaded down the new DirectX SDK form February 2006. After installing and doing a device creation test, i've got an error telling me, that two dll's are in conflict with each other. So I went into my C:\WINDOWS\Microsoft.NET\DirectX for Managed Code directory and deleteted all subdirectorys in there. I've reinstalled the February SDK but he again tells me that their is a conflikt between two DLL's. Here is the error: Th ...Show All
Visual Studio 2008 (Pre-release) Waiting for a process exit to restore window state
I have a simple WPF app with a Button on a Grid. I want the button to launch an app, minimize the WPF app, wait for the other app to go away, and then restore the WPF app. I thought this might work in the button click handler: System.Diagnostics. Process proc = new System.Diagnostics. Process (); proc.EnableRaisingEvents = true ; proc.StartInfo.FileName = "notepad.exe" ; //proc.Exited += new EventHandler(proc_Exite ...Show All
Visual Basic Loading and gathering information from a text document
I am currently producing a program for myself and i need to know how to gather and put loaded text information into a table and allow searching ect, i will clarify with pictures. Please be patient with me because i am a novice. given the following text [item 1] name=Welcome Note description=Welcome to the world of Darkness. class=12 reqlevel=1 quality=1 bonding=4 classes=0000 //All Classes model=5567 level=1 races=0000 //A ...Show All
Visual Studio Why MSSCCI checkout function not work?
Hi, all. I'm using SCC API to implement one SCC provider. When I do check out operation, and set file status in SccQueryInfo() function to SCC_STATUS_CONTROLLED | SCC_STATUS_CHECKEDOUT, the file icon still locks, not checkout. But if I use SCC_STATUS_CONTROLLED | SCC_STATUS_OUTOTHER, the icon is a user, it works. I'm using VS2005 and VSSDK2006.04. Here is my code: SCCEXTERNC SCCRTN EXTFUN __cdecl SccQueryInfo( LPVOID pContex ...Show All
Visual Studio Team System How to assign state transition to certain roles?
I've been customizing my own template based on the MSF Agile one. I created three new project user groups (in addition to Contributos, Build Services etc) called Business Analysts, Developers and Testers. How can I limit the work item state transition to individual roles For example, I'd like to allow only Developers to move a work item from Active to Resolved. There are two attributes you can use on the TR ...Show All
Visual C++ XML Comments
When I first heard that Visual C++ 2005 was going to support XML documentation I was very excited to try the beta. One fo the things I expected was the XML documentation experience to be identical to that of C#, but here are some of my experiences. The triple slash (///) before a function header doesn't automatically generate some blank xml comments for me When I place XML comments above a function header and specify information about its ...Show All
