ChenWang's Q&A profile
Visual Studio Express Editions Path to .exe
I did a Webclient and it downloads some files that i want but the problem is that i want it to put what it downloads into the .exe path.....i hope i said it clear... i know the @ mark..but it just puts the file that it downloaded into the save Drive like D:\ thx! Oww sorry nvm i figured it out myself ..smart me..eh :P it was @"update.rar" ...Show All
Visual C# how to konw? and which? Form and panel?
I have create a Form and add 104 panels at it, that panels are every key at the keyboard. :D I have give every panel a name; example p1, p2, pW and pE. To that i have added contextMenuStrip1 to all keyboards panels... When you right click at a panel you can choose forward, back, turn left and jump and so on... Now i need to know how to create some "if" to easy know which panel i have right click at. And add some color to it Yes i have some more to ask you for... need to know how to easy send data from a midChildrenForm to other midChildrenForm thx for help, sory for my english... You need to handle mouse down event of panel control NOT of ToolStripMenuItem Select all the pa ...Show All
Internet Explorer Development IE7 vertical layout to window broken
The vertical layout to the window using a doctype is completely broken in the ie7. Look at the following simple example which is perfectly rendered with any browser i testet (including ie6), except with the ie7. It is also valid xhtml testable with any validator. Is there a hack around this (other than NOT specifying a doctype which lets the browser run in quirks mode), or will there be an update to the browser It is really a bad thing, because user interfaces and dialogs in html rely on a vertical layout to the window size. The horizontal layout is ok! < xml version="1.0" encoding="UTF-8" > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd "> <ht ...Show All
Visual Studio Express Editions Install application in C:\Program Files
Hi folks; Been searching, but cannot find the answer.... when I publish my application, then it gets install in "C:\Documents and Settings\ < user> \ < very long path >". How do I have it installed in "C:\Program Files", availabe for every user in the machine Thymen Vista is here. Vista does ssssssstrange things, perhaps .... but I am running on XP... Anyway, is there a way to specify the install folder Thymen ...Show All
Software Development for Windows Vista "Unclassified software" warning in event viewer
Hi all, After installation of my product Vista creates a Warning in the Event Viewer saying that I should check the software and decide if I trust it or not. Looked through the article "Keep Windows Vista Secure with Windows Defender" at http://www.microsoft.com/windowsvista/community/windowsdefender.mspx , and it seems my software is just not in the Defender's "base", so it considers my product as some kind of MALware, SPYware, but not as normal SOFTware :) It says that I should analyze the software that made the changes for potential risks and decide whether or not allow to run it ir to remove it from the computer. Of course, I trust my own product :) and do not want to delete it, but it is not good if s ...Show All
Visual C# Hadnling MessageBox
In my application when user click close button it display a messagebox askig it should save de changes or not.Three option is der yes no cancel.I have written de code in Closing event.First two cases is ok.But when i press cancel it still goes to dispose and close the form.But i want when user press cancel it should do nothing .Please tell how to handle dat.And where to write dat code. Waiting for ur suggestion ...Show All
SQL Server Custom Task: How to access/modify the Expression Collection of a package
Hi, I created a Custom Task which it has a Property called ConfigFilePath. I'm overriding the Validate() method from Task. I want to throw an error if my property ConfigFilePath is empty and if the expression for this property is empty. So far, I can check if the property is empty but I don't see how I can access the Expressions Collection of my Custom Task. Any thoughts I'd appreciate your help. Hi Michael, Let me see if I understood you. You're saying that I cannot have access to the Expression collection of a task All I want to do is for example, if you have a Script Task and there is a syntax error in the Script Task, after you close the Visual Studio GUI and return to the BI GUI you see that the Script Task has a red cross. This ...Show All
Visual Studio Authentication Reporting Services with web reportviewer
I’ve an application Web which uses to reportviewer to show information. I want that all the users of the application accede to reports by means of he himself user and password. This user is a local user of report’s server. The problem is that when attempt to show report always appear the following error: The request failed with HTTP status 401: Unauthorized. The code that use is the following one: ReportViewer1.ServerReport.ReportServerCredentials = new ReportViewerCredentials ( "Usuario" , "pwd" , "servidor" ); using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.W ...Show All
Visual Studio Team System Team Explorer installation error
Hello! One of our developers has a Windows 2000 OS with SP4. She is trying to install Team Explorer from the CD and the installation fails with the following message The following component failed to install: Microsoft Data ACcess Component 2.8 SP1 The following components were not attempted: .Net 2.0 Framework ... It comes up with Microsoft error report as well. Please assist! Hi Matt! No error number associated. She was using the default buttons on the Team Explorer wizard (mostly Next--> Next--> Accept). TFS installation was done with no issues and no other users have problem installaing Team Explorer. Thanks! ...Show All
SQL Server Serious error in RS licensing docs on MS web site
Correct me if I'm wrong... There is a potentially costly error in at least 2 Reporting Services 2005 licensing docs on Microsoft’s web site. They fixed the docs a few months ago after I called and told them about it but, now they are bad again! Here are links to the bogus docs: http://www.microsoft.com/sql/howtobuy/howtolicensers.mspx http://www.microsoft.com/sql/howtobuy/sqlserverlicensing.mspx Both of these docs say that you need 2 SQL licenses to run Reporting Services 2005 on a separate server from the SQL engine. This is not true. You only need 1 license! You do of course need the correct number of CAL's or a CPU license. The license.txt file that ships on the SQL Server 2005 standard edition ins ...Show All
Windows Live Developer Forums Looking at Menus trough HWND
I'm trying to check the status of the "Show &Emoticons" menu item in the tools menu of the Conversation Windows. I'm using the following code: #define MENUID 40020 HWND hWnd; (this variable is set elsewere in the code) // Get's Window Menu Handle HMENU hMenu = GetMenu(hWnd); // Check Menu state UINT mState = GetMenuState(hMenu, MENUID, MF_BYCOMMAND); if (!(mState & MF_CHECKED)) { return 0; } else { return 1; } I know i'm checking the right menu because GetMenuString works fine but GetMenuState never seems to work properly, it returns 0 or 8, I can't make sence out of it. Can anyone help Officially we do not support the use of hooking our HWND's. Currently to produce your desired resu ...Show All
Visual Studio Tools for Office Migrating an VBA Excel solution to VSTO Solution
Hi All, I have an Excel file (coded in VBA, Office 2000, all blank sheets, only VBA code)which we call report engine. This report engine creates copy of existing templates(100 in number), fetch data from database and populates the copy of template to generate very large number of reports. Before coding this solution in Excel, we had same thing coded using VB6. But since VB6 application was an out-process application creating Excel files, we moved to an Excel report engine generating Excel files and this improved performance dramatically. This whole solution now we want to move to .net(VSTO) solution. We will be using the existing Excel templates. Only the report engine needs to be migrated. We have already taken following ap ...Show All
.NET Development Call Web Service Using POST
I have created a web service which I am accessing just fine using SOAP. I want to test it using POST. I can get to the .NET test page and click the "invoke" which it says tests using POST, but I want to write the code to send the POST and process the response myself. I have searched a while now for a code example that uses POST to access a web service, but I can not find any. Can anyone point me to a sample code preferrably in VB .NET Thanks, -Carl I think so! I have seen it before in a web.config at work and then I found this article. http://support.microsoft.com/default.aspx/kb/819267 You need to enable the appropriate protocol in your web.config. <webServices>   ...Show All
Commerce Server CS2007 training courses - UK
I've been searching for some - there aren't any. Can this really be true Does anyone have any suggestions / recommendations Thanks. I meant Microsoft themselves. I wouldn't be surprised if there wasn't any training in the UK though because the material is still being written from what I remember reading in Max's blog. Paul ...Show All
Visual J# Socket connect timeout?
I have a bit of code that creates a new socket. I get NoRouteToHostException when the IP cannot be reached. My problem is that it takes too long to throw the exception. It takes about 30 seconds to throw the exception, how can I make this timeout shorter Here is a small example of what I'm doing: try { socket = new java.net.Socket(host, port); } catch(java.net.NoRouteToHostException e) { System.err.println(host + " is unreachable."); } Hi, Sorry, there is no other option to make this timeout shorter. But we can set the timeout exception for reading the input stream, with the socket object. so this timeout exception gives "Timeout Expired or server not available..". Reg ...Show All
