Ben Santiago's Q&A profile
Visual Studio Express Editions MessageBox Centering
Is there a way in VisualBasic 2005 to bring up a message box centered related to my application, rather than centered relative to the entire screen I'm using 1280 x 1024 screen and my application (with a fixed size) doesn't cover the entire screen. Most of the times, my application window is closer to one of the edges of the screen and its message boxes pop up away from my application, in the middle of the screen. Thanks in advance for any tips. Thanks everybody. I just decided to center the main form so the message boxes give the illusion of coming out centered from the main form. ...Show All
Visual Studio Team System Team Foundation Server SCC Api
How do I Query TFS SCC for folders using the Team Foundation server SDK (April), without downloading the whole repository or working with a local workspace What I need is that non technical people to select a folder from a repository in my Windows Forms Client application and be able to mark one, so my Backend application can work with it, I only need to know which folder they selected, and multiple users can be working with it, so I don't want to manage multiple workspace or folders, I only want to show the names of the folders. Sorry if my English is not the best :) Thanks! Alan D. Scheinkman Depending on what you're trying to do, your backend app probably only needs 1 workspace. A workspace can m ...Show All
.NET Development How To Store Products with Attributes
Hello I am building an application and website, However 1st of all I obviously need to design the database, and i was just woundering about the best way to do some things. For example my application/website must allow customers to purchase products, these products can have 0 or many attributes, such as size, flavour, colour etc. Which is the best solution to tackle this in regards of database table design This is the setup atm, but i would like some idea's/opinions Products Table - holds products information, and a base price information Attributes Table - holds many different attributes, such as name, description etc. ProductAttributes Table - This holds 2 foreign keys and some other information. ProductID A ...Show All
Windows Forms Deploying Files from Multiple projects
I have a windows forms solutions with multiple projects that are built as class libraries...and a main winforms project...the class libraries have content files that are set to copy always and marked content. When using clickonce these files are not copied to the clickonce application. How do I copy these files in the published application without having to add the files manually to the main winforms project Thanks, rhorner While we did some testing to make sure that we picked up nested dependencies and references, we don't pick up nested content files. The way references work, these files aren't picked up by the project system either. As a result, the only solution is to add the files to ...Show All
Visual Studio Team System Code Coverage Results in Web Tests - "Empty results generated: none of the instrumented binary was used."
Code Coverage Results after running test: Empty results generated: none of the instrumented binary was used. Look at test run details for any instrumentation problems. The test run details show a warning for each of the assemblies regarding instrumentation, but this leads me to believe that the instrumentation process succeeded: Warning VSP2013 : Instrumenting this image requires it to run as a 32-bit process. The CLR header flags have been updated to reflect this. My scenario: In trouble shooting this, I’ve scaled down to a single test that logs into the site and views a single page. D etails: My Test Project contains a single web test (.cs) file and the localtestrun.testrunconfig file ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MDX 2 Time Bomb
Almost all MDX2 Ctors are calling the bombing code below: public static unsafe void CheckTimeBomb () { DateTime time1 = new DateTime ( 0x7d6 , 10 , 5 ); if ( DateTime . Compare ( DateTime . Today , time1 ) >= 0 ) { MessageBoxW ( null , & _C@_1PI@LKOFODJP@ $AAT $AAh $AAi $AAs $AA 5 $AAp $AAr $AAe $AA 9 $AAr $AAe $AAl $AAe $AAa $AAs $AAe $AA 5 $AAv $AAe $AAr $AAs $AAi $AAo $AAn $AA 5 $AAo $AAf $AA 5 $AAD $AAi $AAr $AAe@ , & _C@_1DE@JJLLKEIK@ $AAM $AAi $AAc $AAr $AAo $AAs $AAo $AAf $AAt $AA 5 $AAM $AAa $AAn $AAa $AAg $AAe $AAd $AA 5 $AAD $AAi $AAr $AAe $AAc $AAt $AAX $AA $AA@ , 0x2000 ); throw new TimeBombException ( "This pre-release version of DirectX has expired, please upgrade to the latest version f ...Show All
Visual Studio Team System Can't launch word document from Source Control Explorer
I cannot view word documents from the Source Control Explorer using a double click or View command. The cursor briefly changes to busy and then resets to the default. Txt documents and .cs documents work fine. I tried creating blank solution and adding document as described above but still had the same symptoms. However, I was successful with the following modification: 1. Select the Add... button in the Open With dialog 2. Browse to winword.exe and add it to the list 3. Set winword.exe as the default. Now it works. Thanks to everyone for all the suggestions. Jeff ...Show All
Visual Studio Team System Set test date and time
Is it possible to set the system date and time prior to running a web test Hi, You can do so by using the plugins. for a web test: there are 2 kinds of plugins: 1) Request plugin - you can hook up to each pre-request and post-request 2) Web test plugin - you can hook up to each pre-web test execution and post-web execution. You can do so by impleneting IRequestPlugin or IWebTestPlugin and setting the web test to use it. for a load test: There is a LoadTestPlugin to inherit from. And you get a whole bunch of events you can hook up to. Hope this helps. guy kolbis ...Show All
Windows Forms Webbrowser.DocumentText Need Help
I have a webbrowser object that I am using as a ticker at the bottom of my application. I use the following marquee html to handle what I am trying to do and I use stringformat to replace the {0} with the text I want. Then I use the webrowser.documenttext = this string and like magic there is my ticker. < html > < head >< meta http-equiv = " Content-Type " content = " text/html; charset=windows-1252 " ></ meta > < title > New Page 1 </ title > </ head >< body > < MARQUEE direction = " left " width = " 100% " scrollamount = " 5 " >< STRONG >< font size = " 8 " color = " black " > ...Show All
Visual Studio 2008 (Pre-release) ScrollViewer Problem
Hi. I have a sample code as follow: private void WindowLoaded(Object sender, RoutedEventArgs e) { Canvas frameTop = new Canvas(); Canvas frameRight = new Canvas(); Canvas frameLeft = new Canvas(); DockPanel dockPanel = new DockPanel(); frameTop.VerticalAlignment = VerticalAlignment.Top; frameTop.HorizontalAlignment = HorizontalAlignment.Left; frameRight.VerticalAlignment = VerticalAlignment.Top; frameRight.HorizontalAlignment = HorizontalAlignment.Right; frameLeft.VerticalAlignment = VerticalAlignment.Top; frameLeft.HorizontalAlignment = HorizontalAlignment.Left; Button btn = null; btn = new Button(); btn.Content = "Button T ...Show All
Visual Studio Tools for Office help needed regarding adding a contact item into outlook contact item
hi, please help me regarding how to add a contact into outlook contacts folder if I hace a vCard(.vcf) file. And also please help me how to get the list of items which are deleted over perticular period of time. We are using visual studio 2005 and visual c++ 6.0. And please suggest which platform is easier to code for outlook. looking forward for your earlist reply. Raja Pratap. Hi Raja, It is easier to develop code for Outlook using VS 2005. You can find the reasons in this article by John Durant: Introducing Outlook Add-in Support in Visual Studio 2005 Tools for Office . Ian ...Show All
Visual Studio What happened with the Visual OOP???
Hi, I’m a developer actually using the .Net 2003; We have a big project of a renter car company and we use (a lot by the way) the awesome behavior in .Net 2003 IDE - Visual OOP; We create our bases forms and inherities this on anothers forms putting our code just once... very usefull; So the .Net 2005 comes and... what happened with this feature Just removed Why We have 80 plus DLLs components loading the assemblies by Reflection (another awesome feature) but when we need change any VISUAL property it’s disabled :S Please... turn back this feature... Thanks for attention and sorry about my english :-P Fabio Pirani de Padua from Brasil! Unfortunately, the existing visual inheritan ...Show All
Smart Device Development RingTone FileName (.amr) is not saved on my mobile handset properly --it needs some new MIME types
Dear Microsoft: I have created a Mobile Application in C# using Visual Studio.net 2003. I am sending a WAPPush SMS to users who may request Mobile Services such as (Ringtones, Pictures). I have a problem in downloading ringtone(True Tone of file extension AMR) on WAP Browser, the ringtone name is not saved. After downloading the Ringtone file takes the link file name "userlink" which appears in url(ex, url: http://IP/webapplication userlink.aspx pwd=887768 ). The ringtone is saved as userlink.amr on mobile handset after downloading. I can download file type AMR (or in MP3...) from my Web Browser but it is not saved on mobile handset in its real name just it can be heard.Moreover, the filename and length have been specified in Respons ...Show All
Visual Studio Team System Pending changes in a flat list?
Hi, My manager asked me if there is some way to recursively view the all the files with pending changes in flat list. Right now when browsing the Source Control Explorer one can navigate to any folder and see the pending changes for the files. Is there some way that I can click on a folder and see all files below that folder that have changes pending or are checked out by someone, etc. This would be handy for someone to quickly find out what is being worked on as well as who is doing what. Cheers, Clint Hello, you can do the following things: use Pending Changes Window (View->Other Windows->Pending Changes) to see all pending changes in selected workspace (be sure that "filter by solution" is no ...Show All
SQL Server Can not attach MDF from HDS LUN
Hi.. We are trying to attach a database (MDF File without LDF File) in SQL2K SP4 MDF File is in HDS (Hitachi Data Storage) Lun or SAN Storage. When we try attach the MDF File, we are getting an error. The error message is : " Error 1813: Could not open new database 'Test'. CREATE DATABASE is aborted. Device activation error. The physical file name 'F:\SQLData\Test_log .ldf' maybe incorrect " When We try attach the MDF File, but We move the MDF File into Local Hard Drive (Drive C:), then We success to attached the MDF File and the LDF File is automaticlly generated without error. i'm waiting for the solution Thank's. Brgds, Dwiharto The statement looks valid ...Show All
