merwinp's Q&A profile
Visual Studio VS 2005 & SourceSafe
How can I use SourceSafe with VS2005 Thank you all First, you have to install both products Then, you have to set VSS as the active provider in VS. You can do that in VS by opening the Tools/Option/SourceControl/Plug-ins dialog and setting the provider to either Microsoft Visual SourceSafe (or Microsoft Visual SourceSafe(Internet) if you have VSS2005). You'll get after that File/SourceControl menu (and if using VSS2005 you'll get integration with File/Open/Project, File/Add/Items dialogs) Note that not all editions of VS2005 allow scc integration. Express editions don't allow any source con ...Show All
Windows Forms RichTextBox Control
Hi! I'm currently working on App and I need to change the FontStyle Property of my RichTextBox control (SelectionFont.FontStyle). Now, what happens is that whatever is inside the Font class is ReadOnly and is only set when you create an instance with the constructor. So, every time I have to apply new formatting I have to create a new Font instance, copy the data that I need into it and selectively, based on the current Selection, apply the correct formatting. Now, for example if you have the following text selected in you RTB (RichTextBox): AA bb , the SelectionFont.FontStyle Property will return the bitwised value of FontStyle.Bold and Fon ...Show All
.NET Development How could I know if I am running a NGEN'ed image?
After I NGEN'ed my program and run it, I found there is no change on memory cost and running speed. I doubt if I am still running the old version(not NGEN'ed) of my program. How can I run the NGEN'ed image directly Or how can I know if I am running a NGEN'ed image Thanks! The simplest way is to look at the fuslogvw. This would give you details as to which image was used and the reasons as to why the NGEN Image wasn’t used. ...Show All
Windows Forms Opeing default web browser to an URL automatically
Hi, I would like to have a click event of a menuItem to automatically open the default web browser to an predetermined URL. I can't seem to locate the C# code to do this for the .NET windows form I'm developing. Jared Thanks!! System.Diagnostics.Process.Start did the job! Jared ...Show All
Visual C# Process.GetProcesses() and user privilege
I have a VS 2003 C# application that works fine in most environments. It has recently been installed in a corporate environment (WinXP / Server 2003) where the user workstations are pretty well 'tightened-down' from a security point-of-view. The application makes use of the Process.GetProcesses() and it appears that the application throws an exception when this is called due to insufficient privilege. So my question is -- from a security perspective, what changes in groups or policy or whatever need to be made such that Process.GetProcesses() will not throw Obviously, making everyone an admin would solve the problem, but I am looking for so ...Show All
SQL Server path not found when executing package using xp_cmdshell dtexec
I have a package that executes fine in BIDS. However, when calling it using xp_cmdshell it cannot find the path to the source flat file. Anyone have any suggestions Here is the statement: xp_cmdshell 'dtexec /SQ NatlAcctsImport /SER CR1-SQL-01 /CONN SourceConnectionFlatFile;Q:\BI\NATNLACCTS' Here is the result: Microsoft (R) SQL Server Execute Package Utility Version 9.00.1399.06 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. NULL Started: 9:50:56 AM Progress: 2006-02-10 09:50:57.40 Source: Data Flow Task Validating: 0% complete End Progress Progress: 2006-02-10 09:50:57.40 Source: Data Flow Ta ...Show All
SQL Server Maximum number of partitions in AS2005
Hi, Does AS 2005 have a limit to the number of partitions it can support I am sure some one out there must have asked this before, but I just can't seem to be able to find an answer in the docs or online. Regards, Alex Hi, In standard edition: maximum 3 non-writeback partitions per MeasureGroup. In the other editions (enterprise, developer, evaluation): the limit is 2^32-1, so it's up to how much the server and tools can handle. Adrian Dumitrascu. ...Show All
Visual C# Setting the position of a MessageBox
I need to set the position of a MessageBox in an MDI application. I have multiple forms positioned using tile horizontal and vertical and I want the message box to show up centered on its parent form not centered on the computers monitor. How can I set this so that the MessageBox is always opened centered ontop of its parent form Perhaps if you make the parent form the parent of the MessageBox Otherwise, you may have to create your own message box class. ...Show All
Software Development for Windows Vista WF instance persistence
I have a web config file that instructs the workflow instance to persist to the database. However, there is nothing in the database. the connection string is correct. Do I need to something special to persist the instance I have a delay shape and it should cause the instance to persist. Any ideas Hi, Just wanted to make sure if you are checking the database during the delay period, 'coz the instance information is removed from the InstanceState table once the workflow instance is completed. ...Show All
Visual Studio Team System Localized Unit Test
Hi, I have a Unit test assembly that contains a test form that is localized. A satellite assembly is built for the unit test which is all fine and well. However, when I run the unit test, the test framework copies the unit test assembly into another directory .....\TestResults\.....\Out\test.dll but the satellite assemblies are *not* copied (causing my unit test to fail). This seems like a bug Andrew Hello Have you tried adding the satellite assembly to the deployment section in your testrunconfig You can do this from the Test menu Test->Edit Test Run Configurations In the dialog select Dep ...Show All
Windows Forms Printing winform in app ?
I have the following code; see below! The form image works, the printing works. What does not work is making the image Landscape. It just seems to ignore it. How can I get it to go landscape Thanks Deasun Try CaptureScreen() With prtPrvDialog .Document = prtForm ...Show All
Windows Forms to select Images in listview
i have an application in which i m showing images to user in a listview largeIcon mode....how do i retrieve which image user selected. In case of text what we do is: string str = listview1.selectedItems[0].subItems[1].Text ; how to do this kind of thing with image. Hi, Please go through the below link. I think this is what you are looking for. There is also a sample code in the link. Link: http://msdn2.microsoft.com/en-us/library/system.windows.forms.listview.selecteditems.aspx Thank you, Bhanu. ...Show All
Windows Forms VB.NET vs AS/400
Many of my programs make repeated calls to our “elderly” AS/400 to get data based on account numbers, then process that data and write back to the AS/400 before moving on to the next account number. Using the .NET ODBC classes has worked fine, but we’ve noticed that it runs frustratingly slow. I’m exploring using the cwbx.dll to try to speed up&n ...Show All
Windows Forms AutoScroll in Panel
In Windows Forms App, I use a Panel with the AutoScroll property to presents a PictureBox. MouseWheel acts on VScroll. But I would like to use MouseWheel to change the cursor without acting on VScroll . I can change the cursor but not stop VScroll. How to do this in VB.NET Many thanks i think you need to resort to PINVOKE here. you need to subclass the panel and listen to the appropriate window messages and do your custom message processing.. ...Show All
.NET Development updating records
I am trying to update a record using one of samples provided and I always have the following error: "Reference to a non-shared member requires an object reference" The code I use is as follows: Dim totalsRow As mdstats1DataSet.TotalsRow totalsRow = mdstats1DataSet.Totals.FindByRecordID(1) totalsRow.smtpin = smtpin totalsRow.smtpout = smtpout The error is on the "mdstats1DataSet.Totals" Can anyone help me BTW, I am using VB Express and SQL Express Assuming that I'm reading your issue correctly, you need an instance of mdstats1DataSet . (In order to a ...Show All
