srinivas_kv80's Q&A profile
Windows Forms Gridview gives error when updating
I use Visual Studio 2005. I have established a database connection to Access database using the wizard and I also generated the update, insert and delete sentences with this wizard. After that I dragged and dropped a gridview on the form and configured it to this Access database. There seems to be a problem when Update-button is pushed in gridview. If the datatype for a column is currency; the gridview generates different kind of errors: If I give a value like "1,73" when pushing the Update-button the gridview gives error "OleDbException (0x80040e07): " If I give a value like "1.73" when pushing the Update-button the gridview gives error "Input string not in a correct ...Show All
Visual Studio 2008 (Pre-release) Error during compile
I've got an application in progress that was written with plain ol' Visual Studio C# 2005 (no LINQ preview installed). Then I installed the LINQ preview. I found the settings in the project files to copy to my existing app, so I did that and it compiles fine. I can use the new keywords like var and execute DLinq queries and so on. However, one statement is giving me the following compile error: Error 3 The type arguments for method 'System.Data.TypedTableBaseExtensions.Where<T>(System.Data.TypedTableBase<T>, System.Query.Func<T,bool>)' cannot be inferred from the usage. Try specifying the type arguments explicitly. C:\Programs\StarTrek\StarTrek\Database\CompanyGridForm.cs 75 9 StarTrek The statement is: var ...Show All
.NET Development Asyn calls to webservice
I need to call a couple of web services on the client side. Currently I'm making seperate asyn calls to each of them. My question is 1. Is there a better way to do this. Can I make all the calls within one method and using the same IAsynResult object. 2. If yes, then in this case I 'm assuming I would need to set the AsynWaitHandle to WaitAll. But I only see the waitOne() method and not the others such as WaitAny and WaitAll. I'm on VS 2003 1.1 Thanks, 1. No, an IAsyncResult is specific to an individual method call. It contains specific details such as the async state that was passed into the method, and the underlying implementation of the IAsyncResult interface also may contain details such as ...Show All
Silverlight (formerly WPF/E) Set Values for Storyboard.TargetName
Hi, Can anyone tell me how to assign values to Storyboard.TargetName dynamically at runtime in WPF/E Please let me know. Regards, Santosh Kalkeri According to this post , this is not possible in the current CTP. I believe it is in the plans to be added, but right now you cannot set this value. You need to create a new storyboard and attach it to each element you want to animate. ...Show All
Visual Studio Tools for Office Custom command bar outlook
Hi, I've been trying to write a custom command bar for outlook 2003 using vb.net + vsto SE, however I really cant seem to get anywhere with it, as in I dont know where to start and every piece of code i got off net doesnt seem to work, has anyone got any help Thanks Chris Check out Add-in Express for VSTO ( http://www.add-in-express.com/add-in-vsto/ ) which provides components for creating COM add-ins and adding custom Explorer and Inspector command bars to Outlook. ...Show All
Windows Forms SaveFileDialog how to use?
I have a richtextbox1 on a child form inwhich I write a small bit of text in. I then want to save the text from this richtextbox into a .txt file. I have got the saveDialog menu at the bottom of my screen But I am unsure how to correctly make this all work. I know there should be some dialog.filter and index for txt files code somewhere but I dont know where. The code i have done so far is :- private void saveToolStripMenuItem_Click( object sender, EventArgs e) { DialogResult dr = saveFileDialog1.ShowDialog(); if (dr != DialogResult .OK) return ; else { StreamWriter sw = new StreamWriter ( "filename" ); sw.Write( ); //What should I put in the Write function } } Also is ope ...Show All
SQL Server Where the hell is LIMIT like in MySQL?
If you ask ANY developer that has worked with both MySQL and MS SQL, every single one of them will say why hasn't microsoft given MS SQL the capability to do LIMITS as such in MySQL. I'm not impressed by any of the stupid work arounds either... they run heavy and crapout under a large record load. Of course there are several other attributes that MS SQL has that MySQL can't offer, but again, MySQL is FREE and PAID tools should have all that a free competitor has plus some. Is there any planned action to remedy this absurd oversight Have you looked at the new ROW_NUMBER syntax in SQL Server 2005 USE AdventureWorks ; GO WITH OrderedOrders AS ( SELECT SalesOrderID , OrderDate , ROW_NUMBER () OVER ...Show All
.NET Development can´t find System.Configuration.Configuration Class
Hi, I'm new in .net programing. I'm trying to use the System.Configuration.Configuration Class but it doesn't exist under the namespace System.Configuration. I've just installed SP1 for .NET 2005 but nothing changed. If somebody have a clue I'll appreciate it. Thanks, Rodrigo. ...Show All
SQL Server Question Regarding Scenario On DataMining
Hi to all I want to know how achieve the following scenario, I will highly encourage if anyone knows the solution please mention it through steps. The scenario is I have a table named “CreditCardTable ” with following schema , the table is pretty much what one expect from a simple credit card application that will present form to user who fills the application of credit card and data going to be filled into the table. Later an analyst will review the data and will be accepting or rejecting the Credit Card along with some other fields as seen in the schema. -----Schema -------- CustomerName Bigint Age int DOB DateTime LimitAssigned Bigint Analystname varchar Salary varchar Gender bit Qualification varchar Country va ...Show All
Visual Studio Team System how do i point fxcop at my asp.net code-behind assemblies ?
I want to run fxcop on my compiled code-behind assemblies for an asp.net 2.0 web application. Ive configured fxcop as an external tool in VS 2005. What do i specify for an initial directory - item directory target directory project directory solution directory Check out this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=416902&SiteID=1 . We don't actually have any domain experience in kicking of the aspnet_compiler.exe in the last point off that post, so any questions regarding it usage would probably be better posted over on the ASP.NET Forums . Also as mentioned, the preferred method is to use the new aftermarked Web Application Project (which I believe will ship with SP1). Regards David ...Show All
SQL Server Sick database - giant log file
Hi, I have a database with a giant logfile which I am having trouble shrinking - 25GB log file for a 10MB database. I cannot back up the database because I get some sort of disk failure in the application log file (there is plenty of room on the disk I think - 35GB). (Note: the software RAID system on this box is suspect.) I cannot detach the database because it is being replicated. I cannot remove the replication because the server the publication refers to no longer exists and I get an error about only being allowed to use real server names (a real Catch 22 there). If I stop the server and rename the log file, the database becomes "suspect". Renaming it back fixes it. This is an inherited database and I don't rea ...Show All
SQL Server FAILED again! Express fails to install on Windows server 2003
VERY frustrating. I have tried uninstalling. removing regietry keys. removing with the windows unistaller etc... to NO avial. See my Core.Log: Error: Action "LaunchLocalBootstrapAction" threw an exception during execution. Error information reported during run: "c:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\setup.exe" finished and returned: 3221225477 Aborting queue processing as nested installer has completed Message pump returning: 3221225477 And my Core(local).log: Error: Action "ReportChainingResults" threw an exception during execution. DwLaunchMsiExec() returned : -1073741819 Error Code: -1073741819 Windows Error Text: Source File Name: sqlchaining\sqlchainingactions. ...Show All
SQL Server AS400 password request
Hi all, I'm loading a working SSIS package in VB.NET and executing it programmatically. As the 'Persist Security Info' is set, it executes fine, presumably because I executed it previously with valid login info. But, when I update the connection info (programmatically) it prompts me for a password at runtime. The connection string will be provided by the user (DB Admin) and this is running as a Windows service, so what I want to do is, in the case of invalid login info, just receive a rejection, that I can respond to in the code. I'm using the IBMDA400 data provider to connect to an iSeries. Ideally, I need a generic solution that will apply to all connection strings and providers, if possible, but provider specific would be fine for no ...Show All
Visual Studio 2008 (Pre-release) XAML equivalent for Focus()
Right now, if I need to start up a Window with a specific control in focus, I call control.Focus() in the Window derived class's constructor. But is there a way to do this in Xaml I believe I have to use FocusManager.FocusedElement, but all my attempts at using that have failed - could someone show a Xaml example of doing this please Thanks. setting FocusManager.FocusedElement = " {Binding ElementName=txt2} " on the stackpanel works in my case ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3d multiple model help
i have 2 models in my game loaded. where one of the models is a gokart and camera follows it from behind. the second model is the track. when i controll the kart the kart moves but the track model stays still. how do i overcome this. this is the code for drawing the track model.(just the track model not the kart) private void DrawModel( Model m) { Matrix [] transforms = new Matrix [m.Bones.Count]; float aspectRatio = graphics.GraphicsDevice.Viewport.Width / graphics.GraphicsDevice.Viewport.Height; m.CopyAbsoluteBoneTransformsTo(transforms); Matrix projection = Matrix .CreatePerspectiveFieldOfView( MathHelper .ToRadians(45.0f), aspectRatio, 1.0f, 10000.0f); Matrix view = Matrix .CreateLookAt( new V ...Show All
