Ganesh sethuraman's Q&A profile
Visual Studio Express Editions start application
How can i start another application for example Google Earth Hi there, You can start any external application by using a Process class. C# Code: System.Diagnostics. Process p = new System.Diagnostics. Process (); p.StartInfo.FileName = "abcd.exe" ; // set your executable file path p.Start(); VB Code: Dim p As New System.Diagnostics.Process p.StartInfo.FileName = "" 'set your executable file path p.Start() ____________________________________________ May the God blessing be. LotraSoft Ltd. ...Show All
Windows Forms How to capture keypress in Windows Forms?
Hi every body How can i capture key press in Windows Forms not from a Control I want the user to press any key any where in the Form and display the keypress in label like if you write in the text box I knew that i have to setup ( KeyPreview to true in the Form1 ) and use private void Form1_KeyUp(object sender, KeyEventArgs e) { } to capture the key press. But my problem is that i did not get the value correctly in the label Pressing number 5 in keyboard will give 1. If using e.KeyCode =========================== label1.Text = e.KeyCode.ToString(); NumKey will give ===>> NumPad5 MainKey will give ===>> D5 2. If using e.KeyValue ========================== label1.Text = e.KeyValue.ToString(); NumKey will give === ...Show All
SQL Server Using VB.Net for Applications and the VBA Editor from Custom Components?
Hi, Is it possible to make use of VB.Net for Applications and the VBA editor from your own Custom Transform Components (like the script component does) I would like to create a component that generates boiler-plate VBA code and that then allows developers to add their own specialised code in certain methods using the editor (just like the script component) If so, is there any documentation anywhere on how to go about this Thanks in advance, Lawrie I believe you'll have to sign up for the Visual Studio Industry Partners (VSIP) program and downlaod the VSIP SDK. Here's a link to the program: http://msdn.microsoft.com/vstudio/partners/default.aspx . ...Show All
.NET Development Insert Data from DataReader into a TextBox
Hi, I've a DataReader that suppose to bring back a ProductDescription and i want it to show in a text box called ProductDescriptionTextBox How do I do it cause i can't get it work like this objCommand.Connection = objConnection objCommand.CommandText = "usp_AddBillProductDescription" objCommand.CommandType = CommandType.StoredProcedure objCommand.Parameters.Add( "@ClientName" , OleDbType.VarChar, 50).Value = ProjectsComboBox.Text objCommand.Parameters.Add( "@ProjectID" , OleDbType.VarChar, 10).Value = ProjectIDComboBox.Text objCommand.Parameters.Add( "@SerialNumber" , OleDbType.VarChar, 10).Value = SerialNumberComboBox.Text objConnection.Open() objAuctio ...Show All
SQL Server Incremental Load in SSIS
We are in the process of converting our existing incremental loads from DTS to SSIS. Currently we get all the data for the past month into temp tables in the warehouse, compare with key fields add the new rows and update changed rows. All this is done using Execute SQL task. Is there a better way to implement the incremental logic using SSIS any new objects that be used to avoid too much SQL codes Performance is very important and we do a lot of aggregation after the load for the reports to run faster so that we can meet customer SLA's. We have around 20 tables that needs to be loaded 4 have large amount of data between 20 and 40 million rows out of which we will be brining over around 100 thousand during each incremental run. The ...Show All
Visual Basic File to Array and general Array help/information
Hi, I have been trying to get a file of data written in the following format:- 0001 – (16bit numbers in decimal) 0002 0003 0004 And so on (upto 25000 results) Into an integer array:- myFileContents(0) = 0001 myFileContents(1) = 0002 (and so on) My code is as follows: - Dim myFileContents(10000) As String Dim i As Integer OpenFileDialog.Title = "Load File" OpenFileDialog.Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*" OpenFileDialog.FileName = "" OpenFileDialog.FilterIndex = 1 OpenFileDialog.InitialDirectory ...Show All
Windows Forms multiselection in a datagrid
Hi! I would like to know how can i select multiple rows in a datagrid I can select an entire row but i can't do a multiple select. I have another question,how can i add a checkbox on the header of my datagrid I want my application do allow one or more rows selection. When the selections done, the user have to check the checkbox to allow another event to happen. Thanks a lot!!! you can add checkbox column to datagrid.There is an example of adding a tablestyle to a datagrid here . ...Show All
Visual Studio Express Editions Active Document Host Control + Will my C# Express will work permanently?
" I have downloaded Microsoft C# Express 2005 on Dec-05 and I must admit that it Is a most smart and fascinating tool. 1) On Dec-05 it was anticipated that C# Express will continue to work for one year. Later on I saw on the web that it will continue to work permanently. Do I have to download it again 2) I read on your Web sites about the new "Active Document Host Control". Is it already in C#, how can I get it Sincerely Yours Ron hi, 1) you can download it again if you need to , but there is no need for that if you allready have it, nothing changed in the program itself , what changed is microsoft plane , the plane was they will remove it from the download site in 20 ...Show All
Windows Forms Rich and Plain Text
Hi Does anyone knows how to code an Open Rich text or Plain Text file in childForm with RichTextBox thanks jbattat Hi I am having a little problem on how to declare the " theSelectedFile". Can you assist jbattat ...Show All
SQL Server SQL Server 2005 "Login failed for user" sa
I have not been able to install SQL Express SP2 (standard or advanced) on Vista Ultimate (RTM). Every time I try to install, I get the following error message: SQL Server Setup could not connect to the database service for server configuration. The error was: [Microsoft][SQL Native Client][SQL Server]Login failed for user 'sa'. Refer to server error logs and setup logs for more information. When I check the logs, the only information I can find that is at all useful is: Doing Action: Do_sqlScript PerfTime Start: Do_sqlScript : Thu Mar 01 21:35:42 2007 Service MSSQL$SQLEXPRESS with parameters '-m SqlSetup -Q -qSQL_Latin1_General_CP1_CI_AS -T4022 -T3659 -T3610 -T4010' is being started at Thu Mar 01 21:35:42 2007 SQL service MSSQL$SQ ...Show All
SQL Server automate passing
hi! i already have a program that when you click a button it will get the new transactions in the database then pass it to another database now i need to automate the passing... once there is a new entry in the database it should automatically pass it to the other database. how could i do this ! thanks! I believe there is a way to do such mirroring if the databases are both SQL Server databases and if that is the case you should post the same question to the appropriate SQL form... Otherwise one could write a service application, an application with no GUI which runs as a windows service i.e not as a user, but the system, to check for the transfer condition, then do the read from the first database ...Show All
SQL Server Get to member properties of Microsoft.AnalysisServices.AdomdServer.Member
Is there any way to get to member properties of a dimension member which I dynamically create in an SSAS stored procedure Member member = expr.CalculateMdxObject( null ).ToMember(); // how to get to the member properties ...Show All
Windows Forms Refreshing a Listbox
I have a listbox that's bound to a relationship between a table and a dataview. How do I 'refresh' the listbox when a new record is inserted into the tables 'viewed' by the view If the whole application is shut down and restarted, the listbox shows the new data, so I know the database is right. The data is being filled into the program when you start it, you can either create a button that would allow you refresh, or uses a timer that will open your connection, fill the table adapter, then update the form. I am still new to databases, so I hope this helps. ...Show All
Software Development for Windows Vista WF vs. BPEL and Java-based Engine such as ActiveBPEL
How can I convince a Java-possessed manager that WF is the way to go. I have gathered the following arguments: - WF offers more expressive power that allows the modeling of variety of process types, i.e., sequential, state machine and rules based business processes. WS-BPEL is very much a subset of what can be represented using WF. - WF is an e xtensible framework with many extensibility points such as the ability to specify custom activities and deploy custom runtime services to extend the WF runtime engine. - Lightweight framework that can be hosted in variety of environments ranging from embedding it into a desktop application to orchestrated processes deployed in a Web farm. Whereas Java-based orchestration ...Show All
Visual C++ Error on compiling Detours lib
Hi, i use VC++ 2005 Express and just got the Detours 2.1 library from MS's site. I executed the installer and all files were extracted to "c:\program files\Detours Express" folder. So, i read the readme.txt and it says i have to type "nmake" in the Detour installation dir. I did it but i'm getting the following error: ===================== C:\program files\Detours Express>nmake Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. cd "C:\program files\Detours Express\src" Building for 32-bit X86. if not exist "..\include" mkdir "..\include" if not exist "..\lib" mkdir "..\lib" if not exist "..\bin" mkdir "..\bin" rc detoured.rc detoure ...Show All
