swingme's Q&A profile
Windows Forms Is it Possible ObjectDataSource and datagridview
I have an objectdatasource bound to a datagridview in a Windows forms app. The datasource object has a boolean field. I can load and display the data ok. If there are 20 are so rows and the AddRow row (*) is not visible everything is ok. However if the addrow row comes into view or the mouse hovers over the boolean field then I get the error in the DataError event: "System.FormatException: Formatted value of the cell has a wrong type". I tried setting the CellStyle Null Value to false and 0. I tried setting the true and false values. I tried putting default values into the ObjectDataSource's constructor. I can't se ...Show All
Visual Studio 2008 (Pre-release) Move Event for a FrameworkElement?
I'm trying to detetct a change in the position (ie Canvas.Left Canvas.Top) property of a few FW elements. UpdateLayout is usually tripped (not always) and the sender is null in the UpdateLayout event. Is there any other way Thanks Ron If you are binding in code, then as suggested on the other reply you should bind to the object directly. binding.Source= fromObject; if you wish to use ElementName for an object you are creating in code, you have to first register the name with the corresponding namescope before the ElementName gets registered and will be found by the binding. I ...Show All
Visual Studio 2008 (Pre-release) XML column support?
Hello! Linq exists in various flavours, e.g. DLinq and XLinq. Is there a convenient way to take advantage of the new XML column features in SQL server 2005 when using DLinq If yes, any hints Best regards, Heneik Dahl Yes - it is like a string. Updates are at the entire string level, not based on difference between before/after XML. Dinehs ...Show All
Windows Forms How to add a user control inside a treeview control as a node
I am having one user control (containing two combobox and one button) , I want to add this control as a node in a treeview control , to be more precise now I want my user control acting a node in the treeview control instead of treenode . How should I achieve this we can not extend treenode class because if I do this then I can no ...Show All
Visual Studio Express Editions Is the Conservation Of a Computer System’s Resources a Virtue or An Evil?
Hi There..... Is Minimal use of a Computer System’s Main and Auxiliary Memory a Virtue or an Evil Thanks You should tax the system's resources as little as you reasonably can. There's no need to write ridiculously complex code in order to minimise your app's footprint, but the fewer resources your app uses the more responsive a system will generally be overall, which makes for a better user experience. ...Show All
Windows Forms How to have multiple panels?
I'd like to implement a multi panel interface into my Windows Application. What I mean by muilti panel is where when a menu item is selected the appropriate panel shows in the the body of the form. When another menu item is selected the curent panel is removed and the other menu item panel is shown. How can I implement this easily Some other programs which have a similar feature are Tweak - XP and Ad-aware. Make sure to create a separate project for the controls. Basically, you will want to create a user control for each of the view that you would like. Specify the docking/anchoring on the widgets. O ...Show All
Visual Studio MSBuild equivalent of Nant Solution task ...
With Nant I can do the following: <solution configuration="debug" outputdir="${build.dir}"> <projects> <includesList name="${Includes.List.Name}" /> </projects> </solution> Where includes.list.name is a text file list of .csproj files in my application. The nant solution tasks will build all the projects in correct order - most dependent projects first, etc. The app is fairly large >450 projects and growing. Is there an equivalent in msbuild I think that I am getting ahead of myself on this. Our consultant te ...Show All
SQL Server Finding a tutorial for the complete beginner.
Is there a tutorial or documentations for the "complete beginner" similar to the one made for VB.net express but for SQL Express I went over the Visual Web Developer Express tutorial but its only mention about sql was using the 'sqlcmd' command line tool with a copy and paste. What I'm looking for is actual docs on creating, editing, updating tables, records, etc. A GUI is what I'm really looking for; I tried using SQL Express Manager but it has no docs. Any help in the right direction is appreciated. Usually the SQL Server Books Online (BOL) offer first hand information and should really become your compagnion when dealing with SQL Ser ...Show All
.NET Development SqlClient.SqlException
Hi, All. I am not sure my question belongs to here. I tried to use DAAB(Data Access Application Block) in my project, and got an unhandled system error on system.data.dll. The code broke on da.fill(ds); line as listed below. I have tested the connection string and the stored proc, and they are all working. What else should I do Thanks! public static DataSet ExecuteDataset(SqlConnection connection, CommandType commandType, string commandText, params SqlParameter[] commandParameters) { //create a command and prepare it for execution SqlCommand cmd = new SqlCommand(); PrepareCommand(cmd, connection, (SqlTransa ...Show All
Software Development for Windows Vista Problem with update
I updated my windows, then restarted it as instructed. I got this really nice message saying "The file wmp.dll a version number of 10.0.0.3990 where 10.0.0.3802 was expected Windows Media Player is not installed properly and must be reinstalled Do you wan to install the Player from the Microsoft Web site ". The problem is I have ALLOT of things on my windows media player and I dont want those to go away or me having to reorganize ALL 4 gb of my music, my settings, and redownload all of my visualizations. If you can help me or you could talk to microsoft about this update problem it would be greatly apreciated. ...Show All
.NET Development .NET 2.0 Remoting TCP channel, is it bi-directional?
douglasp (or anyone for that matter!), please could you answer if the TCP channel in .NET 2.0 has been updated to support bi-directional communications by default We have an application that is using a custom channel supporting bi-directional TCP and SSPI. However, the improvements in .NET 2.0 (native support of SSPI based security and the new IPC channel in .NET 2.0) are not easy to ignore given we could benefit from the use of the standard channels. Trouble is, we make use of the bi-directional channel to allow communications through network devices such as NAT routers, firewalls, etc. easier and losing this advantage would be s ...Show All
.NET Development Finding List of Users in a Domain / Network
Iam working with c#.net, i would like to know how to retrieve a list of users in a particular domain or the network from a company intranet environment. Thanks Sriram ...Show All
Software Development for Windows Vista Wait until time/Persistence & Tracking
Hello, I have to questions based on waiting/persistence/tracking scenarios: 1. Suposse that I want to wait until a specific day. If I use a delay or something like that I understand that at this point the wf becomes idle and the persistence service writes it down. What happens later if I turn off the runtime engine and I want to start it later. How do I continue with the saved instance without explicit set this Is there any standard solution to this 2. Suppose that I want to track the wf states and I implement a tracking service that also persist data. How do I solve the scenario where the wf has changed but the tracking updates are interru ...Show All
Visual C# Books to recommend ?
Greetings, We have to purchase a new set of books to update our library to the new 2.0 .NET release and Visual Studio 2005. Which books would you recommend for the following topics 1) Visual C# 2) Visual Studio Team System 3) .NET Framework 4) ASP .NET 2.0 Thanks ! Acoquinar. Professional C# 2005 Professional ASP.NET 2.0 Working with Microsoft (r) Visual Studio(r) 2005 Team System ...Show All
Visual Basic Getting primary key of record just INSERTed
Hi. What is the best way of inserting a row of data to an SQL Server database and getting the primary key (identity) of the record you just inserted - preferably in as few statements as possible I've not managed to find any examples of this on MSDN. Is there a method that does this without requiring another SELECT statement following the INSERT Thanks, Mark Hi, You could try something like: strSQL="SET NOCOUNT ON; " &_ "INSERT INTO tblOrders (customerID,created) values (" &_ ""&session("customerID")&"," &_ "'" & fixdate(date()) & " " & time() & "');" &_ "SELECT SCOPE_IDENTIT ...Show All
