Sylvia msdn forum's Q&A profile
Visual C# Determining if a generic Type implements ICollection
Hi, I need to know if MyProperty returns an ICollection<T> for any T. Given a PropertyInfo instance that has a PropertyType of an IList derivative, for example. public IList<MyType> MyProperty { get { return mycollection; } } I am iterating through the properties of the type, and would like to know which properties implement an ICollection of any kind. Basically I need to know if MyProperty returns an ICollection<T> for any T. Is there any way of finding this out My problem is that I cannot seem to find a way of determining if the property returns a collection of 'any kind' I have to know the exact type of the property which I don't really know at runtime. I have tried typeof(IList<object ...Show All
Microsoft ISV Community Center Forums How to declare activeX object in source code instead on the form?
Hi everyone, My questio is about VB6 ..... I want to declare a ActiveX object in the source instead of "drag and drop" a ActiveX object into the form. Let's say, I want to declare a timer dynamatically at run time, so I want a way to decalre a timer in the source. I found code from the other forums seem to do the job but it would not compile for me: Dim withevents my_timer as timer 'Or Private withevents my_timer as timer 'In form_load() set my_timer = new timer () <---- this line would not compile Any idea Thanks Kit (This probably should be moved elsewhere as it doesn't strictly apply to VBA, but the concept is the same.) There are a couple possibilities here: 1.) You haven't set a reference to th ...Show All
Visual Studio Debugging .Net Class Lib called from COM+
I have a legacy ASP app which has a COM backend. The COM component is making a call to a public function in a .NET class library. What I'd like to do if it is possible is to have a breakpoint set in the .NET code in Visual Studio at which execution will stop when the function is called from the COM component. In VB6, you could just run the debugger and it would wait for the component to be created, however you can't do this in .NET. Is this possible The COM component is running in a dedicated server process under Component Services. TIA ...Show All
.NET Development high performance ADO.NET
Hi there, I plan to implement an application requiring very high performance access to a Ms-SQL 2005 database. More precisely, I will have about 10 millions of rows in a table to update. They will be retrived by the application by blocks (say 1000 at a time), and, after computing on application side, will be returned back to the database, through UPDATE commands (in stored proc). For sure, there are lots of topics to address to achieve high performance (size of data in rows, network impact, table and indexes design, application performance, etc.). My question here concerns the ADO.NET layer and the dialog with MS-SQL. I'm looking for documentation, technical articles, advices, etc, to design high performance&nb ...Show All
SQL Server ssis bulk insert task
hi, i have a bulk insert task and i want to transfer to the source connection each time a different text file name. how do i transfer to the connection source field a parameter with a new name each time. the name will b excepted as a parameter to the package. can i do it in a bulk insert task thx, Tomer Brian, As usuall its always a pleasure getting the straight and proffesional answers from u. u r the best. thx, Tomer ...Show All
.NET Development Client/server application
I want to build a windows forms 2.0 client application that accesses and modifies data from an access database on a server. I'm not sure how to get started with this, since I'm only used to building client applications. Does anyone know any good articles on the subject, or maybe a place where I can see some samples I just need a kick in the right direction... Thanks \Soeren Hi, No, you can't do that. Except if you have an sqlserver express installed in your client. I'm connecting to a sqlserver to the server itself and provide a username and password. By this, other people could connect to your database at the same time and not require the client to have a sqlserver express installed... che ...Show All
SQL Server Using Stored Procedures
Hi, I am trying to use this stored procedure for the report. My problem is when I run the procedure I see all the columns but when I click on the [+] next to my dataset, it does not show any fields in it. Please tell me what am I doing wrong and how can I fix this problem Thanks, -Rohit You can try to update you DataSet. You should go to Data tab and click on standart refresh button (you can find it right near dataset dropdown box). If your SP has any parameters you will get window where you should type some value for it. After this procedure you will definitely see you fields. ...Show All
Visual Studio Express Editions forms in forms
what would i write to call a module or a proceduee from another module or procedure if i had a sub yourname in a classs mainprog and yourrname gives me two options via buttons, oe button is addname, what do i write in yourname to send the program to addname. i have tried addname() call addname() and i get constant errors surly there is a simply code to call a sub from a sub they are all set to public so that was not the answer. to show the form you use the addname.show which will show the form, but i want to send the program to various places to do something. could these button responses call a module, and could i have a module to ope ...Show All
.NET Development select data from database (MySQL) but it show as ??????
i have develop webservice app with MySQL (tis-620 encode) but when i select data that contain thai language it display as but for number and english data it display correctly i want to know how i can get correct data (display thailanguage correctly) thank! You need to add support for Globalization. If you ae displaying the data in a text box with regular font then it will display this " ". Change the font type that supports displaying Thai Language. ...Show All
.NET Development ISAM installable file not found
Hello, I am trying to open a connection to an Microsoft Access data base in visual basic.net. I get the message ISAM installable file not found. I have the file MSISAM11.dll in c:\windows\system32. I registered it with regsvr32. and it still does not work. What can I do thanks a lot in advance for your help Aurora Tellez. Actually, I am using MS Access at work, so I never try to open the media player. All I know is this file does not exist on my system!!! ...Show All
Visual C# runtime does not end
Hi, I have a win form which calls a dll and do some operation. when in Debug mode, as I'm closing my form , I notice that the runtime does not end - the form disappears, but I'm not returned to "edit mode" in code for VS.Net. I think the reason is that the ojbect referenced in the dll file is still in memory and need to be cleared before the program can be really shut. Is it right Many Thanks Jerry ...Show All
Visual Studio VSTudio installation - trial version
I downloaded and burnt the image file to a DVD - the installation page: http://www.microsoft.com/downloads/details.aspx FamilyId=B2C27A7F-D875-47D5-B226-E2578A116E12&displaylang=en says (in additional info) that the file can be extracted by nero but I am unable to extract the file. Any input Thank Do I have to use iso buster - will nero not extract the image file I have VWD express already installed and am trying to edit a very simple website (need to modify menus) that was designed using Visual studio. Will the express version suffice I have not been able to edit changes ie add or delete sub menus in express. So I am trying to install VWD Can the website (designed in asp) be ...Show All
Visual C# form
I have two forms. One is a main form and the other is login form. When I call login form I would like to see in the background a main form. But it is visible only when a main form is maximized. Is there another property for a main form to be normal, but visible in the background Hrcko not sure I follow. the mainform will be in the background when you show the login form. Example: //main form: frmLogin theLoginForm = new frmLogin(); theLoginForm.Show(); theLogin form will show infront and the main form will still be visible but hiding in the back, behind the frmLogin. ...Show All
Visual Studio Express Editions help me
Im compiling mechcmdr2 and cant get the resouce compiler to complie 'cause of errors if any one has help please post it soon. I found the answer it was to use a compiled resource. but now i run Mech Commander 2 which i compliled today but it says it is mising a file but the file is in the program dir. here is the Error Log. STOP : Could not find 'mc2res.dll' Address : 0x087D83EC Processor Registers EAX=0x00000000 EBX=0x00000000 ECX=0x00000000 EDX=0x00000000 Flags=0x00000000 =================== ESI=0x00000000 EDI=0x00000000 EBP=0x001288C8 ESP=0x00128378 EIP=0x087D83EC EIP (0x087D83EC) ESP (0x00128378) 001283B8 0066E711 0068AB35 0066E710 00000014 7C915233 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Collision detection - Howto
Hi all, I'm trying to make two objects collide in GSE, actually in a Pong game - between the bat and the ball. I have motion for both, but no collision, the ball just leaves the stage so to speak. Any help would be appreciated. I have looked in the Help, but to no avail. Go to Help > Contents > XNA > XNA GSE > Programming Guide > Math > How To: Detect Whether 2 Objects Collide You'll basically need the BoundingBox class. Still figuring out how it works on my part :-) ...Show All
