Prasad Khandekar's Q&A profile
Windows Forms Drag Drop Selected Text
Ok I have an issue, it seems that it's not easy. Ok I know how to drag and drop text, that's fine. Though I have a problem with being able to select the text and then dragging it. If I select it and try to drag it will unselect. I've done up a work around where I store the selected text on mouse up and then when I drag I&n ...Show All
Windows Forms ItemChanged Event for Windows Form DataGrid ?
Hi, I wish to create a summary row that spans across all of the datagrid (i.e. one column) for groups of data in the datagrid, something very similar to this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dndive/html/data01102002.asp However, there is no ItemChanged event for the Windows Form DataGrid. Does anybody know how to replicate this behaviour for a Windows Form ...Show All
Visual C# Interop, COM and Office Automation Question
- Background: I write a lot of software/scripts that automate repeated tasks around our office. My speciality is integrating applications that interface with SolidWorks, AutoCAD and various databases. When I want to integrate with AutoCAD, I have to add a reference thru the Add Reference Dialog. I select COM then select AutoCAD 2000 Type Library. I go thru a simular step when I need to automate SolidWorks. After I have completed and tested my application on my own computer I want to create an install package for distribution. The computers that I am using this on already have SolidWorks and AutoCAD installed. Do I need to include the r ...Show All
SQL Server Ignory all value if marked "Select-All" in reports
Hello! I have SQL query in my report, using multi-value parameters: Select Table1.Item From Table1 Where Table1.Item in(@item) Multi-value parameters “item” have properties “Available values” From-query and returned ~200 values. I want, If I selected in my reports “Select-All” then SQL query ignore “Where Table1.Item in(@item)” How Sorry my bad English :-) Thanks! ...Show All
.NET Development JScript / JScriptEvaluate issue
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim overhead As String = "10" Dim a As Integer Dim b As Integer Dim c As Integer c = 20 a = 10 b = 15 Dim sExpression As String = "a+b" Dim oResult ...Show All
Visual Basic MsgBox does not show text, OK button does not display letters "O" and "K"
Studying Visual Basic step for step I entered a very simple program that has to display three MsgBox objects in succession. The program code works, the boxes are displayed, they even have the appropriate width for the text they contain, but the text is not shown. More, the OK-button which comes standard with the MsgBox works, but does not show the characters "O" and "K". Running Visual Studio.Net 2003 under Windows XP All security updates installed. Installation of Visual Studio.Net repaired. Out of idea's BTW Message Boxes in Windows XP work fine. Erik Erik Which AntiVirus p ...Show All
Visual Studio 2008 (Pre-release) Pixel width "Thickness" for shapes
Is it possible to draw shapes with a single pixel width I am working on an engineering program in WPF and need to scale drawings. The current thickness of 1 is more than one pixel (presumably anti-aliased) and is very "fuzzy" - that's an engineering term! The same drawing drawn with GDI looks much crisper - another engineering term. Ideally there would be a special thickness, say 0, which would always draw at one pixel width no matter what scale transform was applied. excerpt: As I was saying earlier, to accommodate the high-resolution displays, we need to get developers to stop specifyin ...Show All
SQL Server Default SqlServer database creation path
Hi, How can i get default sql server(2005) database creation path using Tsql/ or system stored procedure in previous(2000) i used undocumented sp(sp_MSget_setup_paths) to doing this. Thanks Dishan http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=965821&SiteID=1 ...Show All
Visual Basic problem in vb.net VSS automation
when i created and automated add method in C# sharp I did not have this problem and was able to add the desired file to the project. I have a problem with using interfaces in vb.net and creating an instance of an object. can anyone help. this is the last piece of code, when i get it to work Im home free. any help may gain me some weekend free time :-) thanks -JP here is the error that i am getting System.NullReferenceException: Object reference not set to an instance of an object. at DBConnectionLib.DBConnectionLib.VSSDomain.addItem(String parentProject, String itemPath) and here is the code in question: Function addItem( B ...Show All
SQL Server Setting permissions programmatically
All, I'm wondering if there are any methods to set the permissions for a specific user on a specific report within SQL Server Reporting Services. I got how to get permission from them programmatically, but not how to set them but the user interface.. Please apologize me if there was a similar thread in the recent past; I tried to find it out, I didn't succeed. Thanks a lot in advance for your timely response (as usual deadlines are by "yesterday"). -G reference the ReportService2005.asmx and use the following method http://msdn2.microsoft.com/en-us/library/microsoft.wssux.repo ...Show All
.NET Development Create virtual com port in C#?
I'm working on a project where I am reading from a com port to receive data from a GPS receiver. I can do this without any problems except for one. There is also another application that wants to read from the com port at the same time. I know there are com port splitters that I could use but I'd rather not have to use any 3rd party software. Is anyone aware of any way of emulating a com port so that I can point the other application to this port and have it read the data that I am spitting it Thanks, Brady I don’t believe that this is possible to emulate a com port through the SerialPort class. The only op ...Show All
SQL Server External columns from Sybase stored procedures
I need to execute several stored procedures on a Sybase server and copy the results to SQL Server 2005 tables. While using an ad-hoc sql statement the "Available External Columns" list is correct, however when using a stored procedure the list is empty. I've tried to work around this a couple of ways without success. 1) DelayedValidation. I ran the sql from the stored procedure body in the OLE DB Source to set the column list, then turned on DelayValidation for the Data Flow component. When I switch to using a stored procedure it still connects to the Sybase database and removes the column list. Still does this even after turning on DelayedV ...Show All
.NET Development How can I sort selected elements into a nodelist?
I have a XML document already loaded in memory. I would like to select certain elements from the document, sort them, and end up with them in a nodelist. Is that possible And if so, can someone point to some documentation/examples on how to do it My initial thought was to use the following XSLT on the XmlDocument: <xsl:apply-templates select="//section[@key='books']/book"> <xsl:sort select="@isbn" /> </xsl:apply-templates> First problem is that the XSLT was being created dynamically, not read from a file. Yet, I don't ...Show All
Visual C++ I have a very small icon with .png format ,if I load this icon in vc,how can I save this icon into a file with .png extension na
I have a very small icon with .png format ,if I load this icon in vc,how can I save this icon into a file with .png extension name. If you have some sample code, I will appriciate your help very much. Thanks For easily handling different graphic formats (BMP, GIF, TIFF, JPEG, and PNG ) I would like to recommend the GDI+ Library . ...Show All
Software Development for Windows Vista workflow designer
Hi All, I wonder whether it is possible to host the workflow designer in my app. I thought it would be cool if I can have the workflow designer as my app's GUI. Thanks, DK Yes you can. I just saw a video with Scott Woodgate & team demonstrating the designer hosted in a winforms application ...Show All
