Gabirucho's Q&A profile
Windows Forms How could i use the usercontrol to call the Window Form's Componet.
I create a user controls and added it on a Form. There are also an textBox on the same Form. But i can't assign an text string to the textBox on the Form by codding in the user control . How could i do it. As we know , very window form application has some buttons collection, like "Previous","next","first","last" and so on... I want to make a usercontrol to re-usedable on very window Form . I thouht that would be the best way to create application. ...Show All
Software Development for Windows Vista HELP: Exception has been thrown by the target of an invocation using ForEach Activity
I did a search for the exact terms and found some hits on the forum. None was relevant to issue that I'm running into. I downloaded and added the ForEach activity for Beta 2 I added the ForEach activity to the toolbox and dragged the element on the designer. this automatically added the reference for the project to cimpile. Need clarification and issues: 1. I currently addedd the ForEach activity from the default installation location of C:\Windows Workflow Foundation\Activities\ForEachActivity\2006-01-14\ForEachActivity\bin. I picked up the debug version so that I can run the project in debug mode. Is this correct 2. SO when I n ...Show All
Visual Studio Team System 'tfs.AuthenticatedUserName' threw exception "Error: The server name seabug01 is not valid." to access workItems using code
Hi there, I'm trying to access VSTS bug server , using code but code is failing while running Console .WriteLine( "Connecting to {0}..." , server); TeamFoundationServer tfs = new TeamFoundationServer (server); WorkItemStore store = ( WorkItemStore )tfs.GetService( typeof ( WorkItemStore )); with tfs having one of it's field 'tfs.AuthenticatedUserName' throwing exception of - AuthenticatedUserName 'tfs.AuthenticatedUserName' threw an exception of type 'Microsoft.VisualStudio.TeamFoundation.Client.TeamFoundationServerException' It's throwing exception of "Error: The server name seabug01 is n ...Show All
Visual Studio Team System Is TFS included in Whidbey Beta2 DVD?
I could not see the Team Foundation Server install option when install Whidbey Beta2 on a WinXP machine. Should I install Whidbey Beta2 on Win2003 to install TSF Server, or is it included in another installtion package Thanks! Yes, TFS is included in the Beta 2 kit that you can order online. ...Show All
Visual Studio Team System static member variables and static constructor
Hi, Has anyone noticed, that when declaring static members variables, there automatically also appears to be static constructor I noticed it with this piece of code: when there are no static variables, this code does not inform anything. But when I add a static variable to a class, both the variable AND a static ctor is printed to exist->looks like the ctor is created automatically which means that there will always be a static ctor found if there is a static member which in turn means that this rule migth be needles.(just came to my mind that should check if the cctor is compiler generated ) public override ProblemCollection Check( ...Show All
.NET Development Access Denied with System.Security.Principal.WindowsIdentity.GetCurrent
Hi, I have an asp.net page which has a method which call a .Net dll register like a COM object (with regasm). This dll open a word document and load some data, one of this data is de logon name of the user, now I have the next error message: System.ApplicationException: Access denied. at System.Security.Principal.WindowsIdentity._GetCurrentToken() at System.Security.Principal.WindowsIdentity.GetCurrent() This is in a Windows XP. The same applicattion is used in more than 150 PCs with the same XP and there no problems. I had read the next document http://support.microsoft.com/kb/325791/EN-US/ but it seems does not wor ...Show All
Visual Basic Convert a old VB6 project
Hy all, I have a very old VB6 project (a complex one), I need to to convert it to the new .net 2005 platform. I installed VS.2005 and tryed to convert it using the conversion utility, unfortunatly I get several "Error 7: Out of memory" witch I skip and finaly a "The referenced component TXTextControl is missing a design time license" error witch stops my conversion proces. Anybody has any ideeas on this one. Have a nice day, The Visual Basic Upgrade Wizard needs to load the ActiveX controls that are in your orignal Visual Basic 6.0 project in order to complete the upgrade. To load these ActiveX controls the the origi ...Show All
Visual Studio Interactive Sort in Report Viewer Control of VS 2005 RC not working
After upgrading to VS2005 RC the Interactive Sort is no longer working in the ReportViewer for Windows Forms! The arrows are there, but cannot be clicked. We could not reproduce the bug previously, but we are able to repro it now. We have fixed the bug, and I have updated your bug report. ...Show All
SQL Server Simple Database - What is Best Option?
Hi, I am writing a simple program which runs on users xp machines and accesses a simple table on an NT Server. In otherwords, the database consists of just a single table with perhaps 4 fields and a maximum of 200 records, with low transaction activity (users periodically update their status or check on other users' statuses). Do I need to use SQL What is my best option for such a simple table / database. Your help would be appreciated. Hi, I'd need to learn about using XML first :) To see if it is worthwhile looking at this option (which sounds good because I presume there is no ...Show All
SQL Server sp_send_dbmail "Mail Queued." Message
I have an After Update Trigger specified on a database table to notify specific users via email when certain customer values are modified. (This is a HACK / Workaround for functionality that doesn't exsist in the product.) I had be using xp_sendmail without a problem. I recently upgraded the database server to SQL2005 and wanted to try sp_send_dbmail . (I was interested in the asynch and the non-MAPI nature of Database Mail.) This is the new code: EXEC @retval = msdb . dbo . sp_send_dbmail @recipients = @rec , @blind_copy_recipients = @bcc , @subject = 'Important Customer Information Change' , @body ...Show All
Visual C# comunication between to diffrent programs
Lets say i have 2 programs.. The first app has a textbox and button same as the second one I start the both programs .. Is there a possible way to send some text form my app1 and write in the textbox of the second one Sure, you can use Remoting or any of the IPC mechanisms listed here. http://msdn.microsoft.com/library/en-us/ipc/base/interprocess_communications.asp ...Show All
.NET Development How to Update Stored Procedures when they have changed
I have an VB.NET 2005 application and SS Express 2005 Database... I update the application via ClickOnce Deployment but have not found a way to update my Stored Procedures (or alter a table structure for that matter) via the automated update process! One suggestion was to "Suck In" the stored procedure as a whole into a SqlCommand.CommandText property and shoot it down the ADO.NET connection pipe Has anyone done this before Basically... I am trying to update all SP's and Functions (and possiblly modify a table structure) in my database from my application when it first runs after a ClickOnce Update. Any help would be ...Show All
Visual Basic Is it there?
Here is what I have in my password form. Public Class PassCreate Dim strPass As String Private Sub btnPassCreate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPassCreate.Click strPass = txtPasscreate.Text My.Computer.FileSystem.WriteAllText("C:\Pass.txt", strPass, True) Me.Hide() PGS.Show() End Sub End Class What I want is If C:\Pass.txt <> exist then create a password write it to a file C:\Pass.txt hide form and show main elseif C:\Pass.txt does exist then enter password and if it matches C:\Pass.txt hide this form and show main. Ok, here ...Show All
Visual Studio 2008 (Pre-release) UserControl no longer obeys VerticalAlignment
Regression bug (feature ! ) from Jan CTP. Create an UserControl: <UserControl x:Class="WindowsApplication6.UserControl1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" VerticalAlignment="Stretch"> <Grid VerticalAlignment="Stretch"> <Button>test</Button> </Grid> </UserControl> Put the user control in a form: <Window x:Class="WindowsApplication6.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas. ...Show All
Visual C# whole word substring search w/o using regular expressions
Is there a way to search a string for a whole word w/o using a regular expression i.e. mystring.IndexOf(mypattern, *WholeWord); The reason i rather not use a regular expression is because sometimes i want to search for whole words w/o the regular expression special characters being interpreted. You can write a regex that searches for any characters you like. However, the string class also has a method called IndexOf, which you can use to find a substring, it returns -1 if the substring is not found. ...Show All
