Fra Bastiano's Q&A profile
Visual FoxPro 2 open files for a foxpro.exe file being used by a particular user
When you run a foxpro application exe file that is located on a server from a workstation it will display 2 instances of the application being accessed by a particular user. You can verify this by going to: Control Panel/Administrative Tools/Computer Managment/Share Folders/Open files. You will see 2 open files for a foxpro.exe file being used by a particular user. This seems to only happen with foxpro applications. Why is this By defaul ...Show All
SQL Server RS 2005: Excessively Long String error when printing
I have a VB.NET 2003 WinForms application that contains a browser control to render reports within. I have a SQL Server 2005 Reporting Services instance - and through the RS site, the reports come up great, and print just fine. However, when pulling in the reports through the WinForms application, when trying to print - I receive an error. A message box pops up that says "An error occured trying to get the current window." The next message is: ...Show All
Visual Basic OpenFolderDialog
I could use a reference to any code classes for enabling the selection of a folder via a dialog window. thanks, Fred I am looking for information on how to obtain the path to a folder using an openfolderdialog similar to the openfiledialog. Fred ...Show All
Windows Forms Please help me!
i create a control I want it have propertys +DataSource +ValueMember +DisplayMember like properties of combobox Then you need to add those properties, or derive from a control that has them. A DataSource is usually an object, then you can use the 'is' keyword to work out how to deal with it, as in if (dataSource is DataTable) { } else if (dataSource is DataView) etc. If you're not deriving from anything, you're prob ...Show All
Visual Studio Team System Work Item "Self" Transition
Is transition from of work item from one state to the same state valid Something like this: <TRANSITION from="A" to="A" > <REASONS> <DEFAULTREASON value="Status Change"/> </REASONS> </TRANSITION> Work Item Type with such transition is iported successfuly, but attempt to change WI state to "A" fails. Tha ...Show All
Visual C# Remove Junk Characters
Hi, I want to remove junk characters from a string. The scenario is, I have got a rtf string and I want to remove the last para tag in the string ("\par") from the rtf. When I try to manipulate the string , I found some box like junk characters in the string. Please provide me a solution Not sure if this will help, but have you tried iterating through the characters in the string and printing out the c ...Show All
Visual Studio 2008 (Pre-release) Binding to Window property
I'm trying to trigger an animation based on a change of a value of a window's property. Basically what I have is a class 'VisibleItem', which implements INotifyPropertyChanged and is exposed by my Window1 as a property also named VisibleItem. Like this: public partial class Window1 : Window { public VisibleItem VisibleItem { get {... } } } The XAML looks lik ...Show All
.NET Development Testing if ValueType is default, unassigned value
Hi, I am having some trouble finding the default, unassigned value of ValueType properties using reflection. What I am trying to do is write some code that automatically set some properties, but only if the initial property value is in it's default, unassigned state. For property reference types it is easy and I am just checking if the property is null, but even after searching the reference and google I am no closer to finding out to get ...Show All
Windows Forms Help: Hosting .net form controls in IE
I have been trying to make a .net form control work in internet explorer without getting a System.Security.SecurityException: Request for the permission of type System.Security.Permissions.SecurityPermission. I have searched alot on the web about .net security I have been trying to make a .net form control work in internet explorer without getting a System.Security.SecurityException: Request for the permission of type System.Security.Permissions ...Show All
Windows Forms Docking Windows in .NET
I would like the Visual Studio .NET like docking windows in my application. These docking windows has their own title bar, close button and also can be docked. Please help me to find out how to create these. Is there any controls out there  ...Show All
SQL Server "Package Failed Validation" error
I'm trying to have a parent package derive the filename for the appropriate child package to execute. The parent package logic manipulates a Filename variable that is then used in the connection string of the Execute Package task: "c:\\Packages\\" + @[User::Filename] The error I'm getting is Error 0xC0012050 while loading package file "c:\Packages\test.dtsx". Package failed validation from the ParentPackage task.&nb ...Show All
SQL Server VS.NET 2005 and CLR stored procedure permission sets.
VS.NET 2005 automatically deploys a CLR stored procedure when you start a project with debugging. However, if the CLR stored procedure attempts to access external resources you will get a message stating: System . Security . SecurityException : Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed . I've isolated this to ...Show All
Visual FoxPro View, Query or Cursor?
I have a form that pulls info from an ODBC source via a Remote View. When I try to RUN my form, my entire project locks up. Is this because the info pulling from ODBC is too large How can I fix this Any ideas Should I use a cursor instead of a remote view Or unselect fields in the Update fields selection Thanks for the help everyone. I learned a lot from you trying to fix this issue. However, ...Show All
.NET Development Encrypting the app.config file
My application will use the DataProtectionConfigurationProvider to encrypt my app.config file. I can encrypt the file from within my applicaiton, but I would like to be able to encrypt it outside the application so that the file is encrypted when it is deployed. I know that you can encrypt web.config files with aspnet_regiis.exe. Is there a tool that can encrypt app.config files as well Eric No there is curren ...Show All
Windows Forms How can I find the parent form of a TreeNode?
I've got a TreeView populated with my own node classes that need to hook themselves up to an event handler on the parent form. I've done this by including the delegate as an argument in their constructor. These nodes are created on demand from code within their parent node. The only problem is, I can't figure out how to reference the main form directly so I can reference the event handler. It's never instantiate ...Show All
