K.V.Bharath's Q&A profile
.NET Development Activator.CreateInstance
I'm not sure if this is the right group for this post... but here it is. I have a set of assemblies that are built against a common interface. At run-time I use Activator.CreateInstance to load up whatever assembly I want, as long as it conforms to that interface. The loading of these interfaces is done through a web service. So the chain goes, user calls web-service, web-service decides which assembly to return, use Activator.CreateInstance to load the assembly and execute the predefined interface methods (Start(), Implement(), Finish() -- example). The problem I am encountering is with the MSCRM 3.0 Web Service which resides in one of these assemblies that gets dynamically loaded. When I run through the above call chain, the MSC ...Show All
Windows Forms Binding a textbox to a database field using TableAdapters
Hi there, I'm trying to bind a ASP TextBox to a certain field of my database using a TableAdapter. It's quite easy to bind the result to a DadaGrid: ProductsTableAdapter productsAdapter = new ProductsTableAdapter(); GridView1.DataSource = productsAdapter.GetProductsByCategoryID(1); GridView1.DataBind(); But how can I bind a certain Column to a TextBox I thought something like this would be possible: //Get the Adapter ProductsTableAdapter productsAdapter = new ProductsTableAdapter(); //Get the result of the whole query Products.ProductsDataTable data = productsAdapter.GetProductsByCategoryID(1); //Get one Cell out of the result myTextBox.Text = data[0].myProduct.Value; Can anybody asist me on this Thanks, Finch. ...Show All
Visual Studio 2008 (Pre-release) DirectionalLight and different materials
Hi! I am trying to make an animated 3D model of the solar system. I am having problems with lights and materials. Is it possible to make a object that emits the light (directional) For now I am using only sun and earth. I am using DirectionalLight to make earth visible but I don't want the sun to be enlightened by that light. If I use only EmissiveMaterial for the sun it looks OK, but when the earth should go behind the sun it appears in front of it. Is this a bug It looks like a bug. If I change only the material of the sun the earth goes behind it as it should. But DiffuseMaterial is enlightened by directional light and it does not look like the sun any more. Does anybody have an idea how could I achieve the proper li ...Show All
Visual C# Fetching Microprocessor specific information
Greetings I need to fetch microprocessor specific information (brand, temperature, usage etc.) programmatically. Is it possible while I am using .NET. Any ideas on how to do this. Soon helpful replies will be appreciated as I have to start this ASAP. Thanks. Ali probably this link helps you http://groups.google.de/groups q=cpu+temperature+dotnet ...Show All
Visual C# How to read Active directory userlist using c#
hi all, i have an active directory structured as follows ************************************* Active Directory Users and Computers[company1.company.com] saved queries - company.com aa built in Computers Domain C ...Show All
Windows Forms WebBrowser doesn't have a "find" method?
Hey, I'm a novice here and I've been looking though the MSDN documentation on the WebBrowser control and noticed there was no method for finding text in a document. This is a pretty serious omission. Is there a way of getting this functionality Anyone know of a method that does this Apple's WebKit has a method called stringByEvaluatingJavaScriptFromString that essentially does this, so I'm hoping MSHTML has an equivalent... ...Show All
Windows Forms How to customize the size of the desktop icon by programming(Vista OS)?
Hello, Everyone! Is anyone here know how to customize the size of the desktop icon I have tried to modify the value in the registry on the location "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics\ Shell Icon Size" , but it doesn't work. Also, I have compared the registry before and after I modified the desktop icon size, but didn't find any key that can identify the change. Is there any API can do this I have tried to find any in MSDN, but found nothing. If anyone knows how to solve the problem, please send a mail to me , my address is : mawentao@neusoft.com . Thank you very much ! This does work, but in a corporate environment, it means every user must do this each time they log ...Show All
Smart Device Development Changing the system colors in C#
This changes the system colors in VC++ PPC: //############################################# // Window elements to change. int aiElements[3] = {COLOR_ACTIVEBORDER, COLOR_ACTIVECAPTION, COLOR_WINDOW}; // Array of RGB values. DWORD aColors[3]; // Define the new colors. aColors[0] = RGB(0x80, 0x00, 0x80); // dark purple aColors[1] = RGB(0x00, 0x80, 0x80); // dark cyan aColors[2] = RGB(0xC0, 0xC0, 0xC0); // light gray // Set the window elements in aiElements to the colors // specified in aColors. SetSysColors(3, aiElements, aColors); //############################################# I've been searching the interne ...Show All
Visual Studio How to write text to a console from a web application on the server
Hi all, Are there any ways to debug a web application with VS2005 on the server by writing text to a console like J2EE web app I read an article about using a listener with either trace or debug objects to write text to a console but I could not make it work. Please help if you know how to do it. Regards, JDang Hi Peter, Thanks for you email. For now, I just want to debug with ASP.NET 2.0 only. I have not tried to use VS2005 to debug the website remotely yet. If you have any information about how to do that, I really want to learn too. I tried to turn the trace flag on a webpage on, but I did not like that technique since the user has no ideas about what is going on. I hav ...Show All
Software Development for Windows Vista Passing output parameters to the host?
Tom, I am using XOML only state workflow from ASP.NET client (WF 3.0). I need to pass output parameter to the host ASP page before WorkflowCompleted event executes. Can you and/or someone please provide a code example of how this could be done Thanks in advance, John Portnov You can't actually get output parameters until the workflow completes. If you want to get intermediate values of workflow properties, you'll need to use tracking. With tracking, you have two options - you can use tracking extracts, which will essentially pull out values of properties when certain events are tracked, or you can use user track points inside your workflow to track custom events with the values of your properties. You'll h ...Show All
.NET Development How To Validate User Credentials on Microsoft Operating Systems
I would like to know if there is a good example in C# explain how To Validate User Credentials on Microsoft Operating Systems. I found this in C : http://support.microsoft.com/ id=180548#top I would like to use Win Forms to authentication and authorization user in Application server. How to do it Tks! Client ----> Connect - Application Server ----> Database server I'm not sure of a direct way to do it. The NetworkCredential class allows you to get or set credentials but to to authenticate them. The AuthorizationManager static class allows for authentication but it is associated with internet resources. Maybe the easiest way would be to attempt to impersonate the use ...Show All
.NET Development How to play MP3 file without WMP?
Hello.How I can make my app to play mp3 files without using Windows Media Player.What I need to learn YOu need to learn how to write an mp3 decoder, and then you need to pay the licencing fees associated with writing code that uses that algorithm. Then you need to learn how to write the results direct to the sound buffer. Sounds too much like hard work to me, especially as the world sure doesn't need another MP3 player. Sounds like fun, tho, if you're into deep maths and have a lot of time on your hands. ...Show All
Visual Studio 2008 (Pre-release) Rubber Banding
Howdy, Ian G did a blog article back in 2004 on rubber band selection in WPF http://www.interact-sw.co.uk/iangblog/2004/02/06/rubberband that showed how to do this by placing a rectangle in the visual tree at an appropriate level. Is this still the way to go Or is there a different preferred method Thanks Paul After months of searching I've concluded that for Windows.Forms (VS2005 [VB]): 1. MSFT "Adorners" provide Control grips in the VS2005 UI for design-time use, not for user interface at run-time. 2. With some difficulty I've written my own VB code to provide re-sizing grips on my controls for run-time use (re-inventing the wheel). 3. For VB rubb ...Show All
SQL Server Index usage statistics report
Has any body else had this problem. In SQL Server Management Studio in the report tab when I choose Index Usage Statistics all I get is just these messages and no info at all. Is this a bug. It does tell me the name of the database. Index Usage Statistics Shows how the users and system use the indexes. Index Operational Statistics shows details of the no. of operations performed on the indexes You might try a DMV query, such as this to get useful index info -- Possible bad Indexes (writes > reads) DECLARE @dbid int SELECT @dbid = db_id() SELECT 'Table Name' = object_name(s.object_id), 'Index Name' =i.name, i.index_id, 'Total Writes' = user_updates, 'Total Reads' = user_seeks + user_ ...Show All
Visual Studio Express Editions imapi
can imapi be used in visual basic ..and if so ,how any (not vbaccelerator.com ..as i don`t fully understand what that guy is talking about!!!!) help woul be greatly appreciated. thanks You can use the xp burn component or this sample which activates the cd burn wizard. ...Show All
