A.Hadi's Q&A profile
Visual C# Overhiding
What is overhiding in c#. I think the term you are referring to is "overriding" and "hiding". A superclass can override the implementation of a method defined in its base class, which means that the method implementation in the subclass will replace the implementation defined in the base class. In C#, methods can only be overriden if they are defined as virtual in the baseclass, and defined with the overrides keyword in the subclass. Similarly a method in a subclass can hide a method in its baseclass, which will hide this base class method, and expose the subclass method implemen ...Show All
Visual Studio Express Editions Reference/tutorial material for using MSHTML from C#?
Would anyone like to recommend a book or Internet-based resource where I could learn to use MSHTML from C# I need to know how get access to the IHTMLDocument* interface pointers, how to call them and what pitfalls to avoid in the use of unmanaged interface pointers in a C# application. I'm learn-by-example kind of guy, so the more practical examples I can look at the better. I've been forced into this position by the limited capabilities of the .NET 2.0 Webbrowser control in VS 2005 C# Express. Hi, Were you able find a resource for the same Please let us know so that we can help you. Thank you, Bhanu. ...Show All
Windows Forms Paint of PictureBox
Hi, I have the following problem: I need to create a pictureBox and draw some lines on it. The coordinates of the lines to be drawn come from a collection of the list of collections. So, in each pictureBox, I need to pass the index of the collection in order to get the coordinates of a sublist in the List. My code is something like this: for ...Show All
Game Technologies: DirectX, XNA, XACT, etc. SampleFramework Camera
I have a small problem with the sampleframework. I just create a world with one mesh and manipulate the view with the mouse / keyboard. Most works well, i.e. key movements, mouse wheel and the camera-movement with the right mousebutton. The problem is, that I can't move the world with the left mouse button. In onFrameMove there is the following code: camera.framemove(elapsedTime) device.transform.projection = camera.projectionmatrix device.transform.view= camera.viewmatrix device.transform.world = camera.worldmatrix What am I missing Nothing, thats sufficient code. I use the same in my Ask Zman samples. Co ...Show All
.NET Development Is there a way in the .NET Framework to get an IBindCTX?
Hi -- I'm trying to find a way to call IBindCtx::GetRunningObjectTable. But I'm having a hard time figuring out how to get the IBindCtx object in the first place. Is there some framework class or object that does it for me Thanks very much for any help you can offer. Regards, Mike Hi -- I haven't exactly answered my own question, as I still don't know a way to do this within the .NET Framework library. So if anyone does know about a class or method that can get a handle to a IBindCtx, I would still like to know. But for those who might read my question and want to know how to handle a part of ...Show All
Microsoft ISV Community Center Forums What does VMF Team in Microsoft mean???
Hi, Not sure if this is in the right section but i was just wondering if anyone can tell me what does VMF stand for with regards Microsoft It came up when i was looking at jobs.ie and it said clearical activites of the VMF team in mircosoft..... I would be truely greatful if you could tell me what VMF means.... Thanks Not that this is terribly helpful, but I believe that VMF refers to Vendor Master File and seems to have something to do with finance. -brenda (ISV Buddy Team) ...Show All
SQL Server Where is SSIS?
I just upgraded my SQL 2005 installation to include integration services. Now I can't find the service. Where is it In you start menu, under "SQL Server 2005" do you see "SQL Server Business Intelligence Development Studio" You can create a integration services project using this tool. ...Show All
Windows Forms Parent dataset in child form
Hi guys I am developing a MDI applcaition using Vb.net 2003 The parent form has dataset Ds1 which has 7 tables(one of is tblcustomer). The parent form allow to users to select customers from the tblcustomers or add new customer(which opens the new Child form -- to add new customer) How can i add the new customer to the parent dataset and show the new customer in the parent form without clear and refill the dataset. Any help/direction would be much appreciated Thanks A One way would be to pass your dataset to the form child form public _DS as dataset Then when you declare a new child f ...Show All
Visual C++ setting up VC++ 2005 express beta 2 to compile win32 gui apps.
Hi donjonson! How do I go about doing this 1. Create a Win32-Console-Application 2. Go to the Linker-Settings and change the "SubSystem" to "Windows" (Project|Properties|Linker|System) -- Greetings Jochen Kalmbach Microsoft MVP VC++ My blog about Win32 and .NET http://blog.kalmbachnet.de/ PS: Please mark an answer as "answered" if it helped!!! Read this article too: http://lab.msdn.microsoft.com/express/visualc/usingpsdk/default.aspx ...Show All
Smart Device Development NotSupported Exception when calling third party dll
Hi all, I am using VB.NET and VS 2003 for PocketPC application development. I am trying to use third party dll from my application. I am using P-invoke to call function but I am getting "NotSupported" Exception. I have checked signature properly. That should not be the problem. I don't have source code of this dll and also don't know which platform was used to build it. Also I have copied third party dll in both current folder and windows folder of the device but still getting this error. Please help me. Thanks, Viral NETCF V1 does not support marshaling of some types to n ...Show All
SQL Server Database restore to new database
Hello all, I am using SQLDMO to try and restore a database to a 'new' database. I am using the relocatefiles property and setting it correctly, but when I restore I always get the error: "[Microsoft][ODBC SQL Server Driver][SQL Server]Logical file 'OLDDATABASENAME' is not part of database 'NEWDATABASENAME'. Use RESTORE FILELISTONLY to list the logical file names. [Microsoft][ODBC SQL Server Driver][SQL Server]RESTORE DATABASE is terminating abnormally." My code is set up like this: restoreObject.RelocateFiles = "[oldDbName],[C:\newDbName.mdf],[oldDbName],[C:\newDbName.ldf]"; Any ideas Can I assume the log ...Show All
Windows Forms DataSet and changes
I have a dataset with changes. Now I want to show a dialog to let user edit the dataset. If user canceled the dialog, the dataset should be what it was before, but I don't know how. If I use dataset.RejectChanges(), it will also reject changes made before we showed the dialog. How I can I do show Try the DataSet.Copy method&nbs ...Show All
SQL Server How to check if the file exists or not before bulk insert
How to check if the file exists or not before bulk insert. I would like to skip the bulk insert if the file doesn't exist. Information: I use Stored Procedures to run Bulk insert statement. The stored procedures is call by package. ****************** I test it at query analyzer and show the error when file don't exists. Error message Server: Msg 4860, Level 16, State 1, Line 1 Could not bulk insert. File 'E:\POLL41.fmt' does not exist. ***************** Code CREATE PROCEDURE sp_InsertPoll59 AS declare @strsql varchar(5000) select @strsql = 'BULK INSERT POLL59 ' select @strsql = @strsql +' FROM ''E:\POLL.DW ...Show All
.NET Development Exception while Creating new .MDB using System.IO.File Class
Hello all, I am getting an System.Exception : Unrecognize Database Format , while creating a new .MDB file using System.IO.file class and with the help of copy() inside that class. Actually, you see when u create new blank .MDB file it has some size in terms of 80-90 kb.. but when I call this copy() function of System.IO.File class , it creates new .MDB file but, of 0kb(zero kb) and it also convert the original .MDB to 0kb. After creating this 0kb .MDB file, if I try to open it.. by COM fro writing the data.. it throws an Exception ....."Unrecognize ...Show All
Visual Studio Tools for Office Get Excel worksheet by index
Hi there, I would like to get the data in an excel worksheet by the worksheet's order number. For example, If the order of the worksheet order are : WS1, WS3, WS4, WS2 And if the user enters 3, then he/she should read WS4's data. I've tried to implement this using two different approach OLEDB and COM, but both of them are not satification. OLEDB can only get the worksheet in the worksheet's creating order. COM requires the server to install Excel. I looked into Vicsul Studio Toos for Office and it also requires to install Excel on server. Does any expert here know any alternative solution or hint that can solve my problem Many th ...Show All
