Mussye TM's Q&A profile
Windows Forms Reflection permission
While just starting to sink in .net environment, I've created a user control inherited from DataGrid which resizes each cell for its content to be readable upon resizing. The solution is (I get advised from another Windows Forms) to rely on Reflection to get a reference to hidden method providing the number of data rows in the grid. In the next lines, ...Show All
Visual Studio Team System Unable to connect to BIS service
Hi When I try to connect to Team Foundation Server I receive an error message: Unable to connect to BIS service Cannot connect to domain <domain name>. Projects for <domain name> not retrieved. Can You help me Thanks Arthooix Thank you Buck for your answer. yes I am running as TFSSETUP account and i still cant find a solution to this problem. I was able to connect to the server before but not to the default website. now i cant connect to the server, i can access the default website but not the team foundation server website which is http://localhost:8080 because when i try to access th ...Show All
Visual C++ CallByName in C++.
Hello ! I need answer to a problem. We all might be familiar with CallByName in Vb.NET and by reflection we can achieve that functionality in C# and Java also [to call a method when its name is given in string] . Do any one know some way of doing that in C++. If some one can possibly help, that would be great. Regards, Haroon If you're using VC++ (managed extensions or CLI), then you can use CallByName by referencing the Microsoft.VisualBasic assembly. David Anton www.tangiblesoftwaresolutions.com Instant C#: VB.NET to C# Converter Instant VB: C# to VB.NET Converter Instant C++: ...Show All
Visual C# printing from word object and crystal object using PrintDocumnet class ????
Hello Well I am coding an application using C# for my company which requires multiple printing of Crystal Report Docs & Word Docs, at a specific Printer of the installed Printers, and at a specific tray. The dafinition of the Printer & Tray is happening from the code (constants or predefined values), and there should not be a user interface (A print preview or printer settings box etc.) Well one whould only be amazed of the fact that this is not as easy as it sounds!!... Here go my attempts: Word The word object I am using from the Microsoft.Office.Core can print usinf the .PrintOut() method, but eventhough it seems that it could ...Show All
Visual Studio Express Editions Back to Beta 1?
Hello, After installing Beta 2 I have found that a Website I had built is now incompatible and rather than re-write the whole thing again I was wondering if it is possible to just un-install Beta 2 and put back Beta 1 on. I need to get this working again very quickly (for next monday actually) so any help would be much appreciated. Kind regards, - Mark PS - Or can you just convert a website to support the new version You should definitley more your stuff forward -- it isn't that hard Check out: ASP.NET 2.0 Directory Naming Changes ASP.NET 2.0 Compilation Model Changes This explains the big change ...Show All
Visual Studio 2008 (Pre-release) Create Message from a Typed Message
Am I missing something Is it not possible to create a Message from a Typed Message w/o subclassing Message Message message = Message.CreateMessage([MessageVersion], MyTypedMessageObject, [XmlFormatter]); Thanks, Dave Nice. Thanks Mike. Is there a reason why you guys have decided not to expose another overload for Message.CreateMessage() that takes a TypedMessage Thanks, Dave ...Show All
SQL Server Connection Pooling
Is there some way to use only a single connection pool for more than 10 diferent databases You can always turn off OLE DB connection pooling and then roll your own. Add the following to the connection string: "OLE DB Services=-4". (This also turns off automatic transaction enlistment.) More details can be found here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconconnectionpoolingforoledbnetdataprovider.asp and here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/oledb/htm/oledbabout_the_ole_db_documentation.asp Other providers use their own syntax fo ...Show All
Visual Studio Team System Major Pain point with Pending Changes Dialog
There is no select all/invert/deselect all option. I have been working on moving artifacts into VSTFS Source Control (Hatteras) all weekend and not having that feature has cost me at least 2 hours of checking or unchecking checkboxes. This is just a variation on the same technique using the keyboard, but in my own usage, i typically use the mouse to select the items i want to toggle the checkbox state on (click + shift-click, and maybe control-click a few others) and then hit the spacebar to toggle the checkbox. Note that if the selected items are mixed in their selected-ness, the spacebar (just like clicking the check ...Show All
.NET Development Can I use ZIP files in C#?
Hi, I've been watching around for a while now but in the end came up with nothing. I want to write an application in C# .NET 2.0 that can handle ZIP files. It must read any files from archives into memory or disk files and create new archives from files on the disk and from memory. I have read and tested the J# article from supposedly 2 years ago but failed with the writing to memory part due to incompatibilities between C# and J#. (That CLR is not so common after all.) Also requiring another runtime for my little tool seems a bit too much. Then I took a brief look at #ziplib but it seems that code isn't even half finished. From th ...Show All
Visual FoxPro Export data to text- How I can bypass the default text delimitter?
Dear all, I am exporting data from Visual FoxPro 6.0 to text file, so I use "Export..." in the menu, then choose file type "delimited text". I want the data export to text with field seperator is a bar character ( | ) and no text field delimiter. But FoxPro puts the double quote character ( " ) as default text field delimiter. How can I bypass this double quote character For example: Currently FoxPro exports my data to text in this format: "This is the 1st field "| "This is the second field"|12345|" This is the third field"| But I need that text output without those ...Show All
SQL Server Fast recovery in SQL Server 2005
I had a question that no one seemed to be able to answer at the launch event in Detroit. When SQL Server lets me on the database after undo (like Oracle), how does it handle the pages that need to be redo In Oracle, if the process is not at the page that needs redo, it gets that page and brings it to the front of the recovery queue. Obviously, if someone needs the page before it is recovered, it cannot be given to the user, but that need puts that block (or page, not sure how granular it is) right at the start. In SQL Server 2005, what happens Are the pages just not available until they are redone And if someone wants data on that page befor ...Show All
Windows Forms import info into dhcp
im trying to find away to import infermation from a text file our webpage generats into the dhcp database. we assign ip addresses using the users mac address and instead of entering each one by hand i want to have it inport the list we generate. can this be done thanks Use it can be done and you will have to look at WMI, this can be done using vbscript or the System.management namespaces. ...Show All
Visual Basic Database Questions
I'm fairly new to creating programs that utilize databases. I have just purchased a book about ADO.NET, but I wondering if anyone could offer some opinions on where to start. In particular, what database program should I begin learning Most of the applications that I want to develop will really only need a local unshared database to systematically store and recall information. I would really like to avoid spending a large amount of money on purchasing a database program, so would MSAccess or MySQL be a good place to start Also, where can I find a good tutorial on the basics of building database applications If anyone else has any point ...Show All
Windows Forms Binding to Properties of a Custom Object
Basically I have an object with several properties: Prop1, Prop2, etc. I want to be able to take this object and bind its properties to various controls via the standard data-binding methodology (not like txt.Text = obj.Prop1) such that I can also use the object for 2-way data-binding. How may I do this Are there any interfaces I need to implement ...Show All
Visual C# How can I generate documentation from XML Documents
Hello, In RC1 I didnt find the option to generate the HTML documentation from the XML comments on the classes. Any helP! Thanks Yes, http://www.doc-o-matic.com/ -- but that's commercial software and it's US$ 500 at a minimum. ...Show All
