Saeed Nawaz's Q&A profile
Windows Forms How to Delete Records from Sorted DataGrid, , Programmatically
I have a Delete button on a form and a datagrid (forms). When I sort the datagrid and run my Delete Routine, I end up deleting with reference from the row number. So if A (which it's absolute positions in 2) is sorted and is now in row 10, when I delete it, it removes which ever was in row 10. How would I get the absolute row position of a row in a sorted datagrid It seems like the ticket but what datagrid event ...Show All
Windows Forms How to control the location of ClickOnce installation?
I successfully installed my ClickOnce application from a remote site. However, it is be default installed in c:\Document and Settings\myloginname\.... How to change the installation location to be under c:\program files\... Thanks How did you find the location of the application I can currently do it from with in the app but for that, the app needs to be run atleast once before the location entry is created. I am using a cust ...Show All
Windows Forms DataGridView Two-Way Binding
Hi this is probably those kind of questions that comes one a month, sorry about that I have a DB in MySQL and i'm using the mySQL drivers I've manage to create a DataGridView that shows the accurate information from a given table What i wanted i that this DataGridView acted as a "port" to the DB, what i mean is, when i delete a row on this DataGridView the actual row in the Table is also deleted, the same for updates and inserts. How c ...Show All
Visual Studio Express Editions Subtraction of a decimal less then 1
I am not sure if anyone else had this problem, if so please help... While writing a simple function that holds the equation: bVariable = 1 - aVariable (where: 0 < aVariable < 1) Every so often a nasty little bug showed its head. I have used every number decleration (keeping both the same). My problem is that the code works, but the value calculated is wrong! When "aVariable" is equal to 0.94, the value ...Show All
Visual Studio Team System How to change Database server
How can the database server be changed after TFS is installed to use another database server For example, to get going, many people will install TFS on a single machine, and once they want to deploy it they will want to move the SQL databases to a corporate database server. Is it as simple as backing up and restoring the databases Where are the database connection strings stored Yes, you can move your data ti ...Show All
SQL Server Higher Level Edition Error Message
Hello all, I just installed the June CTP Client Tools on a fresh hard drive (no previous CTPs installed). I am trying to run a package that was written in the April CTP and runs successfully on other computers with the June CTP installed. When I run the package, it fails on an 'Execute Package Task', and I get the error message: "The task cannot run on this edition of Integration Services. It requires a higher lev ...Show All
Visual Basic Taking a screenshot of a panel...
I am not very good with imaging and the like, so I have a question... How would I take a screenshot of a panel and save it to an image I need to take a screenshot of all the controls in it as well. Thanks, Tanner With the v2 framework, graphics.CopyFromScreen will bitblt an area of the screen to a surface: Dim screenSize As Size = New Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Heig ...Show All
Visual Studio Breakpoints stopped working
All of a sudden some breakpoints in my solution stopped working. The tooltip displays the following error message: "The breakpoint will not currently be hit. The source code is different from the original version." I rebuilt the solution; deleted /bin and /obj directories of the project in question; restarted Visual Studio; all to no avail. Any hints what might cause this, and how to solve it I'm using Visual Studio 2005 Professional Editi ...Show All
Visual Basic Processing Serial Data
I need the reduce the processing time in a uMicrocontroller to allow faster sampling times. This has creates a problem in the data collection routine in VB. The old system collected the analog data a converted it to a decimal format before sending it to the serial port. This data is collected and saved using Hyperterminal. The VB program would, when run, would open this file and process the decimal data by graphing it. What I need ...Show All
Visual Studio Team System Visual Source Safe files
As I look through our Source Control in TFS I see files with the .vsscc extention and many other VSS extension files. Do we need these files ...Show All
Visual C++ Refreshing an rich edit box
Hi all, I created a Rich Edit box using MFC and am trying to do a refresh on the edit box. I did an UpdateData() function but it keeps overwriting the current data with new data. I don't want to do that. Basically, I want to keep the current data as well as add the new data on to it. I tried the append (+=) function, but when I call the UpdateData() function, it takes a while to update. I am appending large quantites of data which slows the ...Show All
Visual C++ How to install a Debugger Visualizer for a C++ object in Visual Studio 2005?
How to install a Debugger Visualizer for a C++ object in Visual Studio 2005 I could happily and successfully follow the tutorial for creating a Debugger Visualizer in Visual Studio 2005 Beta 2 in C#. But there was no information about creating such in C++. How to do it What I mean by creating such in C++ is having an object in a C++ application visualised by a Debugger Visualizer (written in any language). Besides, I'm sure i ...Show All
Windows Forms Disappearing user controls in VS2003 forms designer
Hi All, I have a series of user controls which keep disappearing off my form. When I look at the auto generated code it seems to refference the controls wrong. For example it puts: ClarityControlLibrary.Clarity.ContactDetails instead of ClarityControlLibrary.ContactDetails Clearly there is no point in correcting it as it would just change it back again as it is in the auto generated code section. Once it has disappeared I cant add them back on ...Show All
SQL Server 2005 CTP Connection error
When I try to connect to the 2005 CTP SQL server in any of the VBexpress software packages I get the gfollowing error user instance login flag not supported in this version of SQL I am not sure what to check or what I may have missed in the SQL server setup I had the same problem and it was solved choosing the appropriate MDF file to the field "AttachDBFileNAme" and inserting the logical name of ...Show All
Visual C++ Creating a tabbed view in an SDI
Hi, I just want to know how to create a simple tab in a SDI document. Are there any good examples of this I found one in the www.codeproject.com but it was too difficult to understand. Much obliged! "I suggest switching to a CFormView view and use the designer to drop a tab control into the view" Is this the only way to do this Is there no code where I can add the tab ...Show All
