yazad_gandhi's Q&A profile
Windows Forms Newbie C# Programming Question - Alarm Clock Program
Bear with me here, I'm very new to this .... Hello I'm brand new here trying to learn C#. I spent many hours trying to write a small Windows application alarm clock program. It sits in the system tray and you can set the alarm to a certain time and it will play a wav file. My question right now is how do I check the current time against what the user has selected for the alarm time I've tried to do it many different ways and it never seems to work. In the timer tick event I have something like this: private void timer_Tick( object sender, EventArgs e) { if (DateTime.Now == alarmTime.Value) { this .Restore(); Player.SoundLocation = @"C:\Windows\Media\ringin.wav" ; Player.PlayLooping(); ...Show All
Visual Studio Team System Can i force developers to add comments at check-in ?
I need developers to add comments at check-in time - probably i will need a custom check-in policy (how do i do that ). I know i can force developers to asociate work items at check-in but in our case it would be much easier if i could force them to add only comments ! 10x ok i solve the problem and i want to share the steps involved: (some of them "copy & paste" from different blogs and artivles). ------------------------------------------------------------------------------------------- 1. build the custom checkin policy dll. (as described in here ) 2. copy it to a path on thr local machine. for example, c:\CheckinPolicies\MyPolicy.dll (this dll shuld be in each developer machi ...Show All
Visual Studio Express Editions VB 2005 applications to work on Vista?
Hello, will apps made with VB 2005 run on Vista And, will the VB 2005 Compiler (or whatever you call it) work on Vista Thanks yes it will :-) http://msdn.microsoft.com/vstudio/express/support/readme/ I believe the .NET 3.0 framework will be used to run your .NET 2.0 application, since Vista will ship with .NET 3.0 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XInput Common controller 32 bit wont install
Hi I need to use XInput for a program I am writing in VB.NET 2005 (to use the xbox 360 controller). However I am not sure what software I need to download. I thought I needed the Microsft Common Controller 32bit but when I tried to install it, it says "Installation did not complete" Please help me! Thanks xna@microsoft.com or (in this case more likley) directx@microsoft.com . However those email addresses are not for general support - they are for suggestions and bug reports so don't expect as response. ...Show All
SQL Server manual way to rename instance of analysis server?
is there a way to manually rename my instance of analysis server 2005 i have a 32bit machine, and the 32bit version of sql server 2005 and analysis server 2005 installed, yet i continually get an error. this happens on my servers too, which are all 32 bit. does anyone know of a manual work around ( via regestry maby) to rename an instance Yes, there is a way to rename the instance. Search for ASInstanceRename.exe program under %Program Files%\Microsoft SQL Server. But, as Darren has suggested, you might want to not do it right away because it might not fix your problem and make things even worse since it is unknown what is causing your current problem. The utility operates on registry, service control mana ...Show All
Visual Studio Tools for Office custom macros could not be initialized..
Hi, I have written a c# Excel vsto 2003 application. In that I populate 2 worksheets from my C# code. Rest of the sheets, while the rest of the sheets I populate using excel formula bar making use of the the 2 sheets populated by the C# code. The application was working fine on both development and production machine when I only had the original 2 sheets, but as soon as I added the extra sheets using Excel formula bar, I started getting following error message at start up on the peoduction machine. It still works fine on the development machine. "The Custome macros in <folder name> can not be initialized correctly. You can still save and edit the document. Please contact the system administrator or the developer...." Does ...Show All
SQL Server Need to copy All oracle tables to SQL Server 2005
I am racking my brain on this one. I am migrating Oracle data to SQL Server and would like an SSIS package that will copy the oracle data from every table to SQL server. I already have the schema set up in SQL and a straight copy of a specified table works fine between the OLEDB source and OLEDB destination. However, when I set up a loop which sets a global variable for the table names, which are identical on both dbs, and try to set the OLEDB Source and Destination OpenRowsetVariable to the global variable, the process fails with these errors with all validation turned off: [OLE DB Source [18]] Warning: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code ...Show All
Smart Device Development Pass Value To EventArgs - Compact Framework
Hello Experts, I am generating a list of panels on a form during runtime, based on the data I fetch from database. Each panel contains a button. I have attached an onclick event handler to those buttons too. Either I need to find out which button is clicked [I dont find any property to find the button Id or name] or When the button is clicked, to pass on some extra data say, some ID, to the EventArgs. And according to the code pasted below, I get an error saying: Method Name Expected . If only EventArgs is used it works, but then I cant get on with the extra data needed to be passed onto the method. Can I make this CEventArgs work I need a solution on how to do this. Please advice. Thanx and Regards, Suman try this.. protected Sys ...Show All
Visual Basic VB2005 Typed DataSet connection string
I have Typed DataSet (ABC.XSD) and the Setting information (strCON) appears in the Property page as "User Id=AAAA;Password=BBBB;Server=CCCCC.WORLD" This places the information in the exe.config file where it is visible. What I'd like to do is remove the strCON in the Settings and place the connection string in a class (i'm guessing a partial class of the ABC.XSD) What do I place in the partial class rSchild, There are many ways to put your ConnectionString of database in your project. Write the connection string in config file is one commonly used method. However, you can also write your strCON in the program, such as a class file like your project: a partial class of the ABC.XSD. The f ...Show All
Visual C# Using [x] button in Windows forms or Web Applications
Hi, Is there a reliable way to catch the Action of a User when they decide to use the [x] button to shut down a Browser. With Windows Forms its is nice and neat via the Dispose method - here it allows me to do any closing actions as required... I have tried catching the [x] action in the past using javascript and then calling a Servlet (Previous Java Application I was on) to do the action - however that was not always reliable as the window sometimes closed before the action happened causing an error/exception. I need to catch the close[x] action of the user and log the logout time, I cannot trust them to always use the Logout button I have provided. I have yet to find a C#/.NET option when searching. Thanks for any help. ...Show All
Visual C++ Walking the call stack as fast as possible
Hello ! I have dedicated some time to developing a memory allocator that replaces the default crt allocator. Things are almost finished, but recently i've added a leak trace that saves the call stack for every memory allocation. (The stack is saved in the process memory, so there's no interprocess communication overhead.) That adds a very important overhead to the allocator and i was wondering if there is any efficient way of getting the call stack. At the moment i'm using StackWalk64 and the profiler i'm using (CodeAnalist) reports that 99+% of the time is spent in dbghelp.dll, ntoskrnl.dll and msvcrxx.dll (strangely, the functions used from here are wcslen and its family even though i don't use them in my code). Even more strange is the ...Show All
Visual Studio http://www.gotreportviewer.com -- down again
http://www.gotreportviewer.com - Cannot find server or DNS Error ...Show All
Visual Studio Team System Modifying Manual test Word template in Team Test edition
When adding a new manual test to a test project, you have to use the Microsoft provided template, and create a new test in Word (or text). This is fine if you like the template........ I would like to do the following: 1) Create a number of test templates, according to types of manual test, and to our own standards. How can I do this Currently you have to create a new test script using the Microsoft template, then copy/paste from our existing word templates, overwriting the supplied one, each time you create a new manual test. 2) For existing manual scripts from legacy projects, I'd like to reuse them by bringing them in to a new Team system project. How can I do this, without the labourious work around in 1). Many thanks ...Show All
Windows Forms Setting form culture
HI When using the Thread.CurrentThread.CurrentCulture, it will change the whole program's culture. I am wondering if it is possible to set a the culture for each form separately My goal is that two separate form can run on two different languages at a time Thanks Normally, all forms run on the same thread so changing the CurrentThread's culture would affect them all. Technically, it is possible to have another thread create a form and call Application.Run(). Beware of the bee'z nest you'll stir up when you try to make these forms interact with each other. Control.InvokeRequired is mandatory in such scenarios... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Directx SDK (december 2006) viewer crashes on startup
Well, the title basically describes what is the problem... I've uninstalled my directx sdk (october), rebooted to make sure things were clean. Then I installed the last SDK (december) and my viewer (directx sdk's viewer for .x and .fx files) simply stopped to work. Whenever I start it, it crashes with the 'send report' error. Any ideas what could've caused this " I have the same problem. I'm running Windows XP SP2 (which is the latest OS that actually supports tools like XNA Game Studio or the XACT editor -- those are not yet supported on Vista!) The DirectX Viewer application crashes on start-up with a deference of a NULL pointer that it gets back from some function call (according to the stack frame). ...Show All
