patl's Q&A profile
.NET Development newly added record not showing up
I have a dataset, binding source, and table adapter used in a form. I am binding the controls to the binding source. I use the SqlCommand method to add a new record via a stored procedure instead of the table adpater's update method. Once the stored procedure has added the record, I return (output param) the primary key and pass that to a query in my table adapter as a param to rebind the form. Basically it's like this: this .TableAdapter.FillBy( this .DataSet.tableName, Convert .ToInt32(primaryKeyValue)); If I put a breakpoint in the code before this statement, the primaryKeyVa ...Show All
Visual Studio Express Editions VB2005 hangs up on every action
Hello again. I restored a backup of winxp a week ago (because windows took 5 minutes to startup, currently its under 30seconds) OK, I had to install most applications again (such as games etc.) And vb, too. I installed correctly, everything looked good. Till i started vb. I created a "New Project" and wanted to open the "Form1.vb", but what happened Right, an error message appeared with the following content... Could not load type 'Microsoft.VisualStudio.Shell.Interop.IVsRunningDocumentTable2' from assembly 'Microsoft.VisualStudio.Shell.Interop.8.0, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a30a'. I don't know what I shou ...Show All
SQL Server Run Variable in DataReader Source?
Hi all, I am trying to have a DataReader Source that can run a variable which I used to store the SQL statement. For example, I have: Variable #1 Variable name: tablename Data Type: string Value: "name_of_table" Variable #2 Variable name: sql_stmt Data Type: string Value: "SELECT * FROM " + @tablename I want to use DataReader Source to run Variable #2 in the SqlCommand that connects to an ODBC connection. If it is possible by any way, please let me know. Thanks in advance. Daren Use a property expression on the SqlCommand of the Dat ...Show All
Windows Forms Application-wide event when focused control changes?
Hi, In my application, I have a panel that displays some help text to the user based on which control they currently have focused. The control could be on the main form directly, or could be buried several layers deep inside nested ContainerControls (e.g. panels, tabs, user controls, etc, etc.) I need two things: 1. To ascertain at an application level which control is currently focused. In the absence of a better solution, I start at my main form and recursively iterate through all ContainerControls, etc. until I end up at the ultimate ActiveControl. Question: Is there a better way to do this 2. Is it possible to subs ...Show All
Windows Forms how can i reset form's controls
Hi i'm doing an application that have a form i use it for imput data in a database, i like that after event buttun_click the form return as it was before the interaction of customer. Now i close and re-open the form but is possible that no exists another method to do this Sorry for my english but i don't have opportunity to write in this language. VB code: For Each Controllo In TabPage1.Controls ' for form in action Me .Controls If Controllo.GetType.ToString.Equals( "System.Windows.Forms.TextBox" ) Then TexBox = Controllo TexBox.Test = "" End If Next ...Show All
Software Development for Windows Vista VS2005 froozen (100% CPU)
Hello, When I install Visual Studio 2005 extension for worklow fondation on Visual studio 2005 professional, my computer (win XP pro sp2) use 100% CPU for a long (I have wait more than 20 minutes before cancelling) time. Can somebody give me some information for solving this issue Patrick Is this Windows Workflow Foundation Beta 2 Do you have any other Visual Studio add-ins installed Does Visual Studio start up at all now Cheers, Paul ...Show All
Visual Studio Express Editions Read from ini-File: PInvokeStackImbalance
Hi, I want to write and read some information and configuration in a ini file. I now found a code-snippet for reading and writing from/into ini files: Private Declare Function GetPrivateProfileStringA Lib "kernel32" _ Alias "GetPrivateProfileStringA" ( ByVal sSectionName As _ String , ByVal sKeyName As String , ByVal sDefault As String , _ ByVal sReturnedString As String , ByVal lSize As Long , _ ByVal sFileName As String ) As Long Private Declare Function WritePrivateProfileStringA Lib "kernel32.dll" ( _ ByVal lpSection As String , _ ByVal lpSetting As String , _ ByVal lpValue As String ...Show All
Visual C++ Weird build output
I am not sure why I got this. I think I accidentally pressed some sort of key combinations and my build output is like this: 1>------ Build started: Project: test, Configuration: Debug Win32 ------ 1>Compiling... 1>main.cpp How to remove the prefixing '1>' Under Tools->Options->Projects and Solutions->Build and Run there is an option to specify the number of parallel builds. If you set it to 1, the output lines are no longer prepended with the build number. The actual number of parallel builds is either this setting or the number of projects in your solution that is to be rebuilt, whichever is smaller. Brian ...Show All
Visual Studio How do I get Reporting Services 2005 with Visual Studio 2005?
Hello: I am trying to find what to install to add the Reporting Services (Business Intelligence) project type to the Visual Studio August CTP. I checked the DVD and couldn't find anything there to install reporting services. Is there a version of the 2005 Reporting Services that can go on the same machine as the Visual Studio 2005 August CTP Thanks, Rob Thank you very much for your help! I'll try it out when the new CTPs are released. ...Show All
Windows Forms Focus stuck on button
SCENARIO: Inventory form loads up you type in a record number and the record information appears. You click the RelatedDocuments button which brings up a treeview of all of the related documents. You double-click a Purchase Order node and the Realted Documents popup closes and the Purchase Order screen loads. Close the Purchase Order screen and the inita ...Show All
Visual Studio 2008 (Pre-release) Getting orhan object
Can someone tell me how to construct queries for getting orphan entities For instance with TreeNode, owning a collection of TreeNode (aka ChildNodes), how can I get all TreeNode instances which are not owned by another one, namely the root nodes. Sincerely Do you mean something like this class TreeNode { [Column] public int ID; [Column] public int ParentID; [Association(ThisKey="ParentID")] public TreeNode Parent; [Association(OtherKey="ParentID")] public EntitySet<TreeNode> Children; } ... Table<TreeNode> nodes = ...; var q = from n in nodes where n.Parent == null select n; ...Show All
Visual C++ VC equivalent of dirent
I'm porting some code from another environment which defined an dirent.h and had an dirent structure which was used with opendir/readdir/closedir functions... What is the VC equivalent to these functions, as VC doesn't have the dirent.h, dirent struct and/or the opendir/readdir/closedir functions (or at least I'm not able to find them in the help or in the directories). Thanks, George >Anyway, there's no reason for a compiler to have dirent.h if it's not in the C standard. Its in X/Open; The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition. http://www.opengroup.org/onlinepubs/009695399/nframe.html . ...Show All
Windows Forms Trial software development
I am on a project where we are developing a Windows application in Visual C#. We are releasing trial versions for beta testing. What I'm wanting to know is how do I make the application expire or self-destruct after 15 days Then, I'm also wondering how to create a registry key for the software like Windows and Office requires at inst ...Show All
SQL Server SQL Server Management Studio remote server agent status
I have seen posts related to this, but no solution for my situation. On a new Windows Server 2003 system running SQL2005 SP1 (9.0.2153), remote DBAs do not have a service status indicator in the object explorer in ssms. If the DBA logs on to the server locally using the same domain ID the appropriate green arrow/play sign indicator is displayed as expected. The DBAs are members of a domain group that is a member of Remote Desktop Users and a local SQL DBAs group. The SQL DBAs group has been added as a SQL login and assigned the sysadmin role. All sql administration functions appear to work otherwise. Using subinacl to grant the SQL ...Show All
Visual FoxPro Export data to text- How I can bypass the default text delimitter?
Dear all, I am exporting data from Visual FoxPro 6.0 to text file, so I use "Export..." in the menu, then choose file type "delimited text". I want the data export to text with field seperator is a bar character ( | ) and no text field delimiter. But FoxPro puts the double quote character ( " ) as default text field delimiter. How can I bypass this double quote character For example: Currently FoxPro exports my data to text in this format: "This is the 1st field "| "This is the second field"|12345|" This is the third field"| But I need that text output without those ...Show All
