Eric Robert's Q&A profile
.NET Development Issues with updating Access DataSource
I have generated an bindingsource and dataset without code. I have bound data to a text box and navigate easily enough with a navigator object. When I try to save the data to the mdb file with the following code nothing happens. No exceptions, No updates. this .dummyTableBindingSource.EndEdit(); dummyTableTableAdapter1.Update(jobCards_beDataSet.DummyTable); jobCards_beDataSet.DummyTable.AcceptChanges(); DummyTable consists of { DummyNo Autonumber DummyName Text (not required) } The row states do change when the data is modified, added or deleted. The mdb file is not read only , it does not have a password. I can also open the mdf file and edit directly on the table. The main idea behind this app is to use as little code as po ...Show All
Software Development for Windows Vista Error Accessing Registry while compiling VB COM component in Vista
I am trying to compile a VB based COM component and I got the error - Error accessing registry". Even though the DLL has been generated. When I tried to register the same through Regsvr32.exe then also I get the same error. So I believe it's giving error while registering. My login ID is a memeber of administrative group. Can we get rid of security message we receive every time while opening any exe file. Regards, Virendra When registering DLLs, you must always be in an elevated state. If you are automatically registering it when you build the DLL, it may be running regsvr32 without elevated privileges. Even on an admin account, you must still be elevated (yes, it's strange, but even admins don't have full ac ...Show All
Visual C++ Media player GUI
Is it possible to create skin of a media player using VC++ 6.0 If possible how This forum is meant for C++ language questions using Visual Studio 2003/5. Please use the MSDN discussion groups for Multimedia and VC6 questions. Eineros posted a resource for finding the right place to go at the top of the forum listing. ...Show All
Windows Forms how to add a new row to datagridview + bound text boxes et
I have a datagridview(too small to put all the column values) so I used some text boxes in a form below to display the entire detail for any selected row. The textboxes are bound to the same databindingsource as the datagridview..The selected row in datagrid populates values in the textboxes. I want some mechanism so that when a user wants to add a row, they can put their values in the textboxes and hit add button which puts the new row in the datagridview. Is this possible Thanks.. Paul, The bigger problem is in the UI aspect. The textboxes are bound to the same databindingsource as the datagridview. For the user to be able to add a new item, I am not able to provide them with textboxes whi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem updating sprite location
Hi all, This may be a stupid question as I am new to C# but here goes...I defined a ScreenObject class like this: Class ScreenObject { //private variables protected Vector2 _location; protected float _rotation; ...etc... //methods public Vector2 Location { get { return _location; } set { _location = value ;} } ...etc... } // variable = instance of class The question is why can't I use variable .Location.X += 1 in my Game Update method, but can use variable .Rotation += 1. I get a build error that Location.X is not a variable. I have worked around this like this: Vector2 currentLoc = variable .Location; Vector2 newLoc = new Vector2 (currentLoc.X += 1, currentL ...Show All
Software Development for Windows Vista application compatibility
hi all, do the application installed executables and files need to be signed for any application to be compatible on vista to achieve compatibility in vista for an y application, signed drivers and files are needed or not thanks divya Hello divya mittal, You do not need your application signed to be compatible with Vista however you do need to have your application signed for the logo testing. 64 bit editions of Windows Vista do require all kernel mode drivers be signed before they are installed. Thanks! Matthew Braun ...Show All
Visual Studio 2008 (Pre-release) Guidance for IErrorHandler
Hi, I'm looking for some guidance on how I should use the IErrorHandler. I have it configured, and running, but I'm really not sure how to go about getting it to the "right" things. Additionaly, I'm supposed to make it interact with the exception policies (ExceptionPolicy) of EntLib. Thanks you can change fault message in ProvideFault method and you can pause actual error message or just send some generic error message. // Provide a fault. The Message fault parameter can be replaced, or set to // null to suppress reporting a fault. public void ProvideFault( Exception error, MessageVersion version, ref Message fault) { Console .WriteLine(error. ...Show All
Visual Studio 2008 (Pre-release) Pasting XML as XElement
I have LINQ CTP (May 2006) installed and working fine. In watching the latest Lang.NET screencast by Anders Hejlsberg on Channel 9, he demonstrates pasting an XML document as an XElement from a document copied in the clipboard. The "Paste XML as XElement" menu item in the Edit menu doesn't show in my VS2005. Can someone let me know if I am doing something wrong or it will be available in a future LINQ CTP. Thanks On the VS Tools menu, click on the Add-in Manager and make sure that the "Paste XML as XElement" addin is present and loaded at startup. On the VS Customize menu, click on the Addins category. You should see the "Paste XML as XElement" addin (with a smiley fac ...Show All
Visual Studio Team System No options available for SQL Schema Compare?
I just made a SQL Schema compare to see if my database had differences. I wanted to ignore the collation to avoid hundreds of collation differences. Is that possible Where are the options for the compare E.g. in Red-Gate SQL Compare there are 35 available options when you compare schemas so you can get the changes you are looking for. You might have different owners which you like to keep as because of differences on servers and differences between test, verification and production environments. Best regards Niklas Hi Niklas We have alot of options availible for schema compare in Tools\Option\Database Tools\ Schema compare. In there we do have an option to ignore Collation ...Show All
SQL Server Cursors
I have a table which do not have any primary key defined. Neither does it have any identity column. Is there any way possible to traverse through that table one record at a time without using a cursor. I guess cursors take much more time. I am not sure what part you are unfamiliar with. If you need to get one record, do something to it you are describing a scenario where a cursor it motivated to use. There is nothing bad about cursors just that for some scenarios you can write a single query that do all the job for you. If you need to update the price for all products in a database you probably can do a set-based operation like this to give 25% reduced price. update dbo.Products set prdPrice = prdPrice * 0.8 Another ...Show All
.NET Development Socket Problem?
Hi All, I tried create the tcpclient socket program. But my program has exception with receivesocket() function aften connected server.Please somebody can help me. Exception: A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll Receive Socket Error: System.Threading.ThreadAbortException: Thread was being aborted. at System.IO.__ConsoleStream.WriteFile(SafeFileHandle handle, Byte* bytes, Int32 numBytesToWrite, Int32& numBytesWritten, IntPtr mustBeZero) at System.IO.__ConsoleStream.WriteFileNative(SafeFileHandle hFile, Byte[] bytes, Int32 offset, Int32 count, Int32 mustBeZero, Int32& errorCode) at System.IO.__ConsoleStream.Write(Byte[] buffer ...Show All
.NET Development help regarding requiredfieldvalidator
Dear All, i am making web application using asp.net ,C# (Visual studio 2005).i have a web page with couple textbox conntrol and dropdownlist controls(Some of them autopostback is true). In order to check whether this control is not blank i use requiredfielfvalidator control. my problem is i want all required validator only check at save event event not whenever there is postback. that is let say textbox control having postback true only check all its previous required validator. Not succesor validator Is it possible. if yes how can i do it . please guide me Find each control that causes a post back and shouldn't check required fields and change the CausesValidation property of the control to False. ...Show All
Software Development for Windows Vista ICredentialProvider
Did anybody make a successful user logon using the new ICredentialProvider interface My credentials are displayed, but I can't make them to logon. And what worse - after 20 or 30 seconds, the winlogon crashes completely with no recovery possible excepting hardware reset. I thought I basically did something wrong and decided to wait for more detailed documentation or some sample code. But MS doesn't seem to put too much effort on improving their SDK documentation and I also found that at least one other programmer has the same problem: http://msdn.microsoft.com/newsgroups/default.aspx query=vista&dg=microsoft.public.platformsdk.security&cat=en-us-msdn-windev-winsdk&lang=en&cr=US&pt=&catli ...Show All
Gadgets created gadget. not in list.
I built a BASIC gadget from the step by step process on the MS site...it is in the directory and all files are in place, however, it is not on the gadget list when I go to add gadget... Do I have to go through an install process for the gadget and if so how would I do that Not sure what I missed. Thanks, Chris I spent an hour trying to make that example gadget.xml work from the technet site and it was fruitless. Modifying one in the C:\Program Files\windows sidebar\Gadgets\ folder worked like a charm. Thanks for the fix! ...Show All
Visual C# Create a function that takes a Property and a Value as a parameter
This might be a little out there, but lets say that I really want to pass a property of a complex class to a function that will assign the property a value. Example: Private Void AssignValueToProperty(Property property, Object Value) { property = Value } Form1_Load() { AssignValueToProperty(This.BackColor, Color.Red) AssignValueToProperty(This.Text, "Form1") AssignValueToProperty(This.Size, new Size(500,500)) } Is such a function possible, maybe using tools like reflection can someone post a quick example of how I would do this Hi, yes, you could do this with the help of Reflection: private void AssignValueToProperty( object myObject, string propertyName, object propertyValue) { T ...Show All
