CoachBarker's Q&A profile
Visual Studio report viewer
report viewer will not print the first time user clicks the print icon, however the second time it prints. This is consistent on five different computers with locally attached printers. This is a known issue that has been fixed with Visual Studio 2005 SP1. Take a look at this thread for more information: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1032267&SiteID=1 ...Show All
Visual Studio Express Editions Working with classes
Hi, I am learning C# and I am still little little confused about classes, methods... here is what I am trying to do: I have a class in seperate file. Inside that class I have a method . From that method I would like to change text property of label on my form . This form is generated with designer and is in different file and in different class but in the same namespace . Any suggestions That works now. Thank you. But I still don't fully understand what is actually happening. So in MyClass new instance of Form1 is created private Form1 mForm; that is an object that its type is Form1 and takes its own block of heap memory. Then there is a constructor in MyClass that takes one Form ...Show All
Windows Forms How to use Drag and Drop? Windows Explorer -> My App
When the user drag a file from Windows Explorer and drop it in a listview from my app, how to get the path of that file 1. In the ListView properties set AllowDrop to true . 2. If the user is draging a file or a group of files you tell him that he is allowed to do it by changing his mouse cursor. private void listView1_DragEnter( object sender, DragEventArgs e) { if (e.Data.GetDataPresent( DataFormats .FileDrop, false )) { e.Effect = DragDropEffects .Copy; } } 3. When the mouse button is up you want to add each of the files in your ListView control. private void listView1_DragDrop( object sender, DragEventArgs e) { foreac ...Show All
Visual Studio Team System Web Test don’t record requests after few steps
Hi, I am trying to create web test to automate online application process and Web Test don’t record requests after few steps. For Example Step 1: www.flexcar.com record Step 2: Click on apply now record Step 3: Click on next step ( Doesn’t record any request beyond this point) I tried to use Fiddler to get request, and I get these urls http://www.flexcar.com/WebResource.axd d=3fRdxPAx6QE_ZBLFCvja3w2&t=632781598709843750 http://www.flexcar.com/WebResource.axd d=n1l5QH8c7uME47SjM3oAwtWDGx4wPo5O0&t=632781598709843750 But, when add these requests manual to my web test next page are not displayed. This website is developed in Asp.net (C#) using DotNetNuke. ...Show All
SQL Server How to write backup code for sql server 2000
hi Experts, any one tell me that how to write code to take back up of sql server database Hi, Are you intending to write a T-Sql statement that backups your database Here's something that I have used before: BACKUP DATABASE AdventureWorks TO DISK='C:\AdventureWorks1a.bak', DISK='C:\AdventureWorks2a.bak', DISK='C:\AdventureWorks3a.bak' MIRROR TO DISK='C:\AdventureWorks1b.bak', DISK='C:\AdventureWorks2b.bak', DISK='C:\AdventureWorks3b.bak' WITH FORMAT MSDN: Backup T-Sql Command Just be sure that your SqlManagement is closed coz it locks your dbase. I'm not quite sure about this but it might prevent you from backing-up your database. cheers, Paul June A. Domag ...Show All
Visual FoxPro Future of Visual Foxpro
Hello friends, I have a general question. What will be the future of VFP The reason for asking this question is because, our company is planning a major commercial software development. So far we were very much satisfied with VFP. But now doubts are being raised whether we should base our investment on this platform or consider something new like VB.NET. Especially when we hear that the products will not be served beyond 2009!!! Any sincere opinion will be a big help. Thank you. Microsoft has never said that VFP.Next (Sedna) will be version 10. I talked to Alan Griver (yag) last month in Germany and he said the decision on what to call it or how to package it hasn't been made yet. My bet is that it will be more of a service ...Show All
Visual Studio Crystal Reports [OutOfLicenseException]
I am developing reports using crsytal reports in vs 2005. it was working fine for few days, but after few days and after running it continusouly is started giving me OutOfLicenseException. i coudnt find any solution for that. if any one of u have any idea about when this exception comes and how to resolve it, please send me email on : neeraj-jain@hotmail.com or reply to this post. thanks in advance... ...Show All
Visual Studio Express Editions Graphical operations
I am looking for some application notes or code samples for graphical operations such as drawing on a form (in VC++ Express). I do see that there is a .NET library namespace called "System::Drawing", so I suspect there is some built-in support for drawing... Also, how easy is to implement graphical operations in a Windows Forms application vs. an MFC application Do I need to migrate to the Standard/Professional editions (and develop an MFC application) to get good graphics support Just to give you an idea, here is roughly what my application needs to do: Allow users to draw a "schematic" (on a Form) consisting of an arbitrary number of rectangles connected by lines (preferably using some predefined shapes) ...Show All
Visual Studio Tools for Office System.NullReferenceException was unhandled
my problem is that on the .add of the with querytables line, i get the unhandled exception with the error that "Object reference not set to an instance of an object." However, when i set QueryTables as NEW MS..... it won't even compile public class program public shared excel as new Microsoft.Office.Interop.Excel.Application end class public class AccessDB Dim QueryTables As Microsoft.Office.Interop.Excel.QueryTables Public Sub Get_Data(ByVal family As String, ByVal Table As String) ' ' To be used to get data from the database ' Dim str_DataBase As String = DBPath & family & ".mdb\" Dim connection_string As String = _ "OLEDB;" & _ "Provider=Microsoft.J ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Question about license and feeds
Hi there guys, I have a question about license and feeds. If I made a game using directx library, is there any feed o license price that I have to pay for sell my game Thanks in advance No, DirectX is free to use and the games you make using DirectX, you are free to sell. I suggest that you download the EULA and read more about it. ...Show All
Visual Studio How To: Access the Team Build items in the list of Builds with Add-In?
I am working on an add-in that will let me interact with the list of builds that are displayed when you double-click on a build type for a given Team Foundation Server project. How can I get a reference to the "build list" window, and more specifically, to the build that is currently selected within my add-in code I've seen some example code on this forum for accessing the version control window/items but I'm not sure how to do it for the "build" window. Thanks. Eugene, Thanks - this link has some interesting code, however, it's not quite what I'm looking for. The link you provided shows how to get access to the selected Build Type in the Team Explorer window. What I'm looking for is a way to get a ref ...Show All
SQL Server How to use Loop statement
I have a table which contains 170K of customer_numbers. How can I write a query (loop) to create 340 tables or excel files which contains 500 customer numbers each. Thanks for your assistance in advance. here's a psedou code 1. select disticnt customers 2. write a script to create an empty excel files per customer 3. create a script that will generate the script for bcp out to excel files step 3. outputs bcp scripts so you dont need to write one for each user 4. group the scripts to 10 5. simultaneously run the 10 groups at the same time if you have a powerful box to reduce your ti ...Show All
SQL Server run openquery(mdx) through a linked server
Hi, I run openquery() from a client application(sql 2005) to query SSAS data(sql 2005) through a linked server(sql 2005), but I get the following error: OLE DB provider "MSOLAP" for linked server "LINKEDMINING" returned message "An error was encountered in the transport layer.". OLE DB provider "MSOLAP" for linked server "LINKEDMINING" returned message "The peer prematurely closed the connection.". Msg 7303, Level 16, State 1, Procedure gettpdt, Line 3 Cannot initialize the data source object of OLE DB provider "MSOLAP" for linked server "LINKEDMINING". And, I am sure that I have made the MSOLAP provider Allow inprocess. What can i do for this. Ple ...Show All
Visual Studio Team System Can Team Build distinguish between a compile error and test run execution failure?
we are running builds where we compile our solutions first and on succesful compilation go ahead and execute all the tests as well. when it came to executing the following target - GetChangeSetsOnBuildBreak; we found out that the for the lastlabel parameter the label being used was one which was almost a month old -CDAS8.1_20070207.1. please see details below. Target GetChangeSetsOnBuildBreak: GenCheckinNotesUpdateWorkItems TeamFoundationServerUrl="http://ausmstfsapp1pc1:8080/" CurrentLabel="LCDAS8.1_20070302.6@$/Sales - CDAS" LastLabel="LCDAS8.1_20070207.1@$/Sales - CDAS" UpdateWorkItems=False BuildId="CDAS8.1_20070302.6" Querying the contents of label 'LCDAS8.1_20070207.1@$/Sales - C ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Declaring alternative input devices
Hi to all I have been told that I can register alternative input devices to the DirectX such that a game that runs will see my input instead of the standard devices that are connected on the machine. To be more specific, I want to use a client that receives a user input (game pad, mouse etc.) from a remote machine and gives it to the Direct Input, such that the game that runs on the local machine thinks that an action was taken locally. I have browsed through the DirectX SDK Documentation and also searched for an answer in the web, but I haven't figured out anything yet. Could anyone from this site clear this issue for me please Is what I am trying to do feasible I really thank you for your time Theofilos ...Show All
