Ravi Kanth Koppala's Q&A profile
.NET Development Multiple WebBrowser controls running on different threads
I'm developing an application that opens a page on the main thread/WebBrowser control, gets some links and processes these links in a given number of WebBrowser/threads at the same time. This number of simultaneous jobs is given by the user. How can I do this I need a basic tutorial about threading but complete. And if it's possible, an example. Does anybody here can help me For an excellent and complete guide on Multi Threading see: http://www.albahari.com/threading/ Cheers ;-) ...Show All
Software Development for Windows Vista faultHandlerActivity.Fault is always null
Hi I have a FaultHandlerActivity in my own SequenceActivity that handles the System.Exception and calls a CodeActivity when any exception happens. This works but when I want to look at the faultHandlerActivity.Fault it is always null. I am using Visual Studio 2005 Extensions for Windows Workflow Foundation RC4(EN). Thanks Gert in the FaultHandler, this should work : CodeActivity codeActivity = sender as CodeActivity ; FaultHandlerActivity faultHandler = codeActivity.Parent as FaultHandlerActivity ; Exception fault = faultHandler.Fault; Console .WriteLine(fault.ToString()); ...Show All
Visual Studio 2008 (Pre-release) Reading Bitmap Pixel Colors very fast; Mixing WinForms and WPF
Hello, we're creating an application for controlling robots; as a base of calculation for the movement of the variuos axis of a robot it is necessary to read the pixel colors from parts of certain bitmaps pixel by pixel . Those bitmaps are 24bit or 32bit bmps. Since I havn't done anything with WPF yet - is such an actually simple operation possible We can't use GDI+ for that, since it's too slow, and we don't want to use GDI, since it's not managed. One other question: Is it possible to mix "old" WinForms 2.0 Aps with WPF So for example have an old form where only a certain area is rendered with WPF functionality Thanks, Klaus Hi Klaus, There are Imaging Interop APIs that le ...Show All
Visual C# help with arrays
I have an application where I have two arrays such as: string [] array1 = { "one" , "two" , "three" , "four" }; string [] array2 = { "two" , "four" , "six" }; I am hoping that C# offers an easy way to compare the two arrays and return an array of those elements that are different (in this case, I would have a three-element array containing the strings "one", "three" and "six"). In PHP, it's as simple as (I may have the function name wrong, but you get the idea) differentArray = array_diff(array1, array2); I don't want to code all of the logic myself and it seems like a basic and useful enough function to be part ...Show All
SQL Server Accessing an SSRS report from the web, being prompted for Guest signon screen
I have a sql server 2005 application that uses asp and some canned reports that I built using SSRS. All reports run from the server but not when to try accessing from another computer on the network. I get a prompt from windows that requests me to enter a password for the Gurest account. The Guest account is not selectable. Does anyone know how to supress the signon page I am using sql 2005 workgroup edition. I would like the users to go directly to the ssrs report without any logon screen. Thanks Rich James, I am running windows XP, and Windows Authentication on virtual Directories. The web application works fine reading and writing to sql ser ...Show All
Game Technologies: DirectX, XNA, XACT, etc. PlayerIndex?
I need some help and explaining of PlayerIndex and how to use it. this is an example of what I want to do: "for (int i = 0; i < Players.Length; i++) { if (XInputHelper.GamePads[i\].APressed) { GamePad.SetVibration(i, 1.0f, 1.0f); } }" Players is an Array of all the player objects. I want to cycle all my players and start to rumble that specific controller, but I don't know how to easily transform the int i = 0 too PlayerIndex.One (i\ should be only i in brackets but this forum displays a light bulb if i write that) Cheers Alfons Hi, How about : foreach( PlayerIndex thePlayer in Players ) { if ( XInputHelper.GamePads[ thePlayer ].APressed ) { GamePad.SetVibra ...Show All
Visual Studio 2008 (Pre-release) Migrating old WebServices to WCF
Hi everybody I'm a beginner with WCF and my job is evaluate a migration of a (big) set of Web Services written in Framework.NET 1.1 to make it available on WCF. In the documentation that I found on the net, the migration is a matter of definition of the attributes for every WebMethod , is this correct or I missing something Thanks in advance http://msdn2.microsoft.com/en-us/library/ms730214.aspx ...Show All
SQL Server Cache size lookup transformation
Hi, I have to perform a lookup in a table based on a query like: "... where = [RefTable].fieldID and between [RefTable].AnotherFieldValue and [RefTable].AThirdFieldValue" So, SSIS has put the CacheType to none. As I really need to speed up the job I want to set the CacheType to partial (full isn't an option due to the custom query I use here). But here it comes: when using partial CacheType, one has to set the cache size manually - and I really don't know what value I should assign to it - is there a guideline on this topic I work on a Win2003 server platform with sql server 2005 - 2 processors - 2Gb Ram - enough disc space Thanks in advance, Tom Tom De Cort wrote: Hi, I have to perform a loo ...Show All
.NET Development how to change ms access database password in c#?
hi, how to change the ms access database password in c# i search through the web and found one in VBA but not in C#. http://support.microsoft.com/kb/170961 Please give some hints. Thank you. regrads, chunket Thank a lot. I'm sorry, I forgot about "specific" qoute "`" in Access. ALTER DATABASE PASSWORD `currentpassword` `` - set password ALTER DATABASE PASSWORD `newpassword` `currentpassword` - change password ALTER DATABASE PASSWORD `` `newpassword` - clear password All work fine. Which limit for passord (length, symbols) (when I test I can create password with 20 symbl.) ...Show All
Visual Studio Express Editions Help regarding the learning resources
Hi, I followed the learning resources on http://msdn.microsoft.com/vstudio/express/visualcsharp/learning/default.aspx Lesson 9: Databinding Data to User Interface Controls. Here the problem I encountered: After adding the database and the data source. I selected datagridview than drag and drop the customer data source to my form. Started the program, I realise from the datagridview I could not save changes to my database. Why is this so Is the save button not programmed correctly From the video, when drag and drop the customer data source these lines of code are created automatically. These codes reside in the "Save Data" button provided by the bindingnavigator. Still unable to commit changes to the dat ...Show All
Windows Forms Communicating with Printer drivers?
I need to write a C# program to print data through printer driver. I am not sure if this is possible but these are the things I need to do: 1) List all the printer drivers installed on the PC 2) Send a print job to a particular printer driver for printing 3) Check the print status through the printer driver 4) Send a "Cancel print job" request through the printer driver Really not sure what API to use. Any URL or sample source code will be greatly appreciated. Please kindly help and enlighten me. Thank you very much .NET doesn't let you enumerate the printers. Something about not getting it done in time. Check this Google query for alternatives. ...Show All
Windows Live Developer Forums Problem with VE and Embedded Media Player on same page
Hi I have a big problem using virtual earth v3 in IE6. when I put it with embedded video player on the same html page. my page hangs whenever I refresh the page. Can someone please help Thanks. Sure, dont put the <object> tag of the media player in the initial html code, instead create the tag in your OnLoad Handler of the page body, thats th way i made my page load properly when embedding the mappoint CD ActiveX Control into a html page. JeffK (professional dumbass) ...Show All
Visual FoxPro arabic
hi i want write arabic in the textbox (right to left) what must ido Fox Me Up wrote: i would like to write in russian but when ever i try to put something in a text box i see " " Fox Me Up: Please do not hijack someone elses thread with a different question. His problem is Arabic adnd Right-to-Left issues. If you want to ask about Russian fonts (like " ER Bukinist 1251") and how to work with Russian in VFP you should start a new thread. Make sure you have Windows settings and fonts set to Russian. In VFP, add CODEPAGE=1251 to config.fpw ...Show All
Visual Studio Tools for Office How to merge 2 Word docs, and also 2 Powerpoint presentations?
Hi, Not sure how to go about doing this one: I've got 2 word documents that I want to merge into 1 document programmatically, using .NET - any thoughts I also need to do the same for 2 Powerpoint presentations Thanks Not sure what office version you're using, but a VSTO Word Application Add-in would work well in your case: One way: At system start-up, you could do something like Open Document 1 Open Document 2 Create new document (this is the document into which both will be "merged") Select Document 1 and copy Select new document and paste Select Document 2 and copy Select new document and paste Save New Merged Document All of this can be accomplished via VSTO ... ...Show All
Visual Studio 2008 (Pre-release) Reflection Vs. Schema Metadata
Hey there, I'm currently writing a small utility for the Entity Framework, and I was just curious... what is more performant, accessing properties via reflection (of the entity) or using the metadata found in the ObjectContext.Metadata I am using AugustCTP. Any answers/foresight you can give me towards the Febuary CTP would be much appreciated as well! :) Thanks! Mike Well, there's no guarantees about performance unless you test it yourself, but it's my suspicion that if you just need to get the data once then using our metadata system might not be that much faster than reflection (if we haven't loaded the data yet, you'll have to make sure we load it which will be at least as slow as reflection, if we have already loaded ...Show All
