Zep--'s Q&A profile
.NET Development Problem updating record
Hi, I've the following code used to update a record on my Access database: con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=""C:\Programacao\Visual Basic\Inapal\ReportIt\ReportIt.mdb"";" con.Open() sSQL = "SELECT * FROM [Utilizadores] WHERE (User= '" & Utilizador & "')" da = New OleDb.OleDbDataAdapter(sSQL, con) ds.Clear() da.Fill(ds, "Utilizadores") ds.Tables(0).Rows(0).Item("Password") = NewPasswordTxtBx.Text da.Update(ds, "Utilizadores") con.Close() Me.Close() When I try to update the record I get the following error: "Update requires a valid UpdateCommand when passed DataRow collection w ...Show All
SQL Server Impersonate and Sqlexpress
I don't want to use "network service" account for app poll identity for asp.net applications because of security reason. But I try to use sqlexpress I receive following error message. "Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed." But when I try to connect master db with same account (test) there is no problem. Then I create to user profile for "test" account but same error occurred. Does anyone know how I can resolve this Thanks! I create and configure a "test" account for app.pool. Database is located in App_Data f ...Show All
Visual C# Application Listener
Hello, i like to know if it is possible in .NET to make a listener to know when an application (whatever application installed in a PC) is opened or closed, and if it's possible can you give me some information about how to do this. Thanks in Advance Juan Sebastian Escobar. Hi, you can create an application that periodically queries all of the open processes. You can use the GetProcesses method in the System.Diagnostics.Process class to find a list of all the current processes. Mark ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting Direct3D 10 Samples (April SDK) running
Hi! I'm using the Vista Beta 2 and I'm trying to run the Direct3D 10 samples in the April SDK. Unfortunately they all don't work on my computer. They should work in a Direct3D 10 software emulation mode, right Do I have to change any (DX) settings Or do I need extra software Thanks Nico NicoRi wrote: Hi! I'm using the Vista Beta 2 and I'm trying to run the Direct3D 10 samples in the April SDK. Unfortunately they all don't work on my computer. They should work in a Direct3D 10 software emulation mode, right Do I have to change any (DX) settings Or do I need extra software Thanks Nico ...Show All
Game Technologies: DirectX, XNA, XACT, etc. My XNA Game 'iFACTOR'
Believe it or not, this time it's not a question :) I appreciate all the help I've been getting on this forum and I'd like to share some media of my first game. The media was taken from a Windows build but the game is designed for Xbox360. http://www.vector2games.com/ Thanks, Dave Well, yeah, I had to do that to get the screenshot and video right But the whole idea seemed a little 'Frankenstein'ish' if you know what I mean. I know a small percentage of 360 users have 'Creator's Club' but I'm sure fewer still have a 360 controller for PC. Maybe not, it just seemed overly niche to me. Besides, I absolutely love the idea of running a game on my 360 knowing that anyone else who plays it will be having the exact same experience since ever ...Show All
Visual Studio Express Editions nooobi
hi , i'm new to c# just moved from java ,what is c#'s equivalent to java's URLREADER (the class that enables me to grab a remote webpage from within the applet) thanks in advance no in c# i just used remote to emphasis the fact that i'm trying to grab it from my desktop applet and not by actualy going to address with a browser ... ...Show All
Visual Studio Express Editions comparing VB6 to VB2005 express
I have just 'discovered' the VB2005 express web site. In typical M$ fashion, The Vb2005 express web site does not explain how it compares to the VB6 IDE and VB6 code ... I have lots of VB6 code. Is the 2005 express just an updated IDE which will run/compile VB6 source code or does code need modifying (into some sort of .net code ) If my VB6 code does not need changing, are all the controls which ship with Express the same as those in VB6 Do I lose any functionality compared to Vb6 "They are two COMPLETELY different languages." I don't fully agree with Jan. They are very similar and not the same. The reason that MS doesn't discuss the differences is that VB6 is three r ...Show All
Visual Basic Crystal Report And Similar Tool For Printing Document
May i know is there any tutorial on Crystal Report, i want to retrieve some data from database, format it and print it out. Apart from Crystal Report, what other tools is suitable for this Thank you. There are quite a few software vendors who have got report generating tools. Your choice will probably come down to cost. If you are using VS2005 then you may want to stick with the free version of crystal provided, but you can always find others by googling report generators. As for crystal tutorials, try going to the business objects website as there are walk through examples there. ...Show All
Visual Studio How to set VS 2005 so that the Output tab is the default one chosen/displayed when debugging
I'm not sure where to ask this or how to best to explain it, but I'll give it a shot. When I press F5 to run an application, several tabs show up at the bottom of VS (Call Stack, Break Points, Command Window, etc.) One of those tabs is called "Output". I use the output window more frequently than the others because I use a lot of Debug.Writeline() statements in my code. The bottom line is that when I press F5, VS always defaults to the "Command Window" tab, and I want it to default to the Output tab. Is there a way to do this Try this in the IDE go to Tools -> Options Open Projects and Solutions Highlight General selection. Check Show Output window when build starts. Also you can hide other debug tabs once ...Show All
Visual Studio Express Editions The keypress event
I have my program setup to hide itself when a button on the form is pressed, is there a line of code that would (me.show) itself when the "q" key is pressed. I have tried many things but nothing works. Average Joe sorry about the language error with the me. ( i have been switching back and fourth between languages lately. And to get it straight for you I press a button on the form then it hides itself, then I want to be able to show it when I press a certain key. Can you help thanks averagejoe ...Show All
Windows Forms "dateTimePicker_ValueChanged" event
winforms 2.0 hiya, I want to run some code, based on the value that a user has selected within a dateTimePicker. However, if the user browses to a different month, then the event fires BEFORE the user has actually selected a date within said month. why which event should I use many thanks, yogi hiya, but how can differntiate betwee the 1st and second time do i have to create a counter or something cheers, yogi ...Show All
Software Development for Windows Vista Rules Editor
I must be missing something simple but I have been unable to use the "System.Workflow.Activities.Rules.RuleConditionReference" within my workflow (CAG specifically). Everytime I select this option and click the ellipse to add a New Condition , the popup closes. If I enter text manually in the ConditionName field and hit enter, it will create the worklow.rules file with RuleExpressionCondition line. Next I try to add the expression by clickin on the ellipse and I get an error "An item with the same key has already been added". I have hand coded a rules file using other examples in hopes of it being recognized but with no luck. Am I missing something Jesse I am able to create a new application and succesfu ...Show All
Windows Forms equivalent of Access Requery method?
I have a DataGridView bound to a collection in a custom object. It works fine pretty much. My question is this. This collection of mine is a collection of folder names. The user clicks a button to select a folder, and the folder is added to the collection if the user clicks OK on the folder dialog. However, the DataGridView is not displaying the newly added folder, even though I've successfully added it to the underlying collection. (When I close and reopen the form, the new item appears.) How do you get the DataGridView to display rows added programmatically In Access, we have to call the Requery method on the control, but I don't see something like that here. ...Show All
Connected Services Framework HelloWorld Sample-CreateSession times out
hi, Can somebody tell, why should the CreateSession time-out . After clicking CreateSession button, the status continues to show "create session in progress", and after some time, it times out. Links are all proper. thanks,. anita Hi, thanks for ur reply. We specified the windows credentials in the code itself, while creating session as message.Header.Security.Add(new UsernameToken("username", "password", PasswordOption.SendPlainText)); But still resulted in an exception (input trace) <processingStep description ="Exception thrown: User 'username' is not authorized to access the service ."> at Microsoft.Web.Services3.Design.Au ...Show All
Visual Studio Adding ActiveX control to MS Visual Studio 2005
I have a third party ActiveX which I'd like to utilise with a project developed using Visual Studio 2005, mostly developed in C#. I've taken the .ocx and run RegSvr32 and AxImp against it. In Visual Studio I've added the control to the toolbox, but when I try to add it to a form I get the following : Message box : Failed to register the ActiveX control. Please ensure it is registered properly 3 warnings 1 : Could not resolve dependent COM reference "stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 2 : Failed to create the wrapper assembly for type library "AxWTReaderNet". Exception of type 'Microsoft.Build.Tasks.ComReferenceResolutionException' was thrown. 3 : The ...Show All
