Ira Berkowitz's Q&A profile
Windows Forms How to add subItems to ListView after the column is removed and added back?
Hi.. I have a listview with columns,I want to remove some columns and the entire contents associated with the Columns.Now I want to add a column from the removed columns.I will get the data from the Tag of the ListViewItem.But, how do I know which subItem to be added to the respective column Thanks, nhd ...Show All
.NET Development TableAdapter Update problem
Hello, i have problem in my application. I create dataset with single table. In MainForm i have 2 texboxes and update button. This is code for update button: [CODE] Klient klient = new Klient(); klient.ShowDialog(); KlientDataSet dataSet = new KlientDataSet(); Serwis.KlientDataSet.KlienciRow klientRow = dataSet.Klienci.NewKlienciRow(); klientRow[0] = Guid.NewGuid(); klientRow[1] = klient.Imie; klientRow[2] = klient.Nazwisko; dataSet.Klienci.AddKlienciRow( klientRow ); int result = this.klienciTableAdapter1.Update( dataSet.Klienci ); [/CODE] I got 1 in result variable so i think that database was updated. No my dat ...Show All
.NET Development Question about ThreadState bitmask and MSDN docs
Hi all freinds It say in MSDN Doc "The Thread.ThreadState property of a thread provides the current state of a thread. Applications must use a bitmask to determine whether a thread is running . Since the value for Running is zero (0), test whether a thread is running by using C# code such as (myThread.ThreadState & (ThreadState.Stopped | ThreadState.Unstarted)) == 0 or Visual Basic code such as (myThread.ThreadState And (ThreadState.Stopped Or ThreadState.Unstarted)) = 0 ." My question is, can not I use: if (myThread.ThreadState == System.Threading.ThreadState.Running) instead since I have seen it in some books and internet forume ...Show All
SQL Server Urgent- sqlconnection string
hi, Can anybody help to guide how to extract/check the sql connection string in SQL Server 2k Any hit will be sincerely appreciated. Regards Hi, look at www.connectionstrings.com , you will find lots of connection strings there. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Team System WSS issue list and TFS Work Items, any integration?
I suppose there's no way to update the issue list in the WSS site with the work items entered into TFS and vice verse ...Show All
Visual Studio 2008 (Pre-release) TreeView BeforeSelect event equivalent
How can I cancel a TreeViewItem selection When a user selects a new item in the TreeView I need to check whether there are unsaved changes and give the user a chance to cancel the selection and save. BeforeSelect event did this for WinForms. How do I do this in WPF Thanks Michael What about the SelectedItemChanged event of the TreeView class You could intercept the event when a new item is selected, and do your validation from there. And i'm pretty sure you can select the old item back if required. ...Show All
Windows Forms How to do indeterminate progress bar?
Sometimes you know when a task begins, and when it ends, but you don't know the increments. In such situations you want to display an "indeterminate" progress bar, which basically means the progress bar doesn't fill from left to right, instead a few segments move from left to right and starts over from left, and this repeats. How do you do such a "never ending" progress bar I have seen it in Microsoft applications, but I don't see a property on the progressbar class to turn this mode on. i need help i want to know how to add the progress bar on my web browser i have built, i added the progress bar, i have ...Show All
SQL Server Cannot change naming metadata
Hello, I've found a bit of an infuriating nuance in SSAS2005. My cube used a view called view1. At some point in time the DSV was changed to use a very similar object called view2 instead. I got a failure when processing the cube. The message was: Errors in the OLAP storage engine: An error occurred while processing the 'view1' partition of the 'foo' measure group for the 'bar' cube from the foobar database. In other words...the name of the object in the deployed DSV is still view1. I've looked at the XML and it has a friendly name of view2 (helpful) but the object name in the message above is really really misleading. ...Show All
Windows Forms But What About VB.NET?
It seems that all the sample code and controls ( http://www.windowsforms.net/Default.aspx tabindex=4&tabid=49 ) are written in C#. The ability for VB.NET projects to utilize C# code WITH EASE is, IMHO, highly over rated. I'm trying to develop an app with an Outlook look and feel (cuz my boss wants me to), but the Joe Stegman sample code is in C#, and try as I may, I can not get any of the code to play nice with myVB.NET project. The sample in question ( Outlook 2003 Look and Feel - Joe Stegman ) boasts all this ability in 100 line of code and hardly any effort. I suppose that is true, after you take into account the time s ...Show All
Visual Studio Express Editions Copying files from a directory
I want to copy files from specified directory to another target directory, but only those files, that has been changed since specified date. If the first directory has subdirectories, I want to copy files from them too. Can anyone tell me how to achieve this goal.;o). Is it possible, the structure of directories and subdirectories in the target directory to be the same as this in source directory Hey Paul, what you should essentially work with are the DirectoryInfo and FileInfo classes. DirectoryInfo offers you several options so work with or browse thorugh your desired folders. See .GetDirectories to get all subdirectories ...Show All
Visual Studio Team System IDE Attempted to read or write protected memory
I am seeing these errors frequently with VS 2005 RC1. I do not recognize any pattern that causes the errors, but I am going to guess that it is somehow related to aborted a debugging session on a webtest because that is what I was just now doing when I got the errors. --------------------------- Microsoft Visual Studio --------------------------- Attempted to read or write protected memory. This is often an indication that other memory is corrupt. --------------------------- OK --------------------------- followed by: --------------------------- Microsoft Visual Studio --------------------------- Unspecified error -------------- ...Show All
SQL Server Newbie Question
I am replacing the computer expert in my company who just died until we get a replacement. I made some reports using the old database using the wizard. I am trying to get it to kick out reports in HTML and when I try building the program I get this error "The project cannot be deployed because no target server is specified. Provide a value for the TargetServerURL property in the property pages for this project.". What do you think the problem is Please read this section in MSDN: http://msdn2.microsoft.com/ms159270.aspx The TargetServerUrl describes the URL of the report server you want to deploy your rep ...Show All
Windows Forms OracleParameterCollection Problem
Hi there, I receive the following message when I run my function that executes an Oracle Stored Procedure: The OracleParameter is already contained by another OracleParameterCollection Does anyone know why this is happenning Below the code I used: Private Overloads Function Oracle_ExecuteProcedure(ByVal ProcedureName As String, ByVal Parms As OracleClient.OracleParameter()) As Integer Dim intRowsAffected As Integer Dim OracleParm As New OracleClient.OracleParameter If MyConnection. ...Show All
Windows Forms BackgroundWorker keeps changing my code!
I think I'm going crazy... I have a VB project with several forms that use BackgroundWorkers. The code works fine. However, from time-to-time, VS B2 decides to change the code in my DoWork event handlers. It deletes ALL of my DoWork code (leaves the Private Sub and End Sub lines) and replaces it with: 'This method will run on a thread other than the UI thread. 'Be sure not to manipulate any Windows Forms controls created 'on the UI thread from this method. In addition, several (but not all) of the other event handlers have the layout of the declaration (the Private Sub) changed -- the content ...Show All
Smart Device Development Deploying a C# application on a windows mobile 5.0 pocket pc (treo)
This is my first time developing for windows mobile and for the Treo 700w. I'm working with Visual Studio 2005 and I'm using C#. I've got the latest version of active sync and the smart phone sdk. My basic hello world app works great on the "Windows Mobile 5.0 pocket PC phone square emulator" I'm now trying to get the application to work on the physical treo. What I've done so far is build the application build -- > Configuration Manager configuration : change (Debug to Release) I built using this "Release" option. I then went into my file system, grabbed the hello.exe file generated from this build and ...Show All
