Lee Eden's Q&A profile
Visual Studio Team System How To Generate Sales Data
I want to generate sales data where different product will have different price in diferrent date. Let say I have a Product table to store the MinPrice and MaxPrice of each product. How do I generate the data so that the price is in the range of MinPrice and MaxPrice for each product Thanks. Jimmy Hi Jimmy, I am trying to think of the right way to do this, but I have another question. How are you currently doing this in SQL What kind of constraints do you have on the price column to enforce this Thank you, Nicole Johanson ...Show All
Visual Studio 2008 (Pre-release) Resize proportionaly window
Hello to all! I need to realize a window that at the same time resizes width and height, maintaining therefore the proportion of the window. How can I do it Thanks! I have it, now how could i resize window Send a size api message void Window1_SourceInitialized( object sender, EventArgs e) { HwndSource hwndSource = PresentationSource .FromVisual(( Visual )sender) as HwndSource ; hwndSource.AddHook( new HwndSourceHook (WndProc)); } private static IntPtr WndProc( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled) { if (msg == WM_NCHITTEST) { /*handled = true;*/ } /*if (msg == WM_SIZING) { System.Diagnostics.Deb ...Show All
.NET Development Exception: DataTable internal index is corrupted: '5'. on ...
Hi, I have a problem with bindingsource component in framework 2.0. I have a combobox bound to a bindingsource which is also bound to a dataset with 2 related tables and a datagridview bound to the same bindingsource. What I want to do is : When the selectedindex property of my combobox changes, the corresponding cell value must be changed in the datagridview. But although the value in bindingsource changes, datagridview does not display the new value. That value is displayed after I move the mouse over that cell and make it invalidate its region manually. Another error I caught is the one that you can see as the subject of my post. I do not know why i have that message when I try to change the property of ((DataRowView)mybindi ...Show All
Windows Forms How to create Arrow Line Control?
Hi, all. If you ever used visio, you have seen the arrow link. You can put arrow link between two text boxes or image boxes. I want to create the arrow as a custom control so user can select arrow on the form and can drag it/link between two picture boxes. Does any one knows about this Any info will help! Thank you. Well, that's a bit of a bummer, please make sure you state your language preference on non-language specific forums like "Windows Forms". It shouldn't be too hard to translate the code, I've avoided any specific VB.NET short-cut. I guess what I'd tried to show in that code is that you don't have to focus on the idea of having to exactly click the "line control". Generically, t ...Show All
Windows Forms The path is not of a legal form.
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. The path is not of a legal form. Hide at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO.Path.GetFullPathInternal(String path) at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile) at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectDependencies(Project project) at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly() at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String fullName, String typeName, Boolean ...Show All
Software Development for Windows Vista DIY information cards - Issue with enveloping signature
Hi, it looks like I could need some help. My situation is following: - I create DIY cards through some homegrown Java code - I sign these DIY cards with Apache xmlsec version 1.3 (latest release). Verification works with this toolkit. - The CardSpace application always refuses to import the crd files saying " An error occurred during the import of a card. Errors in reading the imported card file. " in the event log (Event ID 260) - The signature verification seems to work (if I manipulate the signed data, I get the event description " An incoming identity could not be validated. Signature could not be verified. ") - The signature path validation seems to work (if I removed the trusted certificate, I ge ...Show All
SQL Server Encrypting non text data
I want to encrypt some audio files before inserting them in a SQL server database. I want to use the built in sql server encryption. I found that the encrypt by key function accepts only text (nchar,nvarchar,etc). I was thinking or reading the audio file's bytes and change them to a string and then insert them in the database. I just wanted to take opinions here. Is there a better way to do this thanks in advance Actually, the encryption functions are really designed for binary data, but we accept text variables directly for usability reasons. Unfortunately you will hit a different problem because of a design limitation on our current implementation: the output cannot be greater than 8k, therefore the plaintext has to b ...Show All
Software Development for Windows Vista cdrom.sys - Cannot recognize DVD Drive
I installed Windows Vista RC2 (Build 5744) on a totally fresh new HDD, and everything went fine.... I installed many games, went fine...... Then I tried to install Alcohol 120% to mount one of my backed up games I had not burnt yet.... Then it suddenly shut down. Since then I have been unable to see my NEC ND-2500A, and if I insert a disc it is like it is unable to read it. It makes no attempt to read a disc what so ever. If anyone can help me I would be very grateful.... Many Thanks, (in advance) Ben I have a dvdwriter Samsung SH-S182F. The driver is recognized, but none of the discs are recognized. I have another cdrom drive which too had the same problem. However after removing the lowerfilters and up ...Show All
SQL Server Windows Mobil – SQL- Symbol MC70 Problem
Have an App using SQL CE 2.0. If the App is open and the device is powered off and then back on; the following happens when an update of the data base is attempted: 1. Pocket PC 2003 – IPAQ No problem all is well. 2. WM 2005 – Dell No problem all is well 3. WM 2005 – Symbol MC70 SQL error 0x80004005.** App is compiled under eVC 4.0 ** Some results if App is compiled under VS2005 Is this: a.) My problem b.) WM 2005 problem c.) Symbol problem d.) SQLCE 2.0 problem Any input would be appreicated   ...Show All
Windows Forms highlighting
i'm building this app, a code editor (educational purposes) and I have the GUI ready and I can save, load and do much more with it, so i'm not a total noob at C#. but i try to highlight some of the code and it works quite well. I select the code and color it. but the problem is when I try to type some more the app selects it again . so my question is: How can i make sure that the RTB deselects the selection and so that is does not select it again. here's the code: string echo = "echo"; int index = richTextBox1.Text.IndexOf(echo); if (index != -1) { richTextBox1.Select(index, echo.Length); richTextBox1.SelectionColor = Color.Blue; index = richTextBox1.Text.IndexOf(echo, index + echo. ...Show All
Software Development for Windows Vista Picture taken date missing
Hello Windows Vista 32bit Ultimate (German): Sometimes the EXIF-data "date picture taken" (in German "Aufnahmedatum") is empty in Windows Explorer. Escpecially if I edit the JPG-Image with PaintShopPro 11 and save it, the date will be empty in explorer view, but still exists in EXIF-Tags. If I transfer this Picture to another PC with Windows XP, the "date picture taken" still exists. Also if I open the picture with other Programms, the date is ok. Just in explorer its empty. Maybe in Windows Vista Explorer there is shown a wrong EXIF-Tag Best regards I too have a new Dell Inspiron 1520 laptop running Vista Home Edition. Copied photos from Windows98 ...Show All
Visual Studio 2008 (Pre-release) Binding Lost after changing Image.Source
In my code, I have a WPF Image control bound to a property of an entity class. The binding is configured so that source updates are explicit: <Image Source="{Binding Path=ImageData, UpdateSourceTrigger=Explicit}" ... /> The application allows the user to change the image displayed by displaying a file dialog, then setting the Image.Source property to the selected image file like this: this.imageControl.Source = new BitmapImage(new Uri(selectedFileName)); When the user selects to save the current info, the code calls the following to explicitly update the binding source of the Image control: this.imageControl.GetBindingExpression(Image.SourceProperty).UpdateSource(); an exception is thrown because the GetBindingExpress ...Show All
Visual Studio Express Editions Visual C++ runtime error + MSN
I recieve this error when I launch MSNOS Windows XP Home edition 2002 Service Pack 2. Error is as follows: Microsoft Visual C++ Runtime Library Runtime Error! Program C:\Program Files\MSN\MSN corelfiles\msn.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I am not certain where to post this question and problem. Your assistance is greatly appreciated. Currently, I am using IE as my back-up web browser. Hello For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien ...Show All
SQL Server Only show field on last page
Hallo, i would like to show some fields only on the last page on the report. How can i achieve this (The field is in the body area) King regards, Christian Niehaves Hallo, is there any possiblity to get the current page number and the total number of pages in the body area of a report King regards Christian Niehaves ...Show All
Visual Studio GuidancePackage Solution Will Not build
I have just installed the GAT, and GAX. I openned the GuidancePackage solution and tried to build it. No luck. I am getting "Unexpected Character '$'" listed for the namespaces in many classes. I have a warning message: "Load of property 'RootNamespce' failed. And there seems to be a problem with a file named $packageName$.xml Anyhelp gettting started would be appreciated. Thanks Tom I've found the problem.. http://jelle.druyts.net/2006/06/26/GAS02CreatingAGuidancePackage.aspx This link got me started. Apparently you don't compile the solution that is installed. Instead, you open a new project of type "Guidance Package", and then build and register that. The ...Show All
