Eric1965's Q&A profile
Windows Forms How to do a discrete update of a dataset
I'm sure there are MANY ways of doing a "behind-the-scenes" update of the data in dataset, you know an update that happens to the data in the dataset but the user doesn't see he/her datagrid change much if any. I have an idea about how I CAN do it but I am wondering how I SHOULD do it. I'm sure there is a best-practices article out there somewhere but I can't find it. Has anyone found a a really great way that has worked for them, for multiple users Anybody have any ideas I am a VB/C# .NET 2003 programmer using SQL Server 2000 databases, but I'm open to other languages and/or database architectures. - Thanks in advace for any and all ...Show All
Windows Forms Losing events in MDI forms (1.0 vs 1.1 framework difference)
I have an MDI parent form with two mdi children. Each MDI child has two textboxes on it. On version 1.0 of the framework, if you switch from one form to the other and then tab to the next textbox, a 'LEAVE' event is raised. This works as expected. If you take the code and run it on 1.1, the leave event do&n ...Show All
Smart Device Development MSDiscoCodeGenerator failed
i converted a vs2003 .Net 1.1 Smart Device application onto vs2005 .Net 2.0 im now getting a problem where it will not see the webservices. if i try to (right click) update the webservice i get the following error The Custom tool 'MSDiscoCodeGenerator' failed. Exception of type 'Microsoft.CompactFramework.Design.Data.InternalException' the webservices are in .net 1.1 but i wouldnt have thought this would matter i have an identical standard windows application which i converted and this works fine anybody else had this problem with the compact framework Cheers, Craig Hello All, This is a kn ...Show All
Visual Basic Creating totals from imported data
Hi, I have an access database linked to a data control and the relevant record source(s) called via SQL. Currently the data is output to a picture box and is selectable by date. What I am looking for is to select a range of items (all sales on the same date, all sales within a range of dates, that of monday through sundays date and also monthly) and show the total amounts for printing. (Sorry I'm having trouble thinking how to explain this!) Bump - Have made the addition of selections of sample code from my project which still seems unable to select from nominated criteria. Matt ...Show All
Windows Forms Web Services as datasources
Hi, First of all, congratulations on a great release for beta2, it feels like a Ferrari when you've been working in beta1 for months. I really love the databinding story for windows forms against direct database access (sqlclient), from the RAD level to the "low level" implementation of typed datasets/tableadapters. Will there be a similar story for webservices I've already implemented a framework where all you need to do is drop a webservice component in the winforms designer and then attach it to a "Controller" component on the same form setting its "WebService" property, and ...Show All
Visual C# Process.Start problem
Hi, all. I am helping a friend do his VB project which is similar to CS. He is supposed to send a command to DOS which then outputs that command to a controller of his robot for activating its movements. Lets say the command he sends to the DOS robot is fixed at "run start trial1". Then, in order to execute the functions above, I did the following code in CS: private void button4_Click(object sender, System.EventArgs e) { Process.Start("cmd.exe","/C run start trial1"); } The above process.start method has worked for other examples i tried, example "edit". However, when i used "/C run st ...Show All
.NET Development bug in Int32.Parse
In Visual Studio 2005, the following throws a FormatException and it definitely shouldn't. The same code works fine in Visual Studio 2003. This is the version that I am seeing the problem, running on XP: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional int x = 0; x = Int32.Parse("0") // throws FormatException x = Int32.Parse("00") // works fine x = Int32.Parse("000") & ...Show All
Visual C# New C# Features in Beta 2?
Is there any new feature or functionality added to C# on VS 2005 Beta 2 If yes what are they Refer the following URL for C# 2.0 new features, http://msdn2.microsoft.com/library/7cz8t42e.aspx ...Show All
Windows Forms Mac OSx Aqua Look & Feel
Does anyone know of any windows forms samples using a look & feel similar to 'Aqua' as used for the Mac OSx Cheers James I found a project on codesine that has the aqua button - but it doesn't work too great, it locks other controls. I love the look though ...Show All
Visual Studio Team System TfsWorkItemTracking Process Identities Job fails every 10 minutes
I just had a look at the event log on the machine running our single-server TFS installation, and this message appears once every 10 minutes: SQL Server Scheduled Job 'TfsWorkItemTracking Process Identities Job' (0x0E06FC1460769D4C8B8BA32312E2B0DD) - Status: Failed - Invoked on: 2006-03-31 09:00:00 - Message: The job failed. Unable to determine if the owner (NE\TFSSETUP) of job TfsWorkItemTracking Process Identities Job has server access (reason: Could not obtain information about Windows NT group/user 'NE\TFSSETUP', error code 0x5. [SQLSTATE 42000] (Error 15404) The statement has been terminated. [SQLSTATE 01000] (Error 3621)). Can someone ...Show All
Software Development for Windows Vista When designing WF by xoml-only file, we can have a VS-generated code-beside.
Hi, I just made a workflow console app project (using Beta2.0) and deleted default .cs files and add a single .xoml file (just add a text file and change its extension to .xoml). So, assume this is a xoml-only (test.xoml) and I just simply added a code activity to the workflow by coding xoml like this. <SequentialWorkflowActivity x:Class="test.Workflow1" x:Name="Workflow1" xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/workflow "> <CodeActivity x:Name="codeActivity"/> </SequentialWorkflowActivity> Now I ...Show All
SQL Server Using Forms authentication in scripts
We have customized the report server to use our forms authentication. Our authentication expects a cookie. Now if I want to deploy reports using a script, how do i do it . I tried specifying rs.exe <filename> <username><password> but then it does not work as the cookie doesnt exits Any ideas how this could be done We do not want to use the report manager to deploy reports as we want an automated process. Is this feature available. We have to deploy 50 reports at a time and is difficult to deploy them chanign the confguration back to windows and hence forth. Thanks SqlNew ...Show All
Visual Studio Editing an existing connectionstring with the DataConnectionDialog at runtime
Can anyone tell me if it is possible to edit an existing connectionstring with the DataConnectionDialog at runtime in my own winform application I can create a new one at runtime in my own winform application using the following code: Microsoft.Data.ConnectionUI. DataConnectionDialog dcd = new Microsoft.Data.ConnectionUI. DataConnectionDialog (); Microsoft.Data.ConnectionUI. DataSource .AddStandardDataSources(dcd); Microsoft.Data.ConnectionUI. DataConnectionDialog .Show(dcd); Once I have created one, I would like to be able to use the same dialog to edit it by feeding it the existing connectionstring information (the equiv ...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
Windows Forms DB Search
How can I search in a database if a record already exists I am using OleDb, and data binding. The idea is to do a software to rent PC for a specific time, and if the computer is already rented, shows a message. Thank you Yes, sorry, my mistake... But thanks for the answer. ...Show All
