jchau's Q&A profile
Windows Forms Overriding an 'invisible' property
UserControl has a property called Text which is hidden from the user at design time. How do I override Text such that the user can 'see' it If I may ask a related question... How do you control the initial value of the Text property once it is made visible By default, it is set to the name of the control. I would like it to be initially set to nothing, such as what happens with the TextBox. I appreciate your help. ...Show All
Visual Studio Team System Failed to merge the code coverage result of dll
Hi all, I run the same dll on two computers. When I try to merge the code coverage results of the two run, it always fails. All the results turn to be zero. Is there any way to solve this Thx Tracy Hi Chirstine, When I did as you said, the result can be merged. Hmm, just a suggestion. When users try to merge two code coverage results from two xml coverage file, some failed msg should be popped out. The tool should tell user that's not enough for the operation. Thx a lot! :) Yours Tracy ...Show All
Visual Studio 2008 (Pre-release) sample source to return stream from service to client
I've got a service returning IEnumeration<Customers>, and sometimes this set can get larger than the buffer size of 64k. Now, instead of raising the buffer size I'd like to return the data as a stream, but am somehow blind how to achieve this using serialization. My service right now is something like this: IEnumerable < Customers > GetSomeCustomers() { return SomeCustomers(); } My client does call this using a proxy: IEnumerable < Customers > somecust = myProxy.GetSomeCustomers(); Now my Service would need to serialize the data referring to the DataContract of Customers, and return a stream, but I don't know how to serialize and deserialize the return value of my s ...Show All
Visual Studio Team System Access tests stored in shared folder
Hi, Is there any way to access the webtests stored in a shared folder and run the test locally I tried by mapping the shared folder to my machine, but not able to open the project. Hi David, Thanks a lot, your suggestion worked. Actually I had missed the wild card * at the end, while typing the path Now I could run the scripts stored in remote machine Thanks Rock ST ...Show All
Commerce Server Error: failure in catalog resolve, hr: -2147483326
Hi people, I'm trying to configure CS 2007 Developer edition but when I try to access my http://localhost/OrdersWebService/OrdersWebService.asmx I'm constantly getting the same error Error: failure in catalog resolve, hr: -2147483326 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: Error: failure in catalog resolve, hr: -2147483326 Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception ...Show All
.NET Development Unsubscribing to events from COM Client doesn't work
I've created a .Net component that has a COM interface. This interface contains events. I've also got a VB6 client that connects to this component. It recieves the events using the VB6 WithEvents "mechanism". Setting the WithEvents variable in VB6 to nothing doesn't make the events stop fireing. Looking deeper into the problem I see that the IConnectionPoint->UnAdvise call that the VB6 client makes when setting the WithEvents variable to nothing fails with error code 0x80040200. The problem gets worse if I set the WithEvents variable to a different object, since the first object still fires events, even if I have no reference to it anymore. I get the same result using VB.Net as C# to create the component. Is thi ...Show All
Visual Studio 2008 (Pre-release) Returning Files as a Stream
I have a WCF contract that returns a stream. I am normally returning an XML file. This works fine, but whenever I return a 'null' or binary file, the WCF comm seems to get hosed. This is a self-hosted console app. Here is my app.config. <endpoint address="net.tcp://localhost:8002/ProLab/" binding="netTcpBinding" bindingConfiguration="" contract="NCRx.ProLab.Common.IProLabServer" /> The interface is set up as a duplex interface as follows. [ServiceContract(Namespace = " http://NCRx/ProLab/Server ", SessionMode = SessionMode.Required, CallbackContract = typeof(IProLabWorkstation))] interface IProLabServer { /// <summary> /// Notifies the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. avoid tearing
Just running throught the basic "How To"s in the help pages and adding sprites. I'm getting tearing as it's rendering. Anyone find how to get a swap chain working so I don't get as much tearing Ok finally figured out what was the problem. spent a whille killing processes messing with windows settings, etc. Turns out it was a small windows floating toolbar that is used for changing Language Input settings that was stealing away updates so that XNA wasn't calling Draw very often. Getting great performance now. THanks for the help everyone! ...Show All
Visual C# Reading a string from one Pipe delimiter to another
Hi, would someone please help me out, i'm quite new to C# In C# if I have a string that is pipe delimited, how can I create a while loop to read data from one | to another | and store that value in a variable. E.g. DD|2.7|0076|John Doe|Incredible Man|8412076542354836|A123|ABC| string dispensary = DD; float version = 2.7; string fileLength = 0076; string clientName = “Carel Greaves”; Etc. Any Help would be greatly appreciated. Kind Regards Thanks a lot, i'm going to try it out, but do you think you might be able to give me an example from my example to make it a bit more idiot proof for me. Please. ...Show All
Visual Basic Opening a form when another form is loaded
Hello, On the form1_load event, I have a line of code - "form2.Show". This works fine, except it shows behind the original form. Is there a way to make sure it's at the front Strangely, if I apply the code to a button, it does appear in front. But if it's on load, it goes behind. Thanks :) Hello, Thank you all for the help. I did show the form modally, but also didn't realise this would stop form2's code running whilst open. I'm now using Dave299's method - again, thanks Dave and everybody who helped - great community :) ...Show All
Windows Forms How do I set a ComboBox to ReadOnly?
Hi there, I am using a form for a Client Add/Amend/Enquiry, and require a ComboBox to set certain Client details. The available items for selection are defined at design time in the Items collection property. Add/Amend works just fine. When I use the Form for the Enquiry, I set the Text property of the ComboBox to the value retrieved from the database. I want to make the ComboBox ReadOnly, but no ReadOnly property is available for this control. Setting the Enabled property to false leaves it looking very dull grey and insonsistent with the rest of the Form. The only option I can think of is to replace the ComboBox control with a TextBox control for the enquiry, which isn't great. How else can I get around this Thanks, JackSt ...Show All
.NET Development How to get bluetooth support in .net windows applications
I m Developoig a vb.net Desktop applicaiton. I want to get blue tooth support in this application. I have Certain Image,audio files, Video Files which should be transfred with this blue tooth component. So how can i create this bluetooth component. Hi, Please try the following forum for this question: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=40&SiteID=1 Thanks. ...Show All
Visual Studio Express Editions building problems control declaration error
vs web dev express: Ufff i have found a source of error: here is solution: i had 2 aspx files in same dir. I have made backup of Deafault.aspx just by doing copy and when later trying to build i was getting error that file table ctrl is not declared!! but it is!! when i was buidling page as single buid passed. And then later when i exluded page everthing passed well... i thing this is not a bug but it should be corrected in VS to be able to resolve this situation. Another thing: when i got master in master located in not-root dir intelisense doens't work. i guess i am not first one cause i read about this. Hi Vjeran, This is an ASP.Net post and would be better answered in the ASP.Net forums at http://forums.asp.ne ...Show All
SQL Server Optimizing tables
Hi, We have 3 tables in sql server for simillar information about 3 different countries. some times I select from all countries so I need to use all tables and some times just one country so I select from one table. I want to know that is it good to combine these three tables into one and add one field to define the country name Which way is better, my own way or this new one Please let me know the advantages and disadvantages of each of these ways. Thanks Hi, I see no use of splitting into 3 tables, however you can just put everything inot one table and add one table that will categorize records, or you can just keep your first table that holds all the data, and create new table that will hold the countries and this table w ...Show All
Internet Explorer Development Issue in PRE tag with word wrap
Hi, For me, word wrapping in PRE tag works fine, but the <TD> which holds the PRE tag goes off the specified width of the <TD> or <PRE>. This affects the layout of the screen. Can anyone suggest me a solution My code is as follows: <TABLE><TR><TD width="300"> <PRE style="width:300px;word-wrap:break:word"> Lengthy text goes here !!! Lengthy text goes here !!!Lengthy text goes here !!!Lengthy text goes here !!! Lengthy text goes here !!! Lengthy text goes here !!!Lengthy text goes here !!!Lengthy text goes here !!!Lengthy text goes here !!!Lengthy text goes here !!!Lengthy text goes here !!! </PRE></TD></TR></TABLE> Regards De ...Show All
