rkaushik's Q&A profile
Visual Studio Team System How to login as a different user to Team Server?
I have Team Server installed and I have been testing with it for a bit but have come across a problem. I have the Server running in a VM and have created another user on the local system that I want to log in as. Then I gave that user permissions to use TS. On my client machine I had been accessing TS as administrator and must have checked the "Remember Password" box on the login screen in VS. Now I can't figure out a way to logout and log back in as the new user. Seems like it should be easy. Thanks, Adam Hi, Shenry Yes, that is correct; Team Server site where Team Explorer is connecting will refuse connection using IE. This can be a problem if ...Show All
.NET Development Errors when attempting to use: ExecuteNonQuery()
Hello. I am very new to using Visual Basic 2005. I was given it as a trial run by a company that is looking to hire me. They gave me a chance to create a program either simple or complex, depending on how I felt about it. I decided on creating a database that simulates an address book. I have never done this before so I hope someone can help me out with this problem. Thank you ahead of time. Here is the code that I have done so far. At this point I am attempting to add new records to the database. Searching through the current records is working fine. Thank you for the link. That seems a lot more organized. I wonder why I was never taught that. As for the deletion command, I'm sure I'll be adding that in, but I should be able to get aroun ...Show All
Windows Forms Databinding Control not applying changes on leave
Hi there I've bound some dropdownlists and textboxes by databinding to some obejcts: ComboBox1.DataSource = Rule.Plugin.AvailableFields; ComboBox1.DataBindings.Add( "SelectedItem" , _Rule, "Owner" ); TextBox1.DataBindings.Add( "Text" , RuleSet, "Name" ); All data are display correctly and the data is pushed back to the objectsource (most of the time). The two controls sits in a panel that has been dynamicly loaded by som code. The problem occurs if I hit a button on the toolbar. Then the newly typed data in the control isn't pushed back to the objects. Take the following scenario "Test" is typed into TextBox1. An item is chosen in ComboBox1 "T ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Need HELP reading a sprite file!
I've got an old game from 1996, it's really simple. Has great sprites I want to pop into an XNA project, but I'm unsure how to read the file because it's in a strange format. The file extension is .AR I know the .AR files contain multiple frames of sprite animation, and you can see the internal sprite names with a hex editor. I was thinking maybe it's a unix archive but I doubt it. Anyway, how do you recommend I read these Thanks, Glenn. I did actually send an email to the project manager for the game, we'll see if I get a response. In the meantime, I think I can video capture the animations I want and make my own sprites. Are there any design patterns for sprite animation The XNA kit prob ...Show All
Visual Studio Express Editions Anyway to print to a label without replacing text already there
Ok....So I am doing a project for school and I need to output a set of numbers to a label using a for loop. The idea of the program is that the user enters a number and then states how many times to count by it. For example user enters 5 and then 10 as the number of times to count. So the output should be 5,10,15,20,25,30,35,40,45,50 . But each time I output the number to the label the previous number is removed and the new one is put in its place. So what I am asking is if there is a way to print to that label without replacing the data I put in there before. I am sure this is an easy task. I have looked here in these forums and online and have not come up with a solution. If anyone could help me I would greatly appreciate it. Thank you. ...Show All
Smart Device Development Device Emulator Crashes after getting connected to Active Sync 4.5 Beta
Hi, Following is the description of the problem. 1. We've installed Device Emulator from http://www.microsoft.com/downloads/details.aspx FamilyID=c62d54a5-183a-4a1e-a7e2-cc500ed1f19a&DisplayLang=en location. 2. We are using ActiveSync 4.5 for connecting this device emulator. 3. The moment we connect it, teh device Emulator crashes. 4. In other scenario, the Device Emulator works fine but after some time it crashes. Can anyone help why this may be happening Thanks Mukhtar Can you send me some specifics about the crash A register dump plus callstack would be great. If you're not sure how to do this, please let me know. Also, to get unblocked, you might try the V2 Communit ...Show All
SQL Server Troubles with speed of queries
Hi, we are running MS SQL 2000 with several tables. One XY containing more than 100.000 records. After about 200 to 300 individual inserts into the table, database performance dramatically decreases. Queries like "SELECT ..FROM XY .. WHERE ..." takes about 2 minutes. Before these inserts (statistics were explicitly updated by UPDATE STATISTIC XY WITH FULLSCAN) performance is OK. Such select-query takes about 5 seconds. Database settings are: Auto update statistics - ON Auto create statistics - ON Does anybody knows what gets wrong Thanks for any tips. Jakub But if lack of right indexes was the problem then why longer execution time after just 200-300 inserts when table already has 100,000 rows ...Show All
Visual C# Dissappearing class through web service
Hello all I'm having a weird experiece with a C# web service I'm building in that a class keeps going missing. My webservice deals with creating and managing sales orders and items that relate to sales orders. When running locally through VS2005's ASP.NET server both classes are present and accounted for but when I publish the webservice one of the classes is no longer available. A cut down version of my webservice class code looks like: Hello again I have figured out the problem. The class was not being displayed because I was not referencing it correctly. The SalesOrderItems property of the SalesOrder was of type ArrayList to make managing the list easier to manage but because of this the SalesOrderItem class was not being us ...Show All
Visual Studio 2008 (Pre-release) Forcing Update of UI before my function exits
I know this question has been asked before, but none of the answers given work for me. I have a function that performs a long operation. Before that function does all its work, I want to set a Status message in my Status bar. The problem is that UI updates don't seem to occur until the function has exited, by which time the Status Message is no longer relevant. What can I do to force the UI to update I've tried calling UpdateLayout(). I've tried calling InvalidateRender(); I've tried setting the Status Bar properties within a delegate passed to Dispatcher.Invoke with DispatcherPriority.Render. None of these work. I have, elsewhere in my App succesfully used Background worker to perform longer running operations asynchronusly. I ju ...Show All
Visual Studio Team System Check-in Policy
Hi Everybody, Is it possible to create a check-in policy that only allows a developer to check-in after a successful build Thanks a lot, Bernardo Heynemann Instructions here: http://blogs.vertigosoftware.com/teamsystem/archive/2006/02/27/2307.aspx ...Show All
Smart Device Development smart card library for vb.net
hi is there any library for vb.net to access and manipulate smart cards any help is greatly appreciated...thanks Try looking here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/wcesecurity5/html/wce50consmartcard.asp ...Show All
Visual Studio 2008 (Pre-release) Listview memory leak :-\
I think listview have a memory leak since my application keeps eating memory... I'm making a little task manager which updates itself each 1 second. I bind a bindingList to a processView processView is a listview. blprocesses is bound the processView listView blProcesses = new BindingList<Processes>(); processesView.ItemsSource = (IEnumerable<Processes>)blProcesses; Here is the xaml i used for the listview <ListView DockPanel.Dock="Top" Name="processesView" Loaded="on_processViewLoaded"> <ListView.View> <GridView AllowsColumnReorder="True" ColumnHeaderToolTip=& ...Show All
SQL Server Interesting article comparing SSIS to Oracle Web Builder
http://www.tdwi.org/News/display.aspx ID=8100 I am in the last stages of converting a fairly complex hand-coded SQL (by my standards anyway- it's over 40 discrete steps using all hand coded sql statements) ET process to SSIS. I had converted this ET process already to SSIS, but using staging tables where convenient, and reference tables for the lookups, all hosted in Sql Server. Processing 250,000 rows took ~14 minutes on the dev machine (the source data is local). However I revamped the SSIS solution with the goal of removing all dependencies on an RDBMS to complete the transformations. To do this, I had to create a .net scripting transform that I now use to perform all lookups instead of the SSIS lookup component, etc. After con ...Show All
Windows Forms DataGridView with objects
When I assign a list of Objects to ComboBoxColumn I get a Display and Format error. Here is my code. Can anyone help public Form2() { InitializeComponent(); this.EnumsAndComboBox_Load(null, null); } private void EnumsAndComboBox_Load(object sender, System.EventArgs e) { // Populate the data source. System.ComponentModel.BindingList<Knight> list = new BindingList<Knight>(); list.Add(new Knight(Title.King, "Uther", true, Cup.Cup1)); list.Add(new Knight(Title.King, "Arthur", true, Cup.Cup2)); list.Add(new Knight(Title.Sir, "Mordred", false, Cup.Cup3)); list.Add(new Knight(Title.Sir, "Gawain", true, Cup.Cup2)); list.Add ...Show All
Visual Basic Formula construction
I have a big problem here, I am writing an application that requires that the user have the ability to construct their own pricing formula for different items and have managed to store that formula in the database, the problem is... How can I read a resulting formula string as a formula I.e: (BuyingPrice * (100 + VATpercent) + 10) BuyingPrice = 40 VATpercent = 17.5 I can return the string "40/100*(100+17.5)+10" but can't find a way to process it and return the result (57). Any ideas will be greatly appreciated guys. Can the formula be anything I'm assuming that the variables that can be used are fixed - otherwise you'd have no idea where the values are coming from. One thing ...Show All
