srivathsan's Q&A profile
Visual C++ Clock
How would I code a live simple 12 hour format clock that keeps up with my system's clock on my program with "hours, minutes, and seconds" on a status strip on the bottom right I know that I'm new at all of this but could you give better details, I know what datetime.now is but I don't now how to use it or the timer, and whenever I put something in a statusstrip it stays on the left side and I don't know how to move it to the right or the middle and that sort of thing. ...Show All
Windows Forms Form maximize/minimize click event
I need to know when the maximize or minimize button has been clicked. I am saving the window state so it is in the same state as when the user closed the app. Anyone know how to do this Thanks Barry I've only been programming for about 6 months, but ive learned to take long ways around thing I didnt know. I have a suggestion that could help you. It would probly be considered the long way, but it would work. What you could do is have a invisible RichTextBox on your form. Then in the code: Note: This is not the proper code syntax, just trying to give you an idea. Form1.Size = RichTextBox ...Show All
Windows Forms Custom Styles
Hello, I'm familiar with custom styles in ASP.NET development, but I was wondering how styles are applied in windows forms controls; I'm developing a custom controls that I want to provide styling for. Do you use Style objects, or just expose the style properties directly Thanks. In Windows Forms it is just done via setting a control's forecolor or backcolor property. There is no styling support. -mark Program Manager Microsoft This post is provided “as-is” ...Show All
SQL Server Generating Reports in SSIS
How can I setup an SSIS package so that it will generate a report and email (html version) everytime upon completing/populating my datareaderdest Thanks for the lead on the SSIS configurations. My main concern is pushing schedules thru the Dev, QA, & Prod environments and synching the SQL server Agent schedules with the schedule internally in SSRS. GUIDS are used in the SQL Agent. I'd like the same GUIDS to be in Dev, Prod, and QA or way to insure that they are matched up. ...Show All
Smart Device Development How I can change the mouse position ?
Hi again, Im searching how to change the mouse ( Cursor ) position from the code, anybody knows how i can do it Many thx in advance hi macro. i m hassan mushtaq. i have same problem which u face a long time ago. and i'll able very thankful to u for helping me in this regardz. i m using VS 2003 (CF 1.0) with C#. i have a treevieew control. it has afterselect event from which i click on node and then a new form open. now i have to fo it with the context menu. but i m not be able to do that. can u help me or give me code. any help will be appriciated. regardz hassan mushtaq ...Show All
Visual Studio How to tell the RTD that a file is dirty
I need a way to trigger the RTD to think a doc is dirty even though it hasn't be modified by a editor. Hi Bill, The IDE periodically checks if the document is dirty by calling IVsPersistDocData2::IsDocDataDirty(). If you return TRUE from the pfDirty argument, the IDE will display the document as being dirty. Alternatively, if you don't actually implement the DocData object in your scenario, you could try retrieving the IVsPersistDocData2 interface and calling SetDocDataDirty(). Sincerely, Ed Dore [MSFT] This post is 'AS IS' with no warranties, and confers no rights. ...Show All
Visual Studio Team System Error installing December CTP in WORKGROUP - TFServerStatusValidator.exe returns 2336
Installing the December CTP on a clean machine in WORKGROUP mode the installation fails. The failing portion of the install log is as follows: TFServerStatusValidator - Team Foundation Server Status Validator tool Copyright (C), Microsoft Corporation, 2005. All rights reserved. The request failed with HTTP status 401: TF53011: TFSDEMO\Administrator is not a licensed user.. Unauthorized ErrorServerStatusHTTPUnauthorized 02/06/06 10:01:11 DDSet_Status: Process returned 2336 02/06/06 10:01:11 DDSet_Error: The Commandline '"C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\TFServerStatusValidator.exe" ...' returned non-zero value: 2336. MSI (s) ...Show All
Software Development for Windows Vista Build 5303 symbols
Does anyone know where to get build 5303 symbols Alternatively, which build is well supported by the symbol server Thanks, Gary Symbols for the current CTP build (December CTP - build 5270) have apparently been uploaded to the public symbol server. At least for everything my own debugging came into contact with. The builds after that have not been on the public server, and I'm assuming the next time the public symbol server will have them is whenever the next CTP release is made (for whatever build that ends up corresponding to). -Alan ...Show All
Windows Forms Enclose all Properties within #region directive
Hai ....., How can I enclose all of the following Members within a region directive; 1. Member variables 2. Properties 3. Methods Hai vbjunkie, Here is the listing: //start region title if this is the first property if (propertyIndex == 0) //indicates that this is first property member { property.StartDirectives.Add( new CodeRegionDirective ( CodeRegionMode .Start, "Title")); } //end region directive if this is the last property if (propertyIndex == Prope ...Show All
Windows Forms Create 2D line charts in C#
Hi, I would like to create a user interface in C# that displays 2D line chart. The chart will be updated in real-time as data is being collected, kinda like a stock market application. Is there a tool/library/controls in Visual C# that I could use I thought there was something in Visual C++ that one could use to plot a 2D charts by just passing data points and some parameters Perhaps not in C# Do I have draw the axes, the scales, and each data points from scratch Any pointers and suggestions are greatly appreciated. Regards, Jess Currently .NET does not have bui ...Show All
Visual C# Adding tables programmatically
I am updating a portion of my application and I need to programmatically add a new table. How can I accomplish this I do not have direct access to the database system since this is being used by other people (this is a public application for anyone). do you mean database table can't you use sqlstr creat if so take a look to this tutorial http://sqlcourse.com/create.html hope this helps ...Show All
Visual Studio Error after setup VS 2005 CTP Feb.
Did you have any old CTP's installed at all because if so you need to get rid of them all and remove all old 2.0 framework refs... Like go into the folders and get rid of them. NO sure. Can you try using the beta and let us know if you have the same issue. -Bret ...Show All
Visual Studio Team System FxCop Analysis Summary ????
Hi My name is Irfan, just wanted to know the difference between the Issues and the Messages in the Analysis summary when we analyze the source code. Thanks in Advance Irfan .Kalkoti An issue refers to a distinct violation that occurs within a method body or signature. These messages can be categorized with what we refer to as an Id. Every violations that's raised against a common target and which shares a common Id is stored as an issue in the message. Typically, an issue maps to a specific line of code within a method body, but this isn't always the case (as when an issue refers to a to ...Show All
Visual Basic problem with strcmp()
I am trying to do a string compare on variables from 2 arrays: result = StrComp(colArray(z), CStr(the_array(0)(y))) the 1st colArray is declared as a string array the 2nd is declared as a variant array and so I am using cstr to cast it to a string For some reason even when the variables have the same value the strcomp function sees them as different. When I put my cursor over the the_array(0)(y) variables the value comes up with 2 sets of "" on each side, ie ""value"" , what does them mean I am new to VB and have never seen a variable with 2 exclamation marks on each side. Is this my problem Thanks, John ...Show All
Windows Forms Specified argument was out of the range of valid values.Parameter name: '0'is not a valid value for 'index'
I have made my ListBox and ComboBox control which are derived form System.Windows.Forms.ListBox and System.Windows.Forms.ComboBox respectively. When I am populating these controls initially it was throwing error: "Could Not Bind to the New display member. Parameter Name: newDisplayMember" After doing some changes in the ValueMember property, now it is throwing an error: "Specified argument was out of the range of valid values.Parameter name: '0'is not a valid value for 'index'" The code is here: ComboBox1.DataSource = objDS.Tables(0) ComboBox1.DisplayMember = "XYZ_DSCR" ComboBox1.ValueMember = "XYZ_ID" I have checked the same c ...Show All
