Naga Satish Rupenaguntla's Q&A profile
Visual Studio 2008 (Pre-release) How to minimized the application to system tray
In WinFX, how do we minimized the application to the system tray You would have to use the NotifyIcon class to show the icon in the tray. In addition you might want to use ShowInTaskbar=false ...Show All
Windows Forms Issue in retrieving image from access database
I have a table Employees with a colomn that contains images. I'm trying to retrieve and image from a row in order to insert it in a form. Here is my code: Public Function getEmployeePic(ByVal empid As Integer) As Image Dim empImage As Image = Nothing Dim strCn As String = "Provider=Microsoft.Jet.OLEDB.4.0;" + _ "Data Source=" + data.getDatabaseLoc() + ";Persist Security Info=False" Try ...Show All
Visual C# How to take the difference of two time
Hi all, I would like to take the difference of two time and if it is more than 30 minutes, I will take some action. I had manage to convert the time to string as follow dt1="2006/03/20 23:55" dt2="2006/04/10 10:55" May I know how to take the difference (dt2-dt1) and check if the difference is more than 30 minutes Please help If dt1 and dt2 are date times, op ...Show All
Visual Studio Tools for Office how to display a graph on the useform thru excel vba ?
Hi can any one help me in displaying the graph on the userform thru excel VBA do we have any component to do this Thanks Kiran For Excel VBA related issues, please post your question on the Excel Programming newsgroup: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.excel.programming&lang=en&cr=US Thanks! Mike Hernandez Community Program Manager VSTO Team ...Show All
Visual Studio 2008 (Pre-release) How do you read a lambda expression?
Hi All, I am trying to figure out how to read out loud a lambda expression. For example if I have the following i => (i %2) == 0 or c => c.Age < 50 etc. How would I read them to my children Cheers, Clint personally, i love the lambda expression additions. in school, i used SML most of the time, and it was an amazing language. i know lamba expressions are probably a little foreign for a lot of progra ...Show All
Smart Device Development Thread Syncronization
Anyone know what means are provided for thread syncronization in .NET CF Thanks, Jeff. They are almost the same as in the "big" .NET. Monitor or lock statement, WaitHandle, etc... ...Show All
Visual Basic using code written in C#
Hi. I'm trying to use a code library written in C# in visual basic, but i cant figure out how to do it. Here's the library: i want to be able to use the functions in it in VB. I've tried compile it into a class library and then add it as a reference in visual basic, but it still doesn't work. mattias and it's also kind of wierd that only some functions show up in the intellisense. I can't get any e ...Show All
Smart Device Development Copy files...
Hello, Has anybody written some C# code to copy files to a WM5 image running under the new Device Emulator 2.0 It doesn't seem to work using old CEMGRC COM interop wrappers... Thanks in advance from the rainy Netherlands, Peter Vrenken. I am not sure if i understood the question correctly. Can you please let me know following. 1. Does it used to work with Device Emulator 1.0 2. Can you please post a sample code -Thanks, Mohit ...Show All
SQL Server connecting using "datasource=localhost"
hi all, i'm running VS2003.NET with SQL2000 on XP. when i try to use "datasource=localhost" in my connection string- i get "SQL server does not exist or access denide". (local) works and "=myServer" (server name) works. my hosts file is as it should be. i'm trying to connect to the server on my machine. i use to have no problem with it in the past. i think it all went to **** when i changed my machine's nam ...Show All
Visual Studio Team System TFS RC Install fails Health Check because of existing databases
How exactly is one supposed to upgrade when the RC install health check fails with the message: TFS SQL Server databases exist and their schema does not match the version expected by Setup. Our instance was previously a B3 that was upgraded to B3 Refresh. You need to upgrade the databases. Check out Rob Caron's blog for a high level discussion of this. http://blogs.msdn.com/robcaron/archive/2006/02/06/ ...Show All
Smart Device Development TextChanged event not happening?
It seems a very basic thing to be wrong, but it seems that the TextChanged event is not happening when the text of the textbox is changed programatically (but it does when text is typed in). The relevant section of MSDN says... Remarks This event is raised if the Text property is changed by either a programmatic modification or user interaction. But in this test app, it only happens when the user directly enters text, not when progra ...Show All
Windows Live Developer Forums Launch Activity from MSN Bot custom app
Hi, I wrote an MSNbot using the DotMSN library. I'm trying to figure out how to send an "invitation" to my users to launch a specific activity (similar to Encarta). Does anyone have code samples (in C#) to enable this Thanks in advance, Francois. Please refer to How to get Messenger Technical Support http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=368260&SiteID=1 for that lib you should see ...Show All
Visual Studio Team System Data Warehouse not updating properly
Last Wed. I created a new project to give a mini-demo to a co-worker. I created a few work items in the course of this demo. As of 2 hours ago, I created another project to verify that the database wasn't updating. As of right now, neither project shows up in the TFSWarehouse Team Project table. None of the work items created in either project are present in the TFSWarehouse Current Work Item table ...Show All
.NET Development Reflection: Hooking into instance creation.
Is there any way, at runtime, I can set up an event handler, callback, hook (or something along those lines), to get notified whenever a new instance of (some type) gets created The classes being hooked would be writen by me (not framework / 3rd party), but I'm looking for a way to automate this rather than putting a call in every constructor, similar to how AppDomain.CurrentDomain.AssemblyLoad fires for each new assembly that gets loaded into ...Show All
Visual Basic Combo Box Problem.... i need a "light"....
I have 1 combo box whitch data source is a data base... but some item's of combo are duplicated... but i want only 1 item of eatch type like: (Monitor / Printer / Scanner / Printer), i would like remove second printer... i need do that on combo properties or on data base connection (combo <---> DB) sorry my english... The short answer is to use the DISTINCT keyword in the query which accesses your database table. For exam ...Show All
