Software Development Network Logo
  • SQL Server
  • Game Technologies
  • Visual C++
  • VS Team System
  • IE Development
  • Smart Devicet
  • Windows Forms
  • SharePoint Products
  • Visual Studio
  • .NET Development
  • Visual FoxPro
  • Audio and Video
  • Windows Vista
  • Microsoft ISV
  • Visual C#

Software Development Network >> VidyaSagarCh's Q&A profile

VidyaSagarCh

Member List

Lixin wang
Flame Thrower
Raffaele Rialdi
AmolWankhede
Larry.Dugger
mateus_queiroz
just_Curious
birdman005
Ulfaen
Margaret H
mahalax
FHJJr
David Sadler
Avi_harush
Kyle_W
Hani Felemban
SP534
Hamed_1983
Arkcann
directSH
Only Title

VidyaSagarCh's Q&A profile

  • Visual Studio Express Editions Repeating code

    Below is the code to change the backcolor of a label. It is need to be applied many labels, how can I do this without having to write this code many times for the individual label. If BetfairGamesClient.Label14.Text = "Winner" Then BetfairGamesClient.Label14.BackColor = Color.LightGreen ElseIf BetfairGamesClient.Label14.Text = "Loser" Then BetfairGamesClient.Label14.BackColor = Color.Red ElseIf BetfairGamesClient.Label14.Text = "Tied" Then BetfairGamesClient.Label14.BackColor = Color.Lime Else BetfairGamesClient.Label14.BackColor = SystemColors.Control End If Yet another way, expanding on the ApplyColor post by Andrej T ...Show All

  • Visual Studio Express Editions C# almost double as fast as VB.NET?

    Check this out: C# code: using System; class SpectralNorm { // // // // Var Def // static DateTime startTime; static DateTime stopTime; static TimeSpan elapsedTime; static long elapsedMS; static void Main(String[] args) { startTime = DateTime.Now; int n = 1000; if (args.Length > 0) n = Int32.Parse(args[0]); Console.WriteLine("{0:f9}", new SpectralNorm().Approximate(n)); stopTime = DateTime.Now; elapsedTime = stopTime.Subtract(startTime); elapsedMS = (long)elapsedTime.TotalMilliseconds; Console.WriteLine("Elapsed Time: {0}", elapsedMS); Console.ReadLine(); } double Approximate(int n) { // create unit vector double[] u = new double[5000]; for (int i=0; i&l ...Show All

  • SQL Server Lift chart

    Is there a Lift chart viewer like the model viewers that can be embedded within your windows apps If not, then can this be easily created via Adomd.net api calls Has anyone done this easily in custom DM applications Thanks in advance, anil There is not a control that you can embed into your own applications, however you should be able to replicate it's behavior. You can inspect the calls made to ther server by using the SQL Profiler to trace all interactions. Another thing to try is to use the Data Mining Addins, which have a lift chart, to see exactly what calls they make to create the lift chart (this is a bit easier since you can inspect the output directly in Excel). ...Show All

  • Architecture Problems with Owner Draw Menus in an out of process ActiveX Document Server

    My Document Server is written with C++ MFC and built using VS .NET 2003 and is targetted to WinXP and newer. I’ve now run out of ideas on how to resolve my owner draw problem when an OLE container attempts to render my shared menus. Everything is fine when the keyboard is used to activate the menubar items. This is because the container is using WM_NCPAINT etc to create a real screen drawing context. This context is then passed through to the in place frame of my server where it will succeed in drawing the menu items ( WM_DRAWITEM ) When the menu bar item is clicked on with the mouse, however, the container make use of WM_PRINT, WM_PRINTCLIENT to render to a memory HDC. When this HDC is passed to my out of process serve ...Show All

  • Windows Forms Strange ListView behavior: setting column width from Resize event handler

    Hi, I came across a strange issue (bug ) with the ListView control. In my application, I want the Column 0 width to always be the same as the ListView client width. This eliminates a horizontal scrollbar and the "extra" column that appears if the Column width is less than the client width. It seems that if the Column 0 width is resized within the ListView's "Resize" event handler, the ListView may not redraw correctly. This typically happens when the vertical scrollbar is present, the scrollbar has been moved from it's "home" (top) position, and the ListView is resized. It's difficult to describe this, so I have put together an illustration (pics, code, demo project) of the problem, which can be found here: h ...Show All

  • Visual Studio Team System get list of files changed after a specific label

    How can you get a list of all the files under a team project that have changed since a particular label was cut on that team project I would appreciate your team considering this enhancement. I might be in the minority, but it would be nice to have a straightforward mechanism to find files that have been modified after the label was cut. Thanks again! ...Show All

  • Windows Forms Which event is fired each time a node is added in a treeview?

    I have a treeview with nodes loaded dynamically I have designed a class which needs to be notified each time a node is added in this treeView, but I don't find it which event this class should subscribe This event should exist since, each time a node is added, the treeview is updated, no Maybe, but it doesn't exist as far as I know. Nor do any of the interfaces implemented by the TreeView Nodes property raise an event when an item is added. As a workaround, why do you need to raise an event Aren't the nodes being added programmatically (they cannot be added directly through the TreeView control in the user interface, which is probably why an event is not offered) and so can't you just call yo ...Show All

  • Visual C++ Bug in Windows 2003 winsocks or MFC CAsyncSockets implementation?

    Download this http webserver example from msdn. http://msdn.microsoft.com/library/default.asp url=/library/en-us/vcsample/html/_sample_mfc_httpsvr.asp Compile and run the software on any Windows 2000 box, with Visual C++ 6.0 or Visual Studio 2003. (I have not installed 2005 to try it with it.) Now inside c:\Webpages (the root dir) put a really large file, say 300k. Download it from another machine. If you had installed the server on Windows 2000 - the download goes very fast. I get (150kb/s). I use wget to time the download speed, and download from a unix box at a different location. You can also use Internet explorer to time the results, but wget is more accurate. Now copy the same server program into a windows 2003 machine an ...Show All

  • SQL Server Master and SubReports

    Hi All, I am new to Rs2005. I have 4 seperate reports, r1, r2, r3, r4,.....etc. I want these reports to be called in sequence in a Master report. I want to make all 4 reports 1 big report. Can this be done, and if so can somebody please point me in the correct direction. Many Thanks in advance. Kenny   Hi, I have now managed to display my 4 reports within a master report. But i am faced with another problem. Each SubReport has its own page header and page footer. But when i run the master report, the master header and footer is displayed on each page instead of the the subReports header or footer. Is there a way to display each of the subReports header independenlty of the master Hea ...Show All

  • SQL Server Using SQL Server CE in a NON .NET Delphi Application

    Hi, I'm looking at using SQL Server CE as a replacement for MS Access in a WIN32 Delphi Application. This limits my database options to Providers that is usable from ADO. I see that the OLE DB Interfaces are implemented, but I can't connect to a SQL Server CE database from Delphi. I've cut and paste a sample connection string (replacing the data source bit) but no go I've installed the Runtime Environment, VS2005 bit, Connectivity Tools and the SDK :) Any help Anything that I might have missed Thanks, Dawid You can buy something like the Delphi native interface to SQL Server from CoreLabs ( http://www.crlab.com/ ) instead of ADO. ...Show All

  • Visual Studio 2008 (Pre-release) May CTP: Where are array extension methods defined?

    Nice work, the CTP - a tad flaky, but usable. I am in the process of upgrading one of my projects using LINQ to the May CTP. I managed to get the build process running, found the "missing" DLL's. I am now stuck with basically 5 compiler errors all related to extension methods. DLL's included are: System.Core; namespaces used are: System; System.Collections.Generic; System.Linq.Expressions; System.Linq; System.Text; System.Xml; The compiler chokes on: public IEnumerable < object > GetValues() { return _FieldValues.ToSequence(); } where _FieldValues is defined as: object [] _FieldValues; Can anyone enlight me In the May CTP ToSequence sas a valid extension that was de ...Show All

  • Visual Studio Team System Download Links for coming Updates to Documentation

    would it be possible to get download links to the current documentation (chm files) for VSTS4DBP as they are updated before RTM Both for VSTS4DBP and API's. I'm on the road quite a bit in the next week(s) and will not have online access much of the time. Since you have indicated there will be several updates before RTM I would like to have access to them offline. Thanks, Alle I wanted to give a quick update. We've got CHM files of our November update, but we're trying to figure out what hurdles we are required to jump in order to make pre-release docs available. Some folks suggested we can't release a version that doesn't have the "Pre-release" tag on all topics, there's ...Show All

  • .NET Development int.Parse oddity

    Hi all: I am trying to parse numeric input a user provides on a web site. I am having a problem with dollar amounts. The following command results in an OverflowException: int.Parse("77,500.50", NumberStyles.Currency, CultureInfo.CurrentCulture) but all of the following commands do not: int.Parse("77,500.00", NumberStyles.Currency, CultureInfo.CurrentCulture) int.Parse("77,50050", NumberStyles.Currency, CultureInfo.CurrentCulture) decimal.Parse("77,500.50", NumberStyles.Currency, CultureInfo.CurrentCulture) Note: the current culture is "en-US". I understand that the integer can't hold the decimal portion of the number, but according to the documentation (.NET 2.0), an O ...Show All

  • Windows Forms KB 912019

    Hello, I have a problem described here: http://support.microsoft.com/kb/912019/en-us Does anybody know how to get this hotfix (KB 912019) Have you tried to download the file now that you have a connect account Many customers were having trouble accessing the file because their Live ID had not yet been associated with Connect. We are working with the Connect Team to solve this issue. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. xna level/map editor

    Hi, guys! Sorry for that probably silly question, but I am somewhat new to the whole XNA stuff. Is it possible to create a tool, i.e. level/map editor with XNA My question is in fact two-fold: 1. Is it possible to load some game content (meshes, textures etc.) through the content pipeline on the fly - from your hard disk and add it to your level All examples i have found so far use only static content added directly to the GSE game project. 2. Is it possible to target XNA rendering output to a windows forms control From what I have seen/tested XNA creates its own window. I have read some threads in this forum from guys who have limited success running XNA inside windows forms, but nothing 100% working, just hacks. Actually I ...Show All

©2008 Software Development Network