Gentlehag's Q&A profile
Visual Studio Updating file status in solution explorer through SCC APIs
Hi All, We have implemented MS-SCC API 1.3 for our SCM tool. Our SCM tool also supports commands to perform check-in, checkout operations which also adds following scenario to be handled. 1. Open a project in VS05. Checkout a file and modify it. 2. Checkin that file by using command. 3. Status in VS05 won't get updated unless "Source Control->Refresh Status" is used. For this, we are executing a thread in background which checks latest status of files from SCM. But unable to send this updated information to back to IDE. When user selects "Source Control->Refresh Status" command, SccQueryInfo() function get called for selected files. I got the following link which says user has to manually refresh the status. htt ...Show All
.NET Development TcpClient & TcpListener On Windows Vista
Hi! I'm trying build a simple tcplistener and tcpclient in VB.net. and when tcpclient try to connect with de tcplistener always give me the same error: " No connection could be made because the target machine actively refused it" I'm using Windows Vista, and may be this is the problem, because i have tried run the same code in other pc runnig with windows xp and run correctly. I have turn off Windows Firewall, i have open the port i going to use, i dont have other other internet security program... but the problem persist. I have the same problem with others server aplications, clients can not connect with me. Has Windows Vista some security featury or something for "actively refused" extern connections How i solve this problem ...Show All
.NET Development Error on Bitmap.Save()
Hi, I'm using the JPEG Encoder with a Bitmap.Save()-call. I got the following code from the german MSDN: ImageCodecInfo ici = null; ImageCodecInfo[] iCodecs = ImageCodecInfo.GetImageEncoders(); foreach (ImageCodecInfo ic in iCodecs) { if (ic.MimeType == "image/jpeg") { ici = ic; break; } } EncoderParameters ep = new EncoderParameters(1); ep.Param[0] = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, (int)90); Result.Save(CurrentTargetFile(), ici, ep); After the execution of the last code line I get the following exception: "System.ArgumentException" Message="Invalid Parameter." Source="System.Drawing" StackTrace: bei System.Drawing.Image.Save( ...Show All
SQL Server Proc Results to Excel Workbook
Hello, I have tried to use a DaraReader Source to execute a SQL Server 2000 proc, and send the results to an Excel Destination. The proc is named spv_CDGetFuelManDuplicates. Within the proc, temporary tables are created and dropped. When I attempt to set 'Exec dbo . spv_CDGetFuelManDuplicates' for the SqlCommand property of the DataReader, I get an error message indicating that my temporary tables are invalid objects. The DaraReader is using an ADO.NET Connection Manager. Should I be using an Execute SQL Task instead Thank you for your help, the proc code is below. cdun2 ******************************** alter PROCEDURE dbo . spv_CDGetFuelManDuplicates AS --Isolate Accounts and Contact Info per the View ...Show All
Windows Forms Cancel form event
Hi, Is there any way can cancel form leave event Thanks. Cathie Thanks for the input. Actually, what I really want to do is to put some logic in the tab control's tab page leave event to ask user if he/she wants to save the changes, or cancel the action (leaving the tab page). Initially, I wanted to put the logic in the tab page's validating event, but I run into a problem. My application is a MDI windows application. On one of the children form, I have a tab control. When user try to jump from one tab page to another tab page, if there is change on current page, I need to use a message box to ask user if he/she wants to save change, or cancel the action. But I found out that, ...Show All
SQL Server Jump To Report, Target Window change
On a SharePoint site, within the ReportViewer web part, I've got "Jump To Report" links. Rather than have the new report open in the SharePoint ReportViewer, I'd just like for it to open in a new window. Anyone know how to do it I see lots of suggestions using the JavaScript routine for "Jump To URL" but don't see anything on "Jump To Report". Thanks in advance, TJ Doherty ...Show All
Visual Studio Team System Can only connect VS to Team Foundation Server from server machine
Fresh install, 2 tier server config, one App and one Data. Service pack 1 beta. We have a strange problem regarding VS TFS: When we connect from the local machine using VS/Team Explorer everything works correctly. All functionality is functioning as expected. When we try to connect from another machine, in the same domain, from the same domain account (domain admin) we get the following error when we try to add the server to Visual Studio: TF31002: Unable to connect to this Team Foundation Server: ........ This is with the exact same installation media for the team explorer software, on the local network with the TFS server. When we try to open the web service manually we are presented with it's methods, so that lead us to beli ...Show All
Windows Live Developer Forums Adjustable tile layer opacity via DHTML?
Hi, I was wondering if it is possible to adjust the opacity of a loaded tile layer via a dhtml control's event, say a slider. I've tried it but the tile layer seems unaffected by the slider setting a new opacity value even though I've made sure it's a float between 0 and 1. It doesn't even work when I hard code an appropriate value to be set on event. I went with the "delete/re-add the tile layer" solution, which works well enough except I'm getting "hour-glassed" repeatedly with the slide-bar. So, I opted for a series of 5 radio buttons with discrete incemental values between 0 an 1; works really well! :) Then I added a dropdown that loads a list of all my tile layers per map view on the fly; then my transpare ...Show All
Visual Studio Express Editions How can i send multikeys to program?
Hi ; i have a shutdowning program i did by myself. i want to do that: when clikc Close me button. setting the timer. it's ok. but i want to lock the windows like when we press WinKey Right + L i write like this. but nothing happenes... Could you say my error SendKeys.Send("{WINR}{+}{L}"); thank you so much. Hi, SendKeys is to send keystrokes and keystroke combinations to the active application . For example: SendKeys.Send("%{F4}"); mean to shut down the application. Here is the reference about the method: http://msdn2.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx To register system-wide keys, pls check the RegisterHotKey in win32 api. Thanks ...Show All
Visual Studio Team System Error TF84037 with Excel Team Foundation AddIn
I get the following error when I try to open Excel documents stored on the TFS. TF84037: There was a problem initializing the Microsoft Excel Team Foundation Addin. Re-installing the Team Foundation Client may be required. I've attempted a full uninstall and re-install but that have no effect. It looks like Office 2003 .Net programmability support is not installed. You need to modify your installed version of Office and install this option. I thought we had a better error message for this... 1. In Add/Remove programs, locate your Office application and select it. 2. Click on the 'Change' button 3. Select 'Add or Remove features' and click 'next' 4. Select 'Choose advanced customizati ...Show All
Visual Basic Accessing Excel causes install program to run
HELP... i have installed visual studio on a users computer, and the install went fine. but now when the user creates a program that accesses MS Excel via interop, the visual studio installer begins to run also. if the user just hits the cancel button on the installer, everything goes fine. if the installer is allowed to run, it comes up with some error "file not found" or whatever. how can i stop the installer program from executing everytime my user tries to access Excel from vb.net programs Thanks, Daniel deleting the users profile and then having them re-login seemed to do the trick. fyi, the application event log had the following information about this issue: Event Type: ...Show All
Visual C# Runtime error InvalidCastException.
I get the following error at runtime. System.InvalidCastException was unhandled by user code Message="Unable to cast object of type 'abc' to type 'abc'." at abc _abc = (abc) MethodA(obj); MethodA returns type abc Please suggest. Thanks. MethodA isn't returning the type abc. Can you show us the actual code We can probably help a little more then. ...Show All
Software Development for Windows Vista [BUG] Vista doesn't start application called "install" w/o being elevated.
Hi, I just encountered this really strange behaviour, which is definitely a bug in Vista. Consider the following situation. You're logged in as an administrator account. Start a CLI shell of your choice, start it normally, so that it's running non-elevated. Now consider a console application called install.exe. It's neither a GUI application, nor is it an installer application in the Windows sense. It's just called install.exe. In my case it's part of GNU coreutils and it's called install because it's usual task is to install software on the system. However, it's perfectly valid to call install as normal user and use it to install stuff into a subdirectory on which you have permissions. This is what happens when running under Cygwin (proce ...Show All
Visual Studio 2008 (Pre-release) CheckBox List control
Hi, i have created the checkbox in the listBox with code given by josh smith.i need to get the value of the checked checkbox on Button click.what event argument should i handle how to get the value of checkbox value in the list box here the code. < Window x:Class = " SDKSample.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Width = " 493 " Height = " 300 " > < Window.Resources > < XmlDataProvider x:Key = " xmlData " XPath = " Choices/Choice " > < x:XData > < Choices xmlns = "" > < Cho ...Show All
Visual C# Translating from vb
Hi, Does anyone know how I would go about converting the following code into C# Partial Class Login Inherits System.Web.UI.Page Protected Sub Login1_LoginError( ByVal sender As Object , ByVal e As System.EventArgs) Handles Login1.LoginError 'Set the parameters for InvalidCredentialsLogDataSource InvalidCredentialsLogDataSource.InsertParameters( "ApplicationName" ).DefaultValue = Membership.ApplicationName InvalidCredentialsLogDataSource.InsertParameters( "UserName" ).DefaultValue = Login1.UserName InvalidCredentialsLogDataSource.InsertParameters( "IPAddress" ).DefaultValue = Request.UserHostAddress 'The password is only supplied if the user enters an invalid usern ...Show All
