MiniSong's Q&A profile
Windows Forms Override Default Return Key Behaviour in DataGridView
Friends, I am hoping someone can provide some details on overriding the default behaviour of the return key for a DataGridView component. The default behaviour is to advance to the next row, I am looking to assign this key to return the primary index or value of a specific row/column to a parent form. Any info would be greatly appreciated. J.H. i think KeyDown is never fired if you are in edition. i search a solution my problem is similar i have a grid in EditMode set to EditProgrammatically when user tape return key the current cell selected cell must be change sometime to rig ...Show All
Software Development for Windows Vista How do you pass parameters (bind) between custom activities in an XOML only State Workflow?
Tom, Do you have any examples of WWF Beta 2.2 XOML only state workflows that have custom activities pass parameters between themselves and the actual workflow I need to be able to pass an output parameter from a custom activity to the XOML only State workflow. I do not have any examples and am unable to locate any relevant documentation for this issue. Can you help Sincerely, John Portnov Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=443673&SiteID=1 . If it does not answer the question let me know. ...Show All
SQL Server Full-text index build is causing poor performance on searching
My website is set up as follows: I get data from 11 different vendors. I create a 'feed' database 'x' where 'x' is a sequential number. I use DTS to create a seperate table for each vendor. I full text index on 'keywords' column only, no other column. This full text index build, takes about 12 to 14 hours to run. When this is done, I delete the old 'feed' database. During the 12 to 14 hour build time, my website is searching the 'old' database. Once the build is complete, my website then searches the 'new' database. My site then searches all of these tables by opening a seperate thread for each table, ...Show All
Visual C# DateTime Format
How can I get database smalldatetime row values, to appear without the time stamp on them. I just need the date. Do I need to format the DataColumn for the DataTable on the Dataset. Thank you, Ricardo Probably the easiest way is to databind the column with a method that takes the object, and returns a string in the format that you require. Assuming the issue is one of rendering only. ...Show All
Windows Forms AddNew() creates a new row but I can't navigate to it
I have a DataTable filled with records from my Employee table. I did not create a DataSource in the project for this Employee table. I simply created a command and data adapter in code to fill the dataset. I have an Employee form with a BindingSource set to my dataset and I connected a BindingNavigation control to the BindingSource. Of course, I have a number of textboxes, checkboxes, and comboboxes bound to the BindingSource. I can navigate thru the records fine and delete and update data too. The problem is that I can't add records. I can click the add new button on the navigation bar and it shows the recor ...Show All
Windows Forms VS.NET 2005 RC1 - ClickOnce Error
I created a simple WinForm application and attempted to publish it using ClickOnce. Whenever I attempt to access the application from a computer other than the workstation it was developed on I get the following: PLATFORM VERSION INFO Windows : 5.0.2195.262144 (Win32NT) Common Language Runtime : 2.0.50215.44 System.Deployment.dll : 2.0.50215.44 (beta2.050215-4400) mscorwks.dll : 2.0.50215.44 (beta2.050215-4400) dfdll.dll : 8.0.50215.44 (beta2.050215-4400) dfshim.dll : 2.0.50215.44 (beta2.050215-4400) SOURCES &n ...Show All
Visual Studio How can I use %(RecursiveDir) and task batching together
I thought this would be simple, but I can't figure out how to recursively copy items to multiple directories. < ItemGroup > < Host Include = " localhost " > < Hostname > localhost </ Hostname > < Domain > $(NamDMZ) </ Domain > </ Host > <!-- Development servers --> < Host Include = " DevServer1 " > < Domain > $(NSRoot) </ Domain > < Hostname >DevServer1 </ Hostname > < Description > Development server </ Description > </ Host > --- < ItemGroup > < HTMLPublishFiles Include = " $(SourceRel)Cus ...Show All
.NET Development XslTransform conversion problem: "White space cannot be stripped from input documents that have already been loaded."
I am trying to onvert from .Net 1.1 to 2.0 and am having seme trouble with the new Xsl Transform method. The following is the original working 1.1 code. // .Net 1.1 form. This works fine private string TransformToHTML( ) { XslTransform xslTran = new XslTransform (); XsltArgumentList xslArg = new XsltArgumentList (); StringWriter sw = new StringWriter (); XPathNavigator nav = xmlDoc.CreateNavigator(); xslTran.Load("filename.xsl"); xslArg.AddParam( "input name" , "" , inputValue); xslTran.Transform(nav ...Show All
Windows Forms Help with threading - framework 2.0
I have a simple postcode lookup database, because of the size of the underlying db I decided to use a seperate thread to do the search, so I have Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click Dim t As New System.Threading.Thread(AddressOf DoSearch) t.Start() End Sub Then my search routine is Private Sub DoSearch() Dim street As String = Trim(txtStreet.Text) Dim locality As String = Trim(txtLocality.Text) Dim posttown As String = Trim(txtPosttown.Text) Dim county As String = Trim(txtCounty.Text) Dim sql As String = "SELECT * FROM postcode WHERE (" sql += "str LIKE '%" + str ...Show All
SQL Server Connect to SQL Server from Command Prompt?
I installed SQL Server CTP version and tried to connect from Command Prompt, but failed from either osql or sqlcmd: osql [/sqlcmd] -H localhost -E or, osql [/sqlcmd] -H localhost -U sa -P SAPWD The error message is: Named Pipes Provider: Could not open a connection to SQL Server, ... Please note named pipes are enabled from client protocol configuration. without Management studio, how can I connect to the server Thanks. PS: I had searched in the forum, but didn't find answer to above question. Thanks for the replies. After a few attempts, I found the following command works: osql (or sqlcmd) -S .\SQL ...Show All
SQL Server DTExec is taking all my memory
I have created a SSIS package that reads 500 text files splits them into 4 raw files then reads them again and writes then to 4 database tables different Tables. The reason form this is that my raw files have multiple types of records in them and it is only 1 Coolum. I split this out into the different types of records and load whole rows into the database. ie input 1 txt file <T6> 1:1000178 3:18148821-00 5:40204043 6:1 17:EX201036259NZ 25:0000304862 </T6> <T1> 1:18148821-00 </T1> <T5> 1:1511313 4:18126485-00 8:2006032510230300 17:EX201033399NZ </T5> <T6> 1:1511158 3:18084863-00 5:4061704 ...Show All
Visual C++ Please Help Me! Please...Please...!
Hi. I want design Line in a StaticControl.(or any function.like sin(x)) Please Help me. Nishes reply to this question previously will allow you to do a line on your form. If you want the line to follow a function like sin(x), then you need to write your own control, no built in control does this. ...Show All
Smart Device Development Synchronization of 2 desktops from pocket_pc with Pocket PC as master
I apologize if this is the wrong forum for asking this question. I have recently changed from using a linux based PDA to a Pocket PC based PDA and am trying to figure out how to accomplish the same tasks and capabilities as I previously used. I need to be able to synchronize my PDA to two different machines, one personal and one corporate. On my other device i was able to sync my personal information (contact, calandar, and todo's) to may personal machine and my corporate information to my corporate laptop leaving my PDA as the master repository for both machines. I do not want my personal information on my corporate machine and really ...Show All
Software Development for Windows Vista Help Need WinFx Beta 2 Runtime!
Hi, Please Help! Where can i find the WinFx 2 Runtime for Download Thanks Peter See the bottom of this page for links to download the latest version. ...Show All
.NET Development SignedCms + X509ChainPolicy + X509Certificate2.Verify()
Hi. We got a smart key card that holds Private Key for signature certificate. Via the GUI of the smart card we can sign a document. How can the verifying side verify the validity of the certificate too (programatically) How could be the CA queried for the validity of the certificate Should that particular person's certificate be present in the X509Store beforehand Thanks in advance. Actually seems there is already answer for this that I found after the post. http://blogs.msdn.com/shawnfa/archive/2006/03/30/565033.aspx . ...Show All
