white_r's Q&A profile
Windows Forms How to run a batch file at end of install?
I can using a Visual Studio 2005 setup project to install my application and help files. It installs everything just fine but I need to run a batch file at the end of the install so that the help is integrated into VS2005. How do you run a batch file (or executable) at the end of the install I tried adding a custom action and pointed it at my batch file but it then complains that a problem occured during install and promptly unrolls the install process. Any ideas Phil Wright http:// www.componentfactory.com Free User Interface Controls Custom action executables fired off by Visual Studio setup proje ...Show All
Visual Studio 2008 (Pre-release) Performance difference between Path and Line? And, Bug in Path?
Hi all, I'm creating an app that draws a lot of single-pixel straight lines. Would a GeometryGroup of LineGeometry be a more efficient choice than a List of Line shapes Or, is the performance difference negliable to really matter Two considerations may affect the question. One, all lines may be subject to frequent RenderTransforms. And two, it appears that when Path.Data is set to the GeometryGroup of LineGeometry the SnapsToDevicePixels is not being applied consistently. In the following code example you may find that the first LineGeometry, assigned to a Path object with SnapsToDevicePixels="true", renders with anti-aliasing. Is ...Show All
SQL Server SQL 2005 Express June CTP
SQL 2005 Express June CTP setup does not include .NET 2.0 framework distributable. The version available for download is 2.0.50215.45, but this new CTP requires at least 2.0.50215.311. Am I forced to download the Enterprise version just get the distributable You can download the correct version of .Net Framework (2.0.50215.312) from http://www.microsoft.com/downloads/details.aspx FamilyId=1A722B0F-6CCA-4E8B-B6EA-12D9C450ED92&displaylang=en Dan ...Show All
Smart Device Development .Net CF Getfiles IOException
Hi, i've a problem with my VB.NET application and GetFiles() function. I try to run my application on Emulator. I've shared a folder in my Desktop simulating a Storage Card and i try to access files on it but GetFiles() function return IOException error... Any suggestion to solve this problem I use Visual Studio Team suite 2005 beta 2. thanks Andrea. Sorry, I'm waiting to install Visual Studio 2005 RTM...then i try again Thanks Andrea C. ...Show All
Windows Forms Default form instances
Is there a way of turning off default form instances, or hinting to the IDE that the name of a form should be treated as a class name rather than an instance I have defined a property on a form (called frmLogin): Public Enum ModeType As Byte About Login End Enum Private m_enmMode As ModeType Property Mode() As ModeType Get Return m_enmMode End Get Set(ByVal Value As ModeType) m_enmMode = Value End Set End Property When I create an instance ...Show All
Visual Studio Express Editions File Properties
Here's one that took me ages to do with VB6, how do you get the file properties for a specific file. I don't mean the size, created dates, etc. The other properties like Author for example. I'll elaborate, i've made a routine that checks the registry to find where the favorites folder is, then i've got another routine collecting all the file paths of the favorites and storing them in an array, so far so good, the trouble is that I can only read the filename and not the target that the .url file points to, I've a feeling there is more information there too, like a pointer to the favorite icon as well (and whether the file is available offl ...Show All
Visual Studio Express Editions ifstream bug?
Hi all Few days ago I installed the new version of VC++ : MSVC8 express. But I found a minor problem in the file input part. I mean "operator >>" of the ifstream seems not to be able to read the integer value before the comma ',' correctly. here is a sample. ------- test.dat ------- 100, ------- sample.cpp ------- #include <iostream> #include <fstream> int main () { using namespace std; int x; ifstream f; f.open( "test.dat" ); f >> x; f.close(); f.clear(); &nb ...Show All
Visual Studio Team System setting alerts
Hi, I am trying to setup e-mail alerts for my team projects, unfortunately it doesn't seem to work... I have edited the web.config file (under $Visual Studio 2005 Team Foundation Server\Webservices\Services: I am using Beta 3) and it contains correct value for "emailNotificationFromAddress" and "smtpServer". But after subscribing for events, I am not getting any e-mail (for example when a WI is changed). My smtp server requires authentication, can this be the reason for failure Is there any log kept for such failures, if yes, where Thanks in advance, Deepesh Yes, this has been fixed for Beta3. Many SMTP servers that require aut ...Show All
Software Development for Windows Vista How can i get the size of NTFS encrypted file
I am using ReadEncryptedFileRaw for backup of NTFS encrypted file. ReadEncryptedFileRaw calls callback in which pointer of the data and size of the data is given. It can be of any lenght and the ReadEncryptedFileRaw calls this callback multiple times with different amount of data.. I want to know the size of the complete encrypted data so that i can preallocate buffer of same size. is there any solution to get the ecrypted file data. getting file size gives us non-encrypted data thruogh GetFileSize() function. Regards ...Show All
Windows Forms Best Practices Question
Hi All - I am building an App that will need to find a folder on a network drive that may or may not be mapped to that particular persons computer (the network admistrator will not block the user or the code from finding the drive) Once the drive is located then i need to find the particular folder whose name changes every month.&n ...Show All
Windows Forms XP Style
Maybe a stupid question but here it comes anyways: To use XP style controls you can use Application.EnableVisualStyles according to serveral websites. But I can't use it: I get 'EnableVisualStyles' is not a member of 'System.Windows.Forms.Application'. I already upgraded to Framework 1.1 What can be the problem Kind regards, Daniel You need VS2003 NOT 2002. With VS2002 you'll ...Show All
Visual Studio Express Editions RS232 (Comm Port) Cant read the line HELP
Hi, I was trying to read the text from comm poert w/ new SerialPOrt object but for some reson it dosnt work. But I can write everything though. I'm using all defult seetings for the port object. And here is the code that I have. Also when I chnded read timeout, I got an error in time out. Public Class PORTs Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click sp.Open() End Sub Private Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click sp.Close() End Sub Private Sub sp_DataR ...Show All
SQL Server Deploy to SQL Server or flat files
I'm in a quandry about how to deploy my SSIS packages and was hoping someone has some experience of the same. There are 2 approaches: 1) Deploy to SQL Server. 2) Deploy to .dtsx files. I suppose the default approach is to deploy to SQL Server however I have a problem with that. My packages contain Execute Package Tasks which use different connection managers depending on whether the package that they are calling is on SQL Server or in a .dtsx file. That means that my packages have to contain 2 connection managers for each Execute Package Task - one for pointing to a package deployed to SQL Server and one for a package tha ...Show All
Windows Forms How to customize Round rectangle Button ?
Dear all, VS.NET support functions as draw rectangle, ellipse. However, to draw round rectangle is very difficultly. So far I can draw my button as round rectangle. Everybody has done it before please share with me. Thanks. Steven Using Region objects is indeed a good way to clip outside of non-rectangular areas. But instead of testing the region yourself, you can simply set the region to the Control.Region property. This will automatically make sure that none of the mouse event (like mouse over etc) are raised when not exactly on the region. It also clips the painting. ...Show All
Visual Studio Tools for Office Automatically signing a word document.
Hi, we're trying to make a document management setup in .Net 1.1 (we're not using 2.0 yet) . Where every outgoing document has to be signed by us and then signed again by the client for acceptance of the conditions. Now the problem is that we would like to automate our signing process (The clients sign using the built-in signature dialog in MS Word) Right now we have these code snippets that handle the signing: Word.Document aDoc ... // initialization etc aDoc.Signatures.Add(); aDoc.Signatures.Commit(); At the moment we add the signature, the standard word dialog pops up asking us with which certificate we want to sign. Which is ...Show All
