tarheit's Q&A profile
Windows Forms DownloadFileAsync Question
Hi, I am building a class using the WebClient.DownloadFileAsync method so that I may instantiate it several times and start multiple file downloads concurrently. I am trying to build a wrapper class so that all the user has to specify is the download URL and destination. I'd also like to update a progress bar on a WinForms application (one per file being downloaded). Therefore, I would like to know what is the best way to structure my class. Should I be using delegatres, raising events, or should I use the BackgroundWorker component to handle it. I am a little confused as my class would reside in a separate .DLL and would communicate wi ...Show All
Visual Studio 2008 (Pre-release) Username credential without windows account
Hi, I'm looking at the SupportingToken sample. The sample uses client and server certificates and then add a username password "on top" of this. The username and password must be those of a user on the client machine. My "users" will not be the a windows user on their machines.I s it possible to use an arbitrary username/pass Thanks If you want a username/password pair that's not a Windows account then you will need to subclass the UserNamePasswordValidator and override the Validate method: public class MyPasswordValidator : UserNamePasswordValidator { private ...Show All
Microsoft ISV Community Center Forums What version of Team System do EmpowerISV members get?
Current MSDN Universal subscribers get a free upgrade to their choice of one of the Team editions of Visual Studio 2005 when its released. What about current EmpowerISV members And what will future members get I'm planning on joining the program, but I want to be sure I know what my team will be getting long-term, especially as it relates to Visual Studio Team System. Hi Tim Do you remember who you spoke to at MSDN As I've spoken with a number of people who just transfer me around an are clueless when it comes to Empower. Would you be able to PM me with the comfirmation email ...Show All
Visual Studio Team System permisson error trying to implement an webservice
Hello, I am trying to add an empty shell webservice. I have a workstation that has a solution. In the solution is a website that is a project that was created on the iis box itself, this are in sync. I added a webservice to AD and then tried to implement it. I got the following error. I am a admin in both boxes. Is there something I missed Error 1 Synchronization for element VSProject failed. Reason: Unable to create project 'wsSecurity' from template 'C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ProjectTemplatesCache\Web\VisualBasic\1033\EmptyWeb.zip\EmptyWeb.vstemplate'. Unable to create the Web 'http://192.168.1.184/ws ...Show All
SQL Server Stored Procedure run
I have a question about runnning SP's in Query analyzer. Where does the SP actually run 1 - I open up a query analyzer window. Create a temp table #test. 2 - create a test sp which also creates a temp table called #test and selects the results from the #test table. 3 - Why does the original temp table created in the Query analyzer window still exist Where is the SP actually Run 4 - I know the SP cleans up after itself. But why would the SP fail if there is already a table named #test in the query analyzer session CREATE TABLE #Authors ( au_id varchar(20) , au_lname VarChar(40) , au_fname VarChar(20) , phone Char(12) ...Show All
Visual C# USB printer interface
Hello, I have a BOCA usb printer, that is used for ticket printing on venues. It works under 2 different modes, one is HP PCL printer emulation and the other one is FGL (friendly ghost language) that is used sending ascii instructions through the USB port it is connected to. I need to do a benchmark for a project using both methods, so I need a way to write ascii values directly to the USB port using C#. How can I do this Is speed an issue If not you can buy a USB to serial convertor ( cable ) and write it as if it is a usb port. I am not sure if you can do it directly as if it is a serial port. I done it with a con ...Show All
Visual Studio 2008 (Pre-release) Textbox Bug
I don't know if the textbox was changed to work like this now, or if it is a bug. Up until the Feb CTP the .Drop / .PreviewDrop events of the textbox always fired, no matter what you dropped inside of it. (The data didn't show, but the event fired) Now, when dragging data, I have to use the .DragEnter event and set e.Data.SetData("") to something before the .Drop method will work. Is it suppose to work this way now Thank you Jaco The PreviewDrop event works for the MayCTP. It worked for a simple WPF project. ...Show All
Visual C# console and a windows app in visual c# express
I am trying to write a console and a windows app together. In other words, if I give it command line arguments, I want it to be just a console app; if there are no command line args, then I want it to start the GUI. So I started with a windows application and did some adding like so: static void Main(string[] args) { if(args.Length == 0) //tests to see if I want to run from the console or &nb ...Show All
Visual Studio Team System Schema Import missing GRANTs
After importing my schema, I see plenty of nice scripts for my sprocs and tables. I also see that my ROLES are created, but the mapping of roles to the sprocs is missing. I have a dbReader role that can access my query stored procedures and a dbWriter role that can access the Inderts/Updates/Deletes. somhow this relationship of GRANTS has been lost in the translation... We're pretty close to internally nailing down the design decisions on the pre and post deployment scripts as far as what they will contain and how and when they are generated. When we have definitive answers, we'll try to get them out on the forum for your review. Tha ...Show All
Visual Studio 2008 (Pre-release) WCF "Go-Live" license and Jan CTP
Read about it here: http://msdn.microsoft.com/winfx/getthebeta/golive/default.aspx Get the bits here: http://msdn.microsoft.com/windowsvista/getthebeta/default.aspx For some reason, I can only download the January SDK. The WCF January runtime is a broken link. Any ideas on where the download is Thanks, Christian You can access the WCF download(s) for Go-Live from the Go-Live donwloads page: http://msdn.microsoft.com/winfx/getthebeta/golive/downloads/default.aspx (It links to the WCF downloads for x86, x64 and ia64.) Please note that the Go-Live does not apply to the WinFX Jan ...Show All
Visual Basic Splash Screen Problems
Using VS 2005, I am using the splash screen facility within VB and within the code, having it run some general maintenance. The main exe has 5 different screens which can load depending on the command line parameter. The problem I'm experiencing (and having a lot of feedback from users) is the correct screen loads, the splash screen unloads but rather than return focus to the correct screen, the application on screen before the program was launched takes the focus. Eg. I have Windows Explorer on screen, launch the program. The prog loads and shows the generic splash screen and within a few seconds, the correct part of my app loads, the spla ...Show All
SQL Server server name PROBLEM....
Hi all, I have installed SQL SERVER 2005 CTP,Version 9.00.1314 but the problem is...as soon as i m trying to connect..i gave the local server name as SHUCHI during the installation and now i m trying to connect to it... then it gives me error as : cannot connect to SHUCHI additional information: An error has occured while establishing a connection to the server . When connecting to SQL Server 2005,this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.(provider:Named Pipes Provider,error:40-Could not open connection to SQL Server)(Microsoft SQL Server,Error:2) and i m not able ...Show All
Visual Studio 2008 (Pre-release) WPF in Feb CTP still breaking wherever!
The last time it threw exceptions when deserializing the BAML left and right trying to run compiled applications, if I was lucky, I managed it to run once, if it was the first WPF application to run on my system. The reason where was that it was a known bug related to non-SSE2 CPUs. Meanwhile I upgraded my machine to an Athlon64 X2, instead of exceptions, the application is dieing now due to simple breakpoints. I still only manage to run it once, in total two times, once on the x86 runtime and once on the x64 one. There are no breakpoints in my project, so they must be inside WPF. Why is THIS now happening It's really getting frustating. It ...Show All
Visual Studio 2008 (Pre-release) Making Hexagon shaped buttons
I've searched around and could not find out my answer. Is there a way to make a button and have it be displayed as a hexagon instead of having 4 sides I would like this hexagon button to have all the features that come with the button property. It could be viable through a bitmap image of some sort, but I'd rather be able to edit the xaml code or just use a template to create hexagon buttons. Thanks in advanced! That is beauty of WPF... you change change the entire look and feel of a control and it will still retain it's behavior. You do this using Styles and ControlTemplates. Here's a sample button that is a (crudely drawn) hexagon: ...Show All
Visual C++ VS .Net 2005, how to disable intellisense...
Hi I am really frustrated with the performance of VS .Net 2005. This is because I always see at the bottom "updating intellisense..." and it uses 60% to 70% of CPU. How to disable this updating of intellisense... Please this is making Visual studio unusable. Thanks Chandra Try going to Tools menu -> Options ->Text Editor -> C# -> Intellisense and uncheck the option "Intellisense pre-selects most recently used members". Then click OK. Does this help It does not disable Intellisense, but it should turn off background upates to the recent list. If you are fcing more problems please mention what's ...Show All
