Rajat Solanky (MCSE, MCSD)'s Q&A profile
Visual Studio Express Editions How to count the number of CheckBoxes Checked
Is there a way to count the number checkboxes that have been checked on a form and when a certain number as been reached disable any remaining checkboxes Regards LVB For each c as control To Form1.Controls Should be .... For each c as control In Form1.Controls Sorry ...Show All
Visual Studio 2008 (Pre-release) Drag and Drop with Multiple Selection ListViews
Hello, I'm trying to build a WPF application which contains a ListView that allows multiple selections and allows the user to drag and drop selected items into another listview. I've been able to get drag and drop to work fine, but I'm having some trouble working with the behaviour of ListViews when dragging the mouse on them. I've experienced the following problems when I've been working with ListViews and supporting drag and drop on them: If the user clicks on an item and holds down the mouse button and then begins to drag, the ListView will change the selection as the user drags over other items. I don't want it to do this- when the user clicks an item and holds the button down, I want the item that they clicked on to always be selecte ...Show All
Visual Studio Team System how to rectify the problem "AssembliesShouldDeclareMinimumSecurity" that FxCop shows
Hi, FxCop shows error " ComVisibleTypeBaseTypesShouldBeComVisible ". How could this be resolved. Thanks in advance. Don't you think it's enought to write your question once And before asking maybe you should read the page the FxCop rule violation links to. ...Show All
Visual Studio Single stepping seems to not work correctly
I'm writing a small program in C using Visual C++ 2005 express edition. I try to singlestep in the below listed function with weird results. I have breakpoint at the start of thefor loop. First thing i is reported to have a 11 digit valu instead of 0. Then when I single step the first turn in the foor loop is as expected but then when I press F10 I go directly from the strp++ after else ti the j=i statement in the if code and that makes no sense float Evaluate( char *strp) //Evaluate an arithmetic "partstr=%s\n" ,&partstr[j]); Processstr(&partstr[j]); strp++; j = i; } else strp++; } result = Getoperand(); return result; } No, just delete all the temporary files created during ...Show All
SQL Server LIMIT'ed to TOP in TSQL???
I have worked with TSQL quite a bit with different projects... I have recently had a slew of projects that got me to start using MySQL for the database... I know that may be sacralige here; however, it is relevant to my point. I have always had a problem in TSQL that the TOP attribute doesnt quite do what I want. I would like to pull the TOP 50 records from a data set, but I want to pull them after the initial 200 records. I have come up with several ways around this, however, none are efficient. The reason I bring up the MySQL usage is because there are two commands in MySQL to which work Postregres, Oracle, basically any PLSQL DB. LIMIT (start param, rowcount param) AND OFFSET (start param) These make page numbering very simple and effi ...Show All
SQL Server Ragged Hierarchies in RS2005
Hi... I am connecting to Analysis Sercices 2000 from Reporting Services 2005. When building a dataset, just in the data pane graphical designer, I have dragged 5 levels of the dimension 'Organisation' into the data pane. The dimension has members at level 4 that have no children. But the dimenension also has members at level 5 WITH children, meaning that the dimension is ragged. If I only select levels 1-4 on the data pane, I see all level 4 children. However, if I also drag level 5 to the data pane, I loose any level 4 members that do not have children. This means I loose vallid members that have data. Does anyone know of any way around this Thanks Jeremy Sorry I had not seen your post ...Show All
Visual Basic Treeview - want icons on parent not both parent/child ??
In loading a treeview with db items I am assigning icons with a case stmt that works fine. The problem is the child records for each parent also get an icon (which they should not). How can I prevent the icon from appearing on child nodes 'load treeview ' Cursor.Current = New Cursor("MyWait.cur") TreeView1.Nodes.Clear() TreeView1.BeginUpdate() TreeView1.Nodes.Add(New TreeNode("My Stuff")) kk = kk + 1 'next For Each myRow In DSLib.Tables("entries").Rows keyStr = myRow("myKey") dateStr = myRow("mydate") wordsStr = myRow("keyWords") catStr = myRow("catalog") fileStr = myRow("fileType") ' PAREN ...Show All
.NET Development "Authentication failure" exception
I'm in the process of upgrading a distributed VS2003 application to VS2005 when the application trys to access a method on a remote object I get an "Authentication failure" exception. does anyone know what could be causing this. The application in question was working completly fine before the upgade to VS 2005. ...Show All
SQL Server Anyone written an end user guide to using the Reportbuilder?
For those using the ReportBuilder, has anyone put together any sort of end-user guides to getting started with the tool I'm not referring to articles and docs written from the perspective of introducing the tool and feature set to developers and DBAs but rather something we could all then give our end users when they first start using the tool to build and run reports. I realize there's lots (and lots) of online help within the tool, but we all know that some users never read that. Again, I'm thinking of something ranging from a 1-2 page quick intro to the use and features, to perhaps even a several page guide. Even if someone's written one for their company and so it's branded as such, if you're open to sharing it, I won't mind rebr ...Show All
Software Development for Windows Vista Test case 29
Test case 29 - steps 2.d says (in the Orca Shortcut Table) "Make note of any component that has more than one file listed to be used as a Start Menu or Desktop shortcut" I do not quite understand. My main component has a shortcut listed for directory ProgramMenuFolder and one for DesktopFolder. Is that OK Hello. Still it is not clear for me. How to detect the shortcuts and menu items used by the component from Component table Thanks. ...Show All
Software Development for Windows Vista ASP.NET and WWF
Hi, I need to build anything like this :-) Scenario: 1) The user clicks in a button and start the workflow. 2) The workflow executes an activity and stop waiting for a action user. 3) In any moment the user access a asp.net page and list all workflows pendent and approve and cancel the workflow. 4) The stoped workflow is notified and resume the flow. I'm thinking in use the mechanism to save and track workflows in database, but I don't have idea about how to do this communication between asp.net page and workflow already started. May I to do it using events Thanks in advance. Andre For more about ASP.NET tracking and persistence, read the follow blogs of Tom Lake: http://blogs.msdn.com/tomlake/archive/cat ...Show All
Visual Studio "Get Latest Version (recursive)" gives list of files for each project
Hi All, We are trying to implement MS-SCC API functions (v1.3) for a SCM. When a solution is opened in VS2003/VS2005 with multiple projects and choose option "Get Latest Version (recursive)" for a solution, SccGet() function is called with list of file for each project. I want to show list of all files in a dialog box. While if "Get Latest Version (recursive)" is selected for a project, it shows all files (including files from directory). Can't distinguish whether SccGet() function is get called from solution node or project node or file node. Any pointers Thanks, Abhay Hi, The MSCCI interface doesn't distinguish between types of nodes in Visual Studio - it just returns a list of ...Show All
Visual Studio Common documentation for overloaded methods?
Is there a way to write a snippet of common doc for two or more overloaded methods Thanks Karlo Setting the CommentsOnly property to true on the Assembly to Document entry will save you from having to specify the assembly on it. Eric ...Show All
SQL Server Live Webcast tomorrow Essential Team System for Database Developers
Live Webcast tomorrow Essential Team System for Database Developers 1 PM Central time 12/28 https://www.clicktoattend.com/invitation.aspx code=112602 ...Show All
Visual Studio 2008 (Pre-release) confused of creating an instance c#/xaml
Hi, I have a good grasp of OOP from my Actionscript 2.0 background although I am very new to c# and xaml. I am somewhat confused that I have to create an instance of an object in c# when it already exists in xaml. For example; I create a Storyboard in xaml and call it myStoryboard. If I want to access and manipulate myStoryboard in c# I have to create a new instance of Storyboard before I can set it = to myStoryboard. Why do I have to do this if the instance already exists as it seems to me that I now have an instance of an instance Sorry for the nub question but I just can't seem to fully appreciate the 'why' of this process thank you thanks. so there is a difference in the way I access storyboard depending whe ...Show All
