Yuval Ronen's Q&A profile
.NET Development Selecting a Row from the Dataset and Insert into Database(only one row)
Hi all, I am currently coding my final year project and would like some help. I need to select a row from the dataset and insert into the database(only one row at a time). After inserting into the database, I need to delete that row which has been inserted into the database from my dataset. I sincerely hope you could provide me with some help. Thank You, I would really appreciate it. Regards: Fiza Here is my code. '-------- ...Show All
Visual Studio Team System How to check the name of interface in fxcop by customrule
i want to create a custome rule to check the name of interface . that should start with i. is it possible . if it is so. please give me some idea.. waiting for your reply.. Vinoth, This rule already exists, check out the IdentifiersShouldHaveCorrectPrefix rule. However, to see a code sample of a similar rule, see: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=83336&SiteID=1 . ...Show All
SQL Server Stuck between "Failed to generate user instance" and "An attempt to attach...failed"
I wrote an application using Visual Studio 2005 beta 2 which uses a SQL Express .mdf file, included in the project, for the database. After installing Visual Studio 2005 RC and the SQL Express that comes with it (I followed all of the uninstall instructions first) I can no longer add a SQL Express database to any of my projects, nor can I open the SQL Express database in my original project. When I try either of these tasks, I get th ...Show All
Visual C# How to change
Hello Everybody, I want to change the screen resolution programatically using C#. Because, i am deploying a project developed using C#. On my system it is working perfectly. But, on other system or when i accesed through remote connection the buttons beneath the form are not able to view. So, could any boby give the suggestion how can i solve this problem. Thanks in advance. ----------V.K.Shaji Kumar Wouldn't it be better to res ...Show All
Visual Studio Tools for Office Deploying VSTO Word Project: could not find or load customization assembly
Hello! I developed a custom task pane with VSTO for a Word2003 report and now I would like to enable access for my clients to this document. I copied the document to a server folder in my intranet and tried opening it, but I got the following error:: "The customization assembly could not be found or could not be loaded" "The customization does not have the required permissions to execute." Therefore, I need to grant access to a server folder ...Show All
Visual Studio Getting files by label failure - VSS 2005 beta (8.0.50215.44)
Hi, I'm trying to get files by label and get this error: " SourceSafe was unable to finish writing a file... " I work with VS2005(beta), and the VSS database is on the shared location in the internal network. When I ran "C:\Program Files\Microsoft Visual SourceSafe\analyze.exe" -F -V3 -D " \\myserver\vss\data ", I've got following messages (many of them): "A timestamp in the log for .... is out of sequence" "There is a ...Show All
.NET Development strong names problem...
I have a console application in c# that uses objects that is in another dll(unmanaged code). when I reference from the project to the dll it creates another dll with the name Interop.MyDll.dll now, I created snk file with sn.exe and added reference to it from the project [assembly: AssemblyKeyFile("@"..\..\exampleSN.snk"")] with this it wont compile because of: "Assembly generation failed -- Referenced assembly 'Interop.MyDll' does not have a s ...Show All
Visual Studio 2008 (Pre-release) saving application data in xps
hi, i am wondering about how to use xps for saving application data that is not useful for viewing but for saving and retriving application data like.ppt (propritoy format). so that i can save all the visul elements like grids etc (not the subset of wpf) my requirment is that i want to save formatiing that is saved and retrived so that i acn modify the complete format, is it possible with xps if so are there any example or samples. ...Show All
Windows Forms WebBrowser to view documents like word docs
I have being using the WebBrowser control to show documents like office files and pdfs, i am now changing my EXE to an ActiveX to use in my new web application only now i get an exception saying "Adding a WebBrowser control in Internet Explorer is not supported" at System.windows.forms.webbrowser.CheckIfCreatedInIE Due to the encryption and way my program must work it must be ActiveX so does anyone know how to get around this or rai ...Show All
.NET Development Getting a picture by web service
Hi all, I'm building a web service that gets a pupile details from a database by giving his ID number. I have no problem with the personal details. Now I'm dealing with the pupile picture. 1. How can I deal with the pictures in the database. 2. How to get them by the web service. 3. What is the format can I get the picture, can I get it as XML stream, and get it back. Please help me. and if you know a link for a web service tutorial that get a ...Show All
.NET Development Framework 2.0 breaks interop app
VBScript code calls C# class library objects published to COM with ComVisible attribute. It works fine only when 1.1 runtime is installed. After installing 2.0, script breaks with 'unknown exception' when returning from CLR (property or (in other place) method is called, both returning managed object) Class library is compiled against 1.1 and 2.0 runtime (it doesn't matter) Both script and class library can be even debugged an ...Show All
Smart Device Development loading image from url (pocket pc client)
hi... i want to create simple application that view image from http. I'm using c# in visual studio 2003. So i created this coding this view the image. bmp = new Bitmap( //192.168.1.12/aku.jpg);pbGambar.Image" href="http://192.168.1.12/aku.jpg);pbGambar.Image">http://192.168.1.12/aku.jpg); pbGambar.Image = (Image) bmp; i compile it and run. But it say not supported URI format. Another way or example Please see this: ht ...Show All
Windows Forms strong name file
I have created a snk file with VS prompt Command sn -k netTest.snk in AssemblyInfo.vb : <Assembly: AssemblyKeyFileAttribute("netTest.snk")> I'm using vb net and SDK says : Visual Basic .NET looks for the key file in the directory containing the  ...Show All
.NET Development Dictionary, StringDictionary, Hastable, ... and NameValueCollection - When to use which
There are many options like Dictionary, StringDictionary, Hastable, NameValueCollections and ... The purpose of some are clear like SortedList, rest can be used interchangeably. Hybrid is also kind of clear along with ListDictionary and so is Hashtable. Is there any documentation, which can suggests which collection/dictionary should be used in which scenario Improving .NET Application Performance and ...Show All
Visual FoxPro Old Fox Pro Code Please Help
I have the following code from an older version of Fox Pro. I typed it into VFP 8 and I can't get it to work. Does anyone have any suggestions SET BELL OFF SET TALK OFF SET DEVICE TO SCREEN CLEAR ****** NUM1 = " " NUM2 = " " NUM3 = " " NUM4 = " " NUM5 = " " NUM6 = " " @ 10, 5 SAY "ENTER LOTTERY NUMBERS" @ 10, 50 SAY NUM1 PICTURE "XXX" @ 10, 50 GET NUM1 PICTURE "XXX" @ ...Show All
