Sizzles's Q&A profile
Windows Forms TreeNode label
Hello, If I have a label in the edit mode, and the user makes a text selection, is there a way to capture the selected text only. There is an attribute on the text box that does that. Thank you Hi, I don't know the direct answer you're looking for, though I am sure there is an API you could use to get that information. Instead, have you considered using a TextBox and setting its properties to make it appear as you would want. The TextBox control has a SelectedText property. It also has a Locked property you could use to prevent user entry at the wrong time. I hope this helps, Jason ...Show All
Visual Studio Team System How to extract list of changed files
Hi Is it possible to obtain a list of files that have changed between two labels or changesets The history view does show the list of changeset, is there perhaps a way to drill down across the list of changesets Thanks Rivaaj, I don't believe there is a way to do it from the GUI, but the following command line command will give you what you're looking for. The command: tf history /r $/myteamproject;37875~39000 /i /format:detailed Will display all changes in the team project named "myteamproject" between changeset 37875 and 39000. Here is the same command using labels: tf history ...Show All
Windows Forms Checking if a form is Shown or Hidden
How can I check if a form is hidden or shown through code Also, how could I use variables in between forms, like have formshown as boolean inside form 1, and use the same variable with its value associated with it inside form 2 here is a small sample, I have created a project with 2 forms, one called ParentForm and the other called ChildForm... Here is the code that has a button and a label on it, whn you press the button the child form will be created and the label will change to display wether the form is visable or not. Also as you wanted to get a varible from one for to another I have made the l ...Show All
Visual C# start process as system user.. c#
Hi i was wondering how other make possible to start a process as a system user.. you know that in task manager when it shows what user started that process it also showes by what user.. i see many apps doing that... anybody knowes how to do that zapacila89 wrote: what password did you used for the System user Don't know, the user entered this in install time. There isn't a global password that works all time and you should be glad it isn't because this will be a great security hole! ...Show All
Visual C++ Multithreading
Is it possible for a master thread to force abortion of pending IO in a slave thread, as with signals on Posix. Win32 only, no .net bullshit please. Thanks, - NK A similar way has been suggested by Ronald in this thread. Unfortunately I cannot guarantee (or rather enforce) that the client code is using asynch IO. Hence this is not the solution to the problem. With posix I can use signals to abort *any* system call, including the blocking ones. I was hoping that a similar solution could be found with Win32, alas, it appears there is none. Thanks, - NK PS. the library I describe has already been implemen ...Show All
Visual Studio Can you model Aggregations in Class Designer?
Hi All, Can you model Aggregations in Class Designer I couldnt find the aggregation element in Class Designer ToolBox. Imesh. Class designer doesn't support this visualization in the current version. We'll keep this in mind for a future release. ...Show All
.NET Development XMLSchema - Defining XmlSchemaElements with sensible types
I am trying to create a simple XMLSchema (XSD that can be written to a file. Note: .Net Framework v2.0 My problem comes with trying to assign a (very simple) data-type to the element. For example - I would expect to find the following output < xml version="1.0" encoding="utf-8" > <xs:schema xmlns:xs=" http://www.w3.org/2001/XMLSchema "> <xs:element name="Test" type="xs:string" /> </xs:schema> ---- My code: XmlSchema MySchema = new XmlSchema(); XmlSchemaElement e = new XmlSchemaElement(); e.Name = "Test"; e.SchemaType = X ...Show All
Visual Studio Team System Process templates
Hi, I'm writing a little app to add process template using the IProcessTemplates interface from Microsoft.TeamFoundation.Server library of TFS beta 3 refresh. I need to pass 5 parameters and I don't know what are the next three parameters : 1 templateData (byte[]) 2 metadata (string) 3 state (string) Could you help me on this Thank you Answered by Ravi in the VSTF forum http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=173598&SiteID=1 ...Show All
.NET Development winXP -> win2k3 MDAC issue
I have a simple .net program that saves a few thing to an Access file/db via basic sql and ADO objects (a real database isn't required here, it's low volume). Recently, I upgraded from winxp to win2k3 to be able to do raid-1 (mirroring), and now the database connection is broken. The error I get is this: "System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> The .Net OLE DB Provider(System.Data.Oledb) requires Microsoft Data Access Components(MDAC). Please install Microsoft Data Access Components ...Show All
.NET Development x64 vs x86 performance, strange results?
Checking to see if anyone as any good comment to this scenario... Using VS2005 to convert a server app to 64 bit. Running it on a Xeon ~3 GHz with 2 GB RAM etc. Since it is Xeon, we are talking EM64T and not AMD which might be the cause of this strange result: In debug compilation, x64 wins with 30% In release build, x86 wins with about 10% which seems pretty odd but there's nothing I can do about it. I've tried to check just about any project configuration option I can possibly think of, but the same result. Obviously something is different between release and debug, but is it VS2005 or am I missing something The same project config in all ...Show All
Microsoft ISV Community Center Forums BSC manager - Error connecting to server
I've installed BSC manager 2005 following these steps: 1. Created a Virtual PC with 512 MB RAM 2. Installed Windows Server 2003 entreprise edition 3. Installed Windows Server 2003 SP1 4. Installed Sharepoint Services 2003 5. Installed Sharepoint Services 2003 SP2 6. Created a site and extended (Port: 46786) 7. Installed SQL 2005 developer edition 8. Configured SPS to use SQL instance 9. Installed BSC manager (server and builder) When i start the BSC builder and try do access the server ( http://localhost:46786 ) I get the following error message "The conection to the server failed. Verify that the connect ...Show All
Windows Forms Custom error messages (Datagird with FillSchema)
Hi I'm using the following code to fill a datagrid in my form Private Sub FillGrid() Dim DA As System.Data.SqlClient.SqlDataAdapter Dim CN As New System.Data.SqlClient.SqlConnection Dim DS As New DataSet CN.ConnectionString="server=server1;database=TstDB;uid=sa;pwd=123" & ...Show All
.NET Development TableAdapter Update problem
Hello, i have problem in my application. I create dataset with single table. In MainForm i have 2 texboxes and update button. This is code for update button: [CODE] Klient klient = new Klient(); klient.ShowDialog(); KlientDataSet dataSet = new KlientDataSet(); Serwis.KlientDataSet.KlienciRow klientRow = dataSet.Klienci.NewKlienciRow(); klientRow[0] = Guid.NewGuid(); klientRow[1] = klient.Imie; klientRow[2] = klient.Nazwisko; dataSet.Klienci.AddKlienciRow( klientRow ); int result = this.klienciTableAdapter1.Update( dataSet.Klienci ); [/CODE] I got 1 in result variable so i think that database was updated. No my dat ...Show All
Visual Basic ADO.net DataAccess time SLOW
Unless I am doing something very wrong, it seems that the ADO.net dataaccess time,IE retrieving a record is extremly slow compared to Classic ADO. Now it takes between 1 and 2 seconds to retrieve the data from the Remote database (Access). Because of needing update data when I select a serial number, I presume and currently use direct access to the remote database. I load a combobox with all my serial Numbers, Currently 15,000 . Then when I click on a SN, the program does a query on the ADO.net dataadapter, retrieves the current record. this take almost 2 seconds. Classic was almost instantly. Am I doing something wrong. Here a part of ...Show All
Visual J# how to create DLL file in J# or convert J++ dll into J# dll
Please help me...I know nothing about J#. The following code is written by J++ for dll file. I need to either convert those code into J# or create new J# dll file. However, I have no clue how to start it. Could someone help me as soon as you can. I really appreciate it. I only have one day to finish this assignment. import java.io.*; /** * This class is designed to be packaged with a COM DLL output format. * The class has no standard entry points, other than the constructor. * Public methods will be exposed as methods on the default COM interface. * @com.register ( clsid= ...Show All
