mayur8u's Q&A profile
Visual Studio Looking for vertical code indentation alignment bars...
This is a feature that I REALLY like in Notepad++ (http://notepad-plus.sourceforge.net/uk/site.htm). In case you haven't seen it before, it kinda looks like the following: public class foo { . public void SayHello() . { . . for (int i=0 ; i<99 ; i++) . . { . . . MessageBox.Show("Hello world!"); . . } . } . . // etc. . } So, there's a visible (albeit subtle) line vertically between curly brackets, lining them up. Anyway, it's a really nice visual addition that I'd like to have in VS2005. Does anyone know if such a thing exists already in VS, or a plug-in I can get that will do this Thanks! Hmmm... It's very interesting! Thank you, FredSaw! Quotes the blog post   ...Show All
Smart Device Development Unable to change deployment directory to point to storage card!
i got a Dopod smartphone 577W running windows mobile 5.0. As the available ram in the phone is very limited, i would like to deploy my programs into the storage card instead. So, i fitted a micro sd card(1gig) into the phone and it was detected correctly. when i go to properties tab of VS2005 to change the 'Output file folder (generated)' directory, i found that i wasn't able to modify that field as it was masked out! When i tried to changed the 'Location of the output on device' from the drop down menu, there was no option to select storage card. i've verified that the storage card is working correctly. pls help! thanks! here's a screenshot: <a href=" http://photobucket.com " target="_bla ...Show All
Windows Forms flicking effect
Hi all when I was discovering Visual studio .Net 2005, I tried to put about 50 buttons on a form and run the application, but I had got a strange behavior, that is the buttons started to be painted one after another making a feeling of flicking, I tried to many ways to overcome this by using double buffering but still got the problem Ahmed, Run the application in release mode as opposed to Debug and see if the problem improves. I don't know the exact details, but there is something in the new vshost.exe that causes controls to be drawn slower in debug. Ken ...Show All
SQL Server Query (count) question
I am somewhat new to SQL and I have a simple question (I think)... I have a field called results that contains several numbers seperated by columns, such as 3,6,16,22 etc. I want to write a query that answers how many of each number occurs from the range. Example: Select (total) results where id = 6 and results = 16 so the query would have to search within the string results for all the records retrieved and count the instances how would I do this I'd do the following. First you'll need a numbers table as in http://sqlserver2000.databases.aspfaq.com/why-should-i-consider-using-an-auxiliary-numbers-table.html now create a view on your table that splits out the numbers create view Split ...Show All
Smart Device Development Bolding treeview nodes create problems..!
hi I am using vb.net 2002 actualy i want to bold some nodes depends on some condtions. i used this code for bolding nodes N.NodeFont = New Font(Me.Font, FontStyle.Bold) its working fine.. problem is ,suppose node text was "Microsoft Book" after bolding that node, it may loose some charactor .for eg. it will become " Microsoft Bo" its depends on its length.depends upon its length we may lose more charactors. how can i overcome this thanks in advance You can use System.Drawing.Graphics.MeasureString to calculate the length of the string prior to display. HTH Dan ...Show All
SQL Server Will SMO support vbscript soon?
I have several sql-dmo vbscripts that I use to script out db objects to files. Now I am impleemnting horizontal partitioning using the partition function/scheme - this requires the creation of a staging table on a specific filegroup (associated with a partition) to switch the partitioned data out of the partition for archival/removal. My plan for automation is: 1. generate a table script from the partitioned table 2. Replace text in the script to rename the table and specify a filegroup. 3. Create the staging table, switch, drop ... The first problem that I discovered is that SQLDMO will not create a script correctly if the source table is partitioned. The filegroup clause, constraints and indexes are not generated. So I fi ...Show All
Visual Studio Team System I can't believe I miss SourceSafe!
Ok, I'm late to TFS. This is my first contract with it. I can't think of a Microsoft release I've been more disappointed by. I'm stunned they've stuffed up Source Control again (ah well, v3 rule again lol!). Yes shelving is fantastic. It really is. BUT: - Get Latest doesn't always Get Latest. Now this is as bad as it gets in terms of an SDE. I've seen it time and again (guys on the project now ONLY Get Specfiic Version, Select latest and Overwrite). - Add files is a pain (no context menu ). Doesn't seem to be a smooth way to incorperate added files to a changeset - You cannot simply Move a Folder (I mean come on. We've lost histories because of this, and if the serious response is to write an add-in to it I'd consider TFS feature incomple ...Show All
SQL Server Exporting results grid to CSV file, header isn't exported
Hi all.. By using SQL Server Management Studio 2005 (and even in SQL Server 2000 Query Analyzer) when a result of a query is shown in the grid, and then export that data to a CSV file, column names aren't exported. Is there a way to do this Thanks Jaime Tools->Options->Query Results->SQL Server->Results To Grid->Include column headers when copying or saving the results -- Adam Machanic Pro SQL Server 2005, available now http://www..apress.com/book/bookDisplay.html bID=457 -- <Jaime Stuardo@discussions.microsoft.com > wrote in message news:aca62042-3d42-4836-83b9-be26a1f0e3ff@discussions.microsoft.com ... Hi all.. By using SQL Serve ...Show All
Visual Studio Sandcastle - Changing icon(s) image in table of contents of a CHM help file
Is there a way to change the icon(s) in the Table of Contents in CHM help file in Sandcastle If not I would like to request a feature request. TIA, Noral In HTML Help Workshop - when creating the TOC you are able to change the image index of each TOC entry on the advanced tab when editing it, there is a choice of 42 different icons that will show up in the compiled TOC. I would like to be able to override which icon a topic gets. Noral ...Show All
.NET Development fill datasource using SqlDataReader
Hi, Can anyone give me an example of filling a listbox datasource using SqlDataReader. I want to be able to choose on my lisbox, the display and value members. Tnx. Okay, please when you post a question try to mention which version of datagrid you are talking about, as there are so many differences between the web DataGrid and Windows DataGrid, for example in web you can bind the DG to DataReader, DataTable, and DataSet, but in Winforms you can only bind the DG to DataTable or DataSet. Try to modify your code or you can use a function to transform a data reader into a datatable but I strongly recommend the first solution to get away from looping stuff ! Regards, ...Show All
.NET Development Get the type of exception
Hello guys I just want to retrieve the type of exception my application does, and depends on that "do something", but how can I evaluate that example: If this type of exception do this etc... if system.IO.FileNotFoundException then do this: I know that the variable ( ex as Exception) have the type of exception, "i read its type", but first how can i retreve it & keep it in some kind of variable and then compare & do some action Thanks Help will be appreciated I would recommend that you don't catch System.Exception, but rather catch the specific exception that you want to handle: Try ... do stuff that may throw ... Catch ex As System.IO.Excepti ...Show All
Visual Studio Corrupted files on check in with SourceSafe beta
Hello, We seem to be having issues with Visual SourceSafe V8.0.50215.44. Our toolset has used SourceSafe for asset management for two projects now with little issue. Since we updated to the new DevStudio beta 2 and the accompanying version of SourceSafe, we have been having intermittent issues with SourceSafe. Sometimes when we check in a new version of a binary file, it will appear in SourceSafe as a 0 K file, or even worse randomly corrupted. There doesn’t seem to be any way to predict if this will happen, and it has made the process of updating our assets very laborious, because we have to double check the checked in file to make sure it didn’t get corrupted. We will have to revert to a previous version ...Show All
Gadgets The View privilege about my gadget???
Dear All, I have a question, I test runing a gadget in MyLocalhost, and want to display it in my MSN Space. When I use my own account to login space, I will upload and see my gadget in my space(Whenever edit mode or view mode).But when I log off and I can not see my gadget and its frame. So I guess it must be caused by somehow from Athentication.The similar question is that it can not read the tile from gadget.xml file. So I just want to inquery to all, who can tell me the clearly answer and solution, is it caused by my work is third party gadget Thanks in advance(^_^) pluto This is by design. Only gadgets hosted on Gallery are publicly viewable on Spaces pages. If you load a gadget from elsewhere (localhost, so ...Show All
Visual Basic Visual Basic 2005 & Visual Studio.net
When I try to open a new web site project: I do not get the 'New Web Site dialog with the correct "ASP.net WEB SITE, ASP.NET Web Service, Personal Web Starter Kit and Empty Web Site --Templates. Instead I get the templates that one normally sees when starting a new windows application, so I suspect that something is amiss in my install or setup... Does anyone know how to fix my setup so that I get the correct templates when trying to start a new web project FYI: I try to launch the web project by using the : File/new/web project menu and this is not working as it should... Ideas anyone H.G. iT TURNS OUT THAT I WAS MISSING THE WEB APPLICATIONS EXTENSIONS TO MY VISUAL STUDIOS INSTALL... ...Show All
Visual C# PInvokeStackImbalance was detected
Hi, I keep getting this error when I try to run my project from the IDE.This does not happen when running the exe. The details specify that the Stack Imbalance was detected in a third party dll which I am using. How can I fix this. Thanks, tribal A call to PInvoke function ThirdPartyDll!Namespace.ClassName.NativeMethods::ImageList_DrawEx' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. i have a similar problem with the following c++ sig to c#. could you point me int the right direction c++: typedef ...Show All
