asiaindian's Q&A profile
Visual Studio Express Editions I have a Question
When I open a link in a new window on my web browser, It opens it up with Internet Explorer. How can I tell it to open up new windows with itself, and not internet explorer please edit your posts instead of making multiple replies - it helps other members. Just read the link I provided, I've given an example in there on how to create a desktop shortcut using the IWsh runtime component. The desktop shortcut would be made within the application itself, any where you like, however if you are talking about within the installer, then I don't know how you would do this in ClickOnce deployment or even if it is possible. You would have to refer to the docs in this case. ...Show All
Visual C# Casting anonymous lists
The following is legal in c#: DerivedClass d = new DerivedClass(); ITestClass i = (ITestClass)d; BaseTestClass b = (BaseTestClass)d; However, I receive a compile error when I do either of the following: List<DerivedClass> dList = new List<DerivedClass>(); List<ITestClass> iList = (List<ITestClass>)dList; List<BaseTestClass> bList = (List<BaseTestClass>)dList; Cannot convert type 'System.Collections.Generic.List<MyClass.DerivedClass>' to 'System.Collections.Generic.List<MyClass.ITestClass>' The question I have is... How does one go about casting between generic classes without doing it manually Is this even possible Class Code: public class DerivedClass : BaseTestClass, ITes ...Show All
SQL Server Full Cached Lookup with Parameters
Parameterized queries are only allowed on partial or none cache style lookup transforms, not 'full' ones. Is there some "trick" to parameterizing a full cache lookup, or should the join simply be done at the source, obviating the need for a full cache lookup at all (other suggestion certainly welcome) More particularly, I'd like to use the lookup transform in a surrogate key pipeline. However, the dimension is large (900 million rows), so its would be useful to restrict the lookup transform's cache by a join to the source. For example: Source query is: select a,b,c from t where z=@filter (20,000 rows) Lookup transform query: select surrogate_key,business_key from dimension (900 M rows, not tenable) Ideal Lookup ...Show All
Visual Studio Express Editions Regarding delegates?
Hi, I have a class (class A) that has a delegate defined-for e.g. public delegate void func(); Could i create an object of this class in another class (class B) and call the function of class B using this object. For example: class A { public delegate void func(); } class B { public static void sample() { console.writeline("hi"); } public static void main() { A obj=new A(); obj.func ptr=new obj.func(sample); ptr.func(); } } Also, how is it possible to delete objects. Is there any keyword as in C++ called delete to delete objects created Thanks in advance. Regards, Anil Narayanan The proper syntax is: class B { public static void sample() { Console. ...Show All
Windows Forms AxWebBrowser Changed?
Hello, for some reason i started using the axWebBrowser coltrol about a year ago, i got the Visual Studio 2005 and the axWebBrowser has been changed to just WebBrowser and all the control calls have been changed, for instance AxWebBrowser1.LocationURL; is no longer available, its changed to WebBrowser1.URL; Also Im having Compilation Errors with the MSHTML.dll this line mshtml.IHTMLDOCUMENT2 doc = new mshtml.IHTMLDOCUMENT2 as WebBrowser1.Document; this line tells me that it fails to convert Document to IHTMLDOCUMENT2 because it has to implicit Conversion. Can anybody explain what to do how to use this new webBrowser...or get the old one back you should try using the new version bu ...Show All
Visual C++ Can't find entry point for function in C++ Dll called by Visual Basic 6.0
Does anyone know why I would be getting the above type of error (Run time error '453') when I try to call a function in a Dll created in Visual C++ from a Visual Basic project I've tried just about every method of creating it that I could find on the internet and I would like to get some new ideas. I can send code to be looked at if necessary, but it wouldn't be the only method I've tried. I didn't save all of them. Feel free to send me an email. It's Visual basic C++ 6.0 which is what I wrote the Dll in. I tried several methods of creating the DLL including using the wizard and also doing it without the wizard. When I do it without the wizard the cpp file that gets compiled to generate the dll has a case statement in iiit that depen ...Show All
Windows Forms KB196340 IN C#
All, Does anyone know C# implementation of the KB196340 Lots of people asked abt this many days back and I didnt see any answer for this! I am totally stucked with this. Can someone please help me in this regard. Regards, Shiv. This guy did his homework better than me... ...Show All
Visual C# question about ... QueryStringParameter & HttpRequest ...
I need to get Parameter from URL... like if URL shows "http://www.yahoo.com id=26 I need to get the Parameter "26" is it possible I think maybe it can be doen by use QueryStringParameter or HttpRequest is it correct if yes.. can you please give me a example or give me a hint to start thank you very much Hi, Are you developing asp.net application If so, use Page.Request["id"] to get the query string after "id" in the url. It returns a string value. or Request.QueryString as well. Detail info to see: http://www.codeproject.com/aspnet/QueryString.asp Thank you ...Show All
Windows Forms Forms size
How do I control the size of all of my forms I would like to set them so they are all the same size. How do I acomplish this thank you Hi Since you want to have a uniform size across use the concept of Visual Inheritance, where you inherit from a base form. Thanks, ...Show All
SQL Server NEWBIE.. SQL EXPRESS Attach during VB.NET Windows Application Install - Oneclick
Here's what I'm going for: I have an 05 VB.NET windows application that will be used as a smart client for our folks in the field. The windows application includes 05 SQL Server Express. I have included in the Data Sources of my project and attached file going through the wizard Microsoft SQL Server Database File (SqlClient) ='s (myfile.mdf) and then selected all tables, views, stored procedures, and functions... the corresponding myfileDataSet.xsd with the myfile.mdf are now located in the root of the project. I now recompile the project without error and go to the properties section Publish tab... select the Application Files button and myfile.mdf Publish Status is set to Include and the Download Group set to Requried. With this in p ...Show All
SQL Server Scheduled Reports Not Being Sent Out
I have several scheduled reports that have been running every morning and being emailed out to many recipients. One day it all stopped. There are no error messages. It just doesn't work any more. I have tried re-deploying them to the report server and rescheduling the jobs but they still don't run. Hi, Same problem I have now as you had, I wonder how did you solve your problem. Please advise, Frank ...Show All
SQL Server Need help to find a professional approach
Hi guys, I'm designing a sql server database for a recruitment site, I have a resumes table that stores pieces of information about every jobseeker, among this information is the employment history which includes(Job title, company name, from, to), of course one jobseeker can have multiple previous jobs. Now, I want to know how this structure would be applied this structure suggests a field within the resume table that is by itself is a table! So, any ideas how can I design this database traditionally and basic to database design is to first identify the entities. The entities becomes a database table. In your case you may identify several entities like the applicant which is the ...Show All
Visual Basic My program dont stop when an error occurs
Sometimes in my program, when i run it in visual studio and there is an error, it dont stop and show the debug window. Instead it just exits the sub where the error is and continues. Is this some function i can set to on/ off What exactly do you mean by "error" and how do you know that one is occurring Can you show an example in your code of where this happens ...Show All
Windows Forms ListView help
hi I have a ListView setup with items and subitems but i cant get it to do anything when i click on it I have looked through the MSDN library and found nothing that can help. The view mode set as Detail so that i can see all the contents but i wanted a messageBox to appear when i click on an item in the list. can anyone plz help. thanks Hi, They're seperate files. .pdb means program debug database. If you compile the project in the debug mode, then it'll be generated. .dll is dynamic link file. It is mainly used as the auxiliary file, to provide services for other programs. You can have a look at the assembly options. e.g. /debug [= IMPL | OPT ] Includes debug information (local variable and argume ...Show All
Visual C# Application not responding
Hi, Is there a way to the application do not show the status (Not responding) in windows Xp for example, when it's running a big operation I tried removing the "Causesvalidation" but didn't worked ! I'm using this.refresh() sometimes, and does not work as well. Thanks If you have a process that is running that long, for the sake of the user experience you might want to look at tossing it over to a thread to help improve the User experience even more. ...Show All
