Deepthi Rao's Q&A profile
Visual Studio 2008 (Pre-release) help for beginner plz ....
Hi all ... Am new to windows workflow , am trying to do the example on the following link : http://msdn2.microsoft.com/en-us/library/aa480214.aspx but the problem that the workflow always starts before the windows form , i need to make the windows form starts 1st and after i press the button the workflow start ... am trying to do it without cutting and pasting the code , i drag and drop the needed items from the tool box . i hope you understand the problem. best regards You've wandered into the wrong forum. This is WPF/E. Try Windows Workflow: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=122&SiteID=1 ...Show All
.NET Development textBox1.Text upto textBox[n].Text
Hi, I’ve got a little problem with my textboxes, I want to use several textboxes in my form1, and I want to use the same operation on each of the textboxes (textBox1 ; textBox2 ; textBox3 an so on). How can I do this with "for" or " Do-While" int a; textBox[a++]; or textBox'a'; Thanks, Kralle. Hi, the following code will run through all controls, put directly on the form, and process all controls that are textboxes: foreach ( Control control in this .Controls) { if (control is TextBox ) { TextBox textBox = ( TextBox )control; // Process textBox here ...Show All
Visual Studio Updating file status in solution explorer through SCC APIs
Hi All, We have implemented MS-SCC API 1.3 for our SCM tool. Our SCM tool also supports commands to perform check-in, checkout operations which also adds following scenario to be handled. 1. Open a project in VS05. Checkout a file and modify it. 2. Checkin that file by using command. 3. Status in VS05 won't get updated unless "Source Control->Refresh Status" is used. For this, we are executing a thread in background which checks latest status of files from SCM. But unable to send this updated information to back to IDE. When user selects "Source Control->Refresh Status" command, SccQueryInfo() function get called for selected files. I got the following link which says user has to manually refresh the status. htt ...Show All
Audio and Video Development syntax error or not supported yet?
Hi gurus, Now I meet with a problem when I'm using MS HD DVD Simulator to test a disc. An XPath expression, /descendant::body/child::div , which I think all right, doesn't pass the MS Simulator though. And similar expression is found in XPath 1.0, W3C /descendant::olist/child::item selects all the item elements that have an olist parent and that are in the same document as the context node So, everybody please give your suggestions. Is it a syntax error or just not currently supported by MS HD Player yet Thanks! Unfortunately, HD DVD only supports a subset of XPath in order to make it easier to implement on low-cost hardware. Chapter 7 of the spec (not on me right now...) outlin ...Show All
Windows Forms asp.net + vb.net; error index out of range
hi i’m developing an onlinesupport with asp.net and vb.net. i’ve got a database (mssql 2003 express) wich is splitted in support-themes and support-documents. by loading the page, a gridview displays the support-themes as a link. if you select a theme, it will be created a sql-statement which selects and displays the depending support-socuments in another gridview as link, too. if you select a support-document it should be displayed as a html-site, but it doesd’t work. instead i get following error-message: Der Index lag auserhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein. Parametername: index Index out of range. It doesn’t have to be negative and not smaller than the listed. for displaying the ...Show All
Visual C# how does C# uses struct type which is define in c or c++ project.
we have some c/c++ project, but right now I want to use vc# to call functions which are defined in c/c++ projects. also I need to pass arguments which are also defined in c/c++ projects, like .h files. How can I deal with it in vc# Thanks. There's a couple of ways of doing this. The first is for the C/C++ project to be an unmanaged binary (DLL usually) and to Pinvoke that DLL from your C# code. This would require that you manually marshal all data to/from the DLL which is complex and can be very time-consuming. The other option, if your C/C++ code can be placed in a managed binary is to create a C++/CLI wrapper for your C/C++ code and use C++ Interop (Inplicit PInvoke) to automatically perform the PInvoke for you ...Show All
Visual Studio 2008 (Pre-release) PeerResolver and net.P2p format
I've looked at numerous docs and google to try to figure this out, but to no avail. Can someone elighten me as to the format of the net.P2P scheme and how this works with the net.P2P WCF PeerResolver implementation. I have seem examples with the scheme set as : net.P2P://mymesh/ net.P2P://mymesh/myapp/ net.P2P://mymesh/someid/ net.P2P://mymesh/myapp/someid However, the meshid value passed to the Register method of the PeerResolver class is simply "mymesh" and it seems the rest is ignored. I would have thought that you could use the format: net.P2P://mymesh/someid/ to register a new instance called "someid" within the mesh "mymesh", but i don't think this is how it works. Any info much a ...Show All
Architecture Stored procedure vs standard query
hi, I am in process of evaluating that for simple CRUD operations(select,update,delete,insert), should we use stored procedures or should we fire queries directly from DAL for performance enhancement leaving aside the fact the stored procedure pproach will mix the data access and business logic . If somebody could provide any microsoft URL link giving clearcut recommendation on the same,it would be of great help to me. Regards In my opinion you should always try to use Stored Procedures as Part of the Logic Layer. I have always seen Stored Procedures as a Logic Service, in the same manner as a Web service. Separation of Logic through Stored Procedures would then be the same as Separating Logic in ...Show All
Visual C++ Creating Registry Entries??
Hi all, Does anyone know how to create a registry entry. Nothing to complex just a normal registry entry. So if anyone knows of a site or have a small piece of code ... Thanx in advance Programm3r Use RegSetValueEx http://msdn.microsoft.com/library/default.asp url=/library/en-us/sysinfo/base/regsetvalueex.asp This thread http://www.codeguru.com/forum/showthread.php t=379709 contains a code example Regards Sahir ...Show All
Microsoft ISV Community Center Forums Excel function PRICE
Hi Everyone, I'm having a hard time solving for the Excel function PRICE and COUPDAYBS using VBA or ASP. Do anyone know how to convert its formula to ASP or VB Because i try to reference excel in my code but there is no PRICE function available. Hope you could help me. Thanks. Hello, MATURITY DATE 4/7/2010 VALUE DATE 5/5/2005 TERM 1,798 CPN RATE 11.500% FREQ 2 BASIS 4 RATE TO CLIENT 10.900% TAXRATE 20.00% FACE VALUE 1,350,000.00 NET PRICE =PRICE(VALUE_DATE,MATURITY_DATE,CPN_RATE*(1-TAXRATE),RATE_TO_CLIENT*(1-TAXRATE),100,FREQ,BASIS) = 101.87543481 This is how my excel look like when im computing for the PRICE. Thank you v ...Show All
Visual C# Get custom type by sting-parameter
Hello! I've made an dll-assembly with different classes. In an console application, I made a reference to this assembly. I want the user to determine one type via console: He writes a string. Then the console application has to get the type by string and than instantiate an object of this type. Now my Question: How do I get the custom type by string thanks, kind regards, matti Poking around a bit further, I discovered the whole thing can be simplified: string assemblyname = "......"; string typename = "......"; object myInstance = Activator.CreateInstance(assemblyname, typename ).Unwrap() ...Show All
.NET Development Registry
Hi there, I need to manupilate registry entries. 1) I want to add to the registry so whenever Windows starts my applications starts as well. 2) How can I read and manupilate registry information including the programs that starts at the beginnig of Windows launch. Regards the registry functions are in the Microsoft.Win32 namespace. So you need to import this namespace at the top of your class file. you may wish to read this for some understanding as well as perhaps learning from the examples: http://msdn2.microsoft.com/en-us/library/microsoft.win32.registry.aspx in regards to the key where the startup items etc.. are stored, its usually in this regkey: HKCU\Software\Microsoft\Windows\CurrentVe ...Show All
Visual C++ output in root
When I compile my project, it invariably places the EXE EXP ILK LIB PDB files in c:\ I would be happier if it were to place these in the directory where the project is located Is there an option I have set incorrectly somewhere / could set better for output directory Thanks. Hi Tadeusz, Do you have in the Project properties / General tab / Output Directory the value "$(SolutionDir)$(ConfigurationName)" This is required for the output to be placed in a subdirectory of the solution directory. If you already have this set, another case may be that the output files are correctly saved there but another post-build tool is copying/moving them to C:\. Do you have any post-build event config ...Show All
SQL Server SQL problem !
I dont know weather this is the right place to post this issue. If not please suggest me , I did not find anything right then this one. Ok now the problem. I've got a table TABLE_A --------- name -- vharchar(50) age -- integer DOB -- date I need to select records from this table depending on a selection criterion. thats easy , but i want to know that how many columns matched in the searching because i need to store the rating for how many columns matched for a particular search. Ex. if name , age and DOB matched rating is A3 if name , age matches rating is A2 and so on. This table is a huge one having 20 Million records, so I want a solution that is optimized too. hi, put a count( ...Show All
Windows Forms Two-way Databinding does not work with empty Datamember
I have a List of Strings eg. List < string > myList = new List < string >(); myList.Add( "a" ); myList.Add( "b" ); foreach ( string value in myList) { TextBox tb = new TextBox (); tb.DataBindings.Add( "Text" , value, "" ); this .Controls.Add(tb); } This works fine to display the values of the list in the textboxes. But it does not work for writing back the values to the list. It seems there is a problem if the DataMember property of the DataBinding is empty. If I just use a string object to bind to the text property of a TextBox, it does not work. Only if I have a object where I can set the DataSource and the DataMember for Databinding it also work ...Show All
