YarakMan's Q&A profile
Windows Forms AutoToolboxPopulate not working
Hi One of the great things I liked when beta testing VS 2005 was the AutoToolboxPopulate feature that would populate a special tab in your solution toolbox whenever you create a new Control or Component. The feature seems to still be there (seen it in the Windows Forms Designer UI options tab) but it is not working properly. Whenever I build my app, the controls built in are not showing up in the toolbox. Is it related to the fact that I create simple classes files instead of custom control files (which at the end are just source code files) Thanks Amadrias I received a response from Microsoft the other day ...Show All
Visual Basic DataRelation constraint
I have a master detail relationship basically an Order to Line Item relationship. I have a business rule that must be enforced which is that an order must have at least on line item. I have looked at constraints and can not seem to figure out how to build a constraint that enforces this rule. This does not seem to be an unusual requirement but I can't find any way to do this. Any suggestions would be most appreciated. Thanks in Advance ...Show All
Smart Device Development Quick replace question
Anyone know how I can Replace an single string with two strings using VS2005/VB.net Example: find: " End Sub" Replace with: " Logit()" " End Sub" find: "end sub" replace with "Logit()\nEnd sub" Have a look at "regular expressions" int the MSDN ...Show All
Visual Studio Express Editions Progress bar
Ok. how do you gte a progress bar to work beacuse i'm clueless. Well, which bit are you stuck with The most common reason that people ask this is because they are trying to show progress on an atomic operation ( that is, they call a method and expect a progress bar to move while that method runs, that won't happen ), or because they don't see anything on the progress bar, because their processor is taken up by the operation ( call Application.DoEvents() within your method to fix this ). If this doesn't answer your question, please provide some more detail and the code you've already written, and I'll be happy to help further. ...Show All
Visual C# Passing arrays from unmanaged DLL code to c#
Hi, I pass my dll the filename (string) to an image and it returns a list of points which are detected faces on that image. What I have done is pass a parameter from c# which is a pointer to an empty array. The dll code then allocates the array for the list of points and returns the size of the array. I then copy the array for use in c#. This does work - but is it the right way to do this (seems like a bit of a hack) If I wanted to pass a list of structs (instead of ints) back from the dll how would I do this see code below Thanks Ashwin ashwinv wrote: No i don't think so....as I am passing a reference ...Show All
Visual Basic reading barcode
i want to know how to read barcode using visual basic code http://www.hytechpro.com Please help me for reading barcode from a barcode scanner. Is there an emulator for this device . And how about the coding environment. ...Show All
Microsoft ISV Community Center Forums Strange Error
I have an Access 2002 SP3 DB and on occasion it seems to corrupt and all forms are no longer accessable any 1 else had this problem i am unsure to what causes it so cant fix it. i open it and it reports a corrupt error offten after a change to some code has been made and saved i always test before before closing so i know it works fine then on next load it corrupts and the MDB file is reduced to only half its original size. any help or advice on this would be much appreciated sorry for the lack of information it seems very random and does not happen a lot so far 3 times in the last 2 month. Thanks I have had no probl ...Show All
Visual Studio 2008 (Pre-release) Casting a parameter to it's parent
Hello I want to implement a routing service which receives data and forwards it to another service without actually knowing the data type. I know I can achieve this using the message header and body in SOAP, but how do I achieve that otherwise I have this scenario: public class A {class data} public class B : A {class data} public void DoSomething(A a) It's easy to cast object of type B as A and send it to the "DoSomething" method inside a process, but how do I do that in WCF I expected the serialized data to the used in the service to create the parent class (class "A") while the excess serialized ...Show All
SQL Server "Jump to URL" Navigation option - Window.Open method is not Working
Hi In my web application which is hosted as website e.g. http://abcd.abcdefg.com , we have integrated the Reports application by using the ReportViewer control and with specified Report Server URL location. It means that we are using the entire REPORT MANAGER screen into our application. In my report I have used the 'Jump to URL' option, where I am using the void(window.open('http://xx.xx.xx.xx/ReportServer/ReportName', '_blank',''))" to navigate to the another report in a new window. When I am clicking the link it is opening the error page(The page cannot be displayed ). Earlier we were using the IP address for our application, the sa ...Show All
Visual Studio Express Editions HelloWorld.exe doesn't run
Hello there, I'm using Visual C++ Express Edition the first time. Thus I was making a HelloWorld.cpp by chosing Win32 Console Application. I'm also using the latest PSDK for x86. My HelloWorld.exe runs within the IDE and also within a command prompt on my computer where Windows XP is running. Unfortunately it doesn't run on another computer I have with Windows XP. What could be wrong Any suggestions are welcome. :) Thank you for your help. CU, common Another thing that might be happening is that you need to install the SxS binaries on the other machine as well or you will have to link statically to the ...Show All
SQL Server Query Question (SQL Noob from MS Access)
Question: How do you concatinate fields in SQL I tried in a SQL query, but did not have any success. I'm coming from MS Access where it is simple to add fields together. *** MS Access SQL *** SELECT Table1.Field1, Table1.Field2, Expr1: Table1.Field1 & " - "& Table1.Field2 FROM Table1 *** END *** You could add fields and put characters between the two different fields like a space and/or some sort of seperation character (/,-,_,:) in an expression. Then you could call that expression from whatever you wanted. Is there a way to do this in SQL Express 2005 Do I do it in a query Can I ad ...Show All
Visual FoxPro can i use SQL sort by special expression?
my user want the data is sort by the field's content. the content is "I","E","C","A" and BLANK if just ascending and desc ,it's easy. but now they want sort by this sequence "I","C","E","A" then blank so how can i do it thank you SELECT * ; , at ( data, "ICEA " ) as _ORDER ; FROM table ; ORDER BY _order ...Show All
Visual Basic Updating Multiple Related Tables in a Database
Hello. I am new to the VB 2005 arena, and apologise if I am asking a stupid question. But I am really stuck on one thing. I have many tables in my database all of which are related to each other in one way or the other. All the relationships are one-to-many. I am using MS Access 2003 and the database format is Access 2000. The problem is that whenever I try to update a parent table it says that a child table contains related records so I cannot change or delete any records. And I am not able to update any tables. I tried this link from the microsoft website for help : http://whidbey.msdn.microsoft.com/library/default.asp url=/libr ...Show All
Visual Studio Tools for Office Launch conditions
Hi everybody, me again ! I have a little problem with the launch conditions. Well everybody here knows that to deploy an shared add-in or a vsto solution, you have to do some config work in the prequisites dialog. There is already a launch condition for .Net Framework 2.0 by default. But I don't know how to add a launch condition for the PIA's and the VSTO Runtime. Well I know how to add a launch condition. But I don't know what to check to know if these 2 components are installed or not. A CLSID in the Reg or just a file in the a temp folder What is it I think that many have or will have this problem too. So please le ...Show All
SQL Server performance issue with trans log on tempdb?
I am running in to a tricky issue, and am hoping someone here has seen something like this before. Here's the basic sequence I am working with. A temp table #A contains some number of rows (in this case, about 45k rows). 1. Create temp table #B and insert a subset of the rows in #A (in this case, the subset happens to be 100% of #A) 2. Perform a few dozen updates to #B, using data from permanent tables. 3. Update the rows in #A with #B, i.e.: UPDATE #A SET xxx = xxx FROM #B JOIN #A ON #A.id = #B.id So, here's the problem: - I run steps 1 and 2, and they complete very quickly. I run step 3, and it completes very quickly (a ...Show All
