skrvigneshkumar's Q&A profile
Windows Forms DataViewGrid bug? (keeps auto-generating columns)
When we use the grid, it auto-generates columns for us. At first I thought that was handy. We removed some columns, but they are again re-generated automatically. ITEM TWO We also noticed that the order of the columns is not the same at run time as it is at design time. Note: I am using VSTS Beta 3. Beat regards, Jerry Nixon YES! I have the same problems! A copy of all of my textboxcolumns (I have 27) gets generated, but they are not referenced. Also, the column order gets switched -- for me, I get all of my image columns first, then my combo box columns, then my text box columns. It's VERY ann ...Show All
.NET Development Copy/paste of generic collections
My copy/paste operation results in a MemoryStream full of '\0' characters on the Clipboard. Maybe my approach to copy/paste is wrong when handling generic types All entries in the CollectionBase are, of course, ISerializable and the binary serialization to file fully works. The collection is, to sketch the context, a set of shapes and connections of a diagram (application). Thank you so much for you help. ...Show All
Visual Studio Team System Profiler quits generating reports (or gets stuck on the same one)
I upgraded to Team System for Sd earlier this week from 2005 Pro in order to try out the profiler. I can get it ro run once or twice, and then it seems to quit. In my solution, I have a class library (Rancher) and console app (Rancher.Test). I used the Performance Wizard to create a session for the console app, and then added the class library as a target project. Instrumentation, no allocation gathering. I ran it twice with no problem and got reports like these: Rancher.Test060412.vsp Rancher.Test060412(1).vsp Pretty normal. I tried to run it a third time, it ran fine, but no report showed up in the Session window. Tri ...Show All
Visual Studio Tools for Office Implement Drag & Drop from taskpane to Excel/Word
Is possible to implement Drag&Drop from a control in action pane in a cell of Excel or Word Thnks ...Show All
Visual C# How to launch process in c#.net web application(on button's click event)
Hi All, using System.Diagnostics; Process process = new Process(); process.StartInfo.FileName ="msimn.exe"; process.Start(); This code runs perfectly with Console Application but I need to run same " msimn.exe" on button's click event in web application..I have tried but unable to do that.. Pls..let me know how to do that ,Thanks in advance Leena So how is it done indirectly We have the same issue. Our users have installed say program A, B and C locally and want to see icons for these programs on a page on our intranet. They want ...Show All
.NET Development DataView with DateTime comparation
I have a DataTable which has a DateTime column . I want to view in my DataGrid only the rows that has any date and their time is between 12:00 and 16:00 how can i compare only the time What you do is create a DataView over the DataTable and set the DataView's RowFilter property to some expression that will filter down the results. Then attach the DataView to the DataGrid. So DataView is like filter you can layer over the DataTable. If you have a DateTime you can use the Hour property to get the hours: DateTime dt1 = DateTime .Now; if (dt1.Hour > 12 && dt1.Hour ...Show All
Visual Basic How can i generate Serial Number in Data Report
Hi How can i generate Serial Number in Data Report while retrieving rows from Sql Server 2000. I am using VB 6. Any help is highly appreciated and thanks in advance. rahman A couple of points here This forum is not for vb6 questions you might want to try one of the vb6 newsgroups . And what sort of serial number are you trying to generate Just a unique id for each record (in which case you would define some form of index) or are you looking for some form on sequential number for the records in the report. ie. 1,2,3,4... ...Show All
Software Development for Windows Vista Reloading the state machine instance from persistence in Tracking
I am trying to extend The Ordering State Machine example. I want the form to load all persisted workflows on start up, displaying each at their current state in the list view. I have implemented the SqlPersistenceService and the Tracking service successfully and both databases are being populated. As a test I am loading a persisted workflowInstance using its GUID WorkflowInstance CurrentInstance = theWorkflowRuntime.GetWorkflow(new System.Guid("63714370-9bd8-4ab3-9928-cc3c0b2c6696")); CurrentInstance.Load(); I have implemented the handler for the workf ...Show All
Windows Forms click once and the framework
probably already documented but..... I take it the user has to have the framework. how can the app developer get the framework to the user Yes, the framework is a requirement for a ClickOnce app to run. VS comes with a bootstrapper that the user can run to install not just the framework, but any other requisite software for the app. All this, and much more can be found in the FAQ on the smart client dev center. http://msdn.microsoft.com/smartclient/community/wffaq/wf20.aspx#9mqicswf - mike ...Show All
Visual Studio 2008 (Pre-release) VS 2005 RC compatibility
Does it work with the Release Candidate or only with Beta 2 Ok after downlaoding the kit and reading what was called a ReadMe, I figured it out. It is explicitly mentionned it will not work with RC0. Shame on me :) ...Show All
SQL Server Funny problem (bug?) using MAX() on SQL Mobile
This sure looks like a bug, but I'm still new... First I create a simple database: SqlCeEngine eng = new SqlCeEngine ( @"Data Source=\My Documents\test.sdf" ); eng.CreateDatabase(); eng.Dispose(); Then I put something in it: SqlCeConnection conn = new SqlCeConnection(@"Data Source=\My Documents\test.sdf"); SqlCeCommand cmd = new SqlCeCommand("CREATE TABLE myTable (ID int, name nchar(10))"); cmd.Connection=conn; conn.Open(); cmd.ExecuteNonQuery(); cmd.CommandText="INSERT INTO myTable (ID, name) VALUES (1,'bill')"; cmd.ExecuteNonQuery(); Then I try to get the maximum value from th ...Show All
Visual Studio 2008 (Pre-release) ListBox.ItemContainerGenerator.ContainerFromItem() not working?
Has anyone encountered a situation where ContainerFromItem() returns null Would this happen if I've replaced the ListBox's control template I've followed some sample code that Beatriz Costa posted to a previous forum question. I need to be able to get the UIElement container for each item in the ListBox and determone where it has been rendered on the Canvas. Thanks. I thought I'd include some more info: Here's the XAML for the ListBox's control template, then the item DataTemplate, followed by the XAML for the listbox itself: < ControlTemplate x:Key = " ListBoxControlTemplate ...Show All
Windows Forms Thread maximum
I am worry about my control's maximum number of my .net application. I am using VB.net to created a multi-use server including chat,control,transfer...etc. In this server program , when a new user connected to the server My server give it a new background thread(New Threading.Thread(addressof DoListen)) to solve the request and send data,and when I am nearly finished it,& ...Show All
Windows Forms window form keep open and close automatically
I've created a very simple winform application, just open winform with two buttons on it. My problem is when I click the .exe file to run it, the winform just open and then close it self. I tried the same project at home, which was fine. I mean the winform stay on my screen. Does any one have any clue Thanks in advance.. Make sure you use Application.Run() in your Main procedure. VS creates it for you: [STAThread] static void Main() { Application.Run(new Form1()); } ...Show All
Visual FoxPro creating tables programmatically-some questions
I have decided to create some tables programmatically since they most likely will be used temporarily. I do have a number of questions pertainint to CREATE TABLE paramaters. I could not find any explanations so far to figure out what they meant. First I assumed that CODEPAGE should be 1252 (Windows ANSI). Is it the right choice I want to create tables FROM ARRAY arrName I understand that arrName is a 2-dimensional array with the same number of rows as you've got fields Right The number of columns is 18 since CREATE TABLE command expects at least dummy values for some of the elements of arrName . I got this idea from readin ...Show All
