Nitin Tarkar's Q&A profile
.NET Development System.Reflection (Reading Assemblies)
Anybody knows about System.Reflection I'm reading an Assembly and I'm taking the types(classes) and their fields(attributes). But there is a problem, because I'm doing that well but when I take a type that inherits from a class, I mean, i get a class that inherits from another, when i do the getFields(), it doesn't bring me his father's fields. The question is: There are some way to get the fields from a father of a class How ca ...Show All
.NET Development Copying an array
Hi What is the best way to copy elements from ArrayList to a dynamic array of strings Specifically, I populate an ArrayList with data from file: Dim Lines As ArrayList = New ArrayList Dim sr As New StreamReader("C:\List.txt") While sr.Peek <> -1 Lines.Add(sr.ReadLine()) End While Then I declare an array of st ...Show All
SQL Server [effeciency] specific result values
Hi. I had no idea what to name the topic so I hope this is ok. I feel like I am losing it, even though I am still learning SQL Server - I dont use it much in terms of technical/complex queries and so on but I do use SQL on a regular (almost) basis. I am all about making sure it is secure and effecient and performance and so on - just to give a bit of background about myself. Say for instance I have an ASP.NET website, which I have d ...Show All
Architecture IntraLayer Communication
Typically when passing data between various layers normally most recommend use of custom entities because it allows the developer to write code which gives finer control to the data. The other means could be usage of dataset, typed dataset. The way I look at it, custom entities take time to code and at the same time one needs to also write logic for retrieving data from database and looping record per record into an array of custo ...Show All
Windows Forms How to get ContextMenuStrip to show windows explorer style menu items?
I have a fairly simple windows form app with a DataGridView control on the form and the grid will contain names of files from the file system - similar to way windows search works. I would like to be able to allow the user to right click ion a row in the grid and display a context menu that contains the windows explorer context menu items (like Open, Open With, Send To, ...). I know how to build my own context menu with my own contex ...Show All
Visual Studio Express Editions Where is the menu to choose 'build release/debug'?
In 2003, there is a menu to choose for building release/debug version. Where is it in Express 2005 Or, in Express 2005, it can only build debug version thanks Hi, Scott, Thanks. However, no matter what I did, the 'configuration manager' is always in gray. I can not click it. Very weird. My project was developed in VS Enterprise 2003. I loaded it to Express 2005, and it is automatically converted to Express 2005 ...Show All
Visual Studio Team System Project alert for certain build type
Hi. We have two build types, one which builds fairly often and one which build every night (Nightly build). I would like to add a project alert to send an email when the Nightly build completes, but not for any other build. How can I do this Cheers, Chris It is possible to enable alerts only for specific build types. Please follow these steps 1. Remove existing subscriptions for relevant team pr ...Show All
SQL Server Why use anything other than varchar(max)
What is the benefit of using anything but varcha(max). See my post for my comments. Comments very welcome Hi Simon, as varchar(max) is a great "invention" for SQL Server it should be used wisely. There was a good webcast about this from Kimberly L.Tripp from SQLSkills which pointed out why and when you should consider using this new type. (Some of that which already took place at: http://www.microsoft.com/events/series/msdnsqlser ...Show All
Smart Device Development sqlmoblie insert not working
Ok this is starting to drive me nuts: I keep getting an error saying: "There was an error parsing the query. [ Token line number = 1, Token line offset = 43,token in error = Insert]" I assume that there is something wrong with my syntax but I cant seem to find anything, here is my code: StringBuilder cmd = new StringBuilder(); foreach (DataRowView drv in dv) { cmd.Append("Insert into ...Show All
Visual Studio Express Editions Functionality missing from Visual C# express beta2?
I can't find code definition window in the menus. It's not under view->Other Windows. I know it was in Beta1 The debugger seems to be missing some functionality too. Where's enable/disable breakpoints so I can get my list of all breakpoints All I have is toggle breakpoint. Dave - As you have noticed, there have been a few changes to the makeup of the Express products since Beta1.&nb ...Show All
Smart Device Development Establishing a Direct Database Connection
Can I establish a direct database connection with .NET CF Is this possible with Pocket PC/.NET CF For example is there a System.Data.OracleClient that supports .NET CF Thanks again, Jeff. Thanks so much for your advice. I was kind of thinking that was the answer. I will install VS 2005 since I still have the subscription to get it. There are 3rd party apps out there to connect to the device and SQL CE 2.0. Some of them are very goo ...Show All
Visual C# Serious Settings Problem Destroying Whole Form
Hello! If you try to create a new Settings file in your project and name it the same as your form, for example Form1, the Settings file will create a new Form1.Designer.cs file, overwriting your old one! This means that your whole form layout is lost! Best Regards, Lani Thank you for your suggestion. I have now reported it, on the release candidate, as there is no option to report a bug on the fina ...Show All
Software Development for Windows Vista Vista install help
I know a lot of people have asked for this, but what do i need to download and install Vista and how do i install Vista I have downloaded the 6.0.5308.0.9.WindowsSDK_Vista_idw.DVD.Rel.img file and mounted it as an drive. What do i else need to download and install Please:D The current releases are not yet publicly available. We will announce when and if a pre-release version is opened up to the p ...Show All
.NET Development Relationship and Datagrid get renamed deleted when I load a saved project
Ok this is wierd. I've created a form added all the controls for the header data, then added a datagrid for the details. This was done using the datasource wizards. Everything was working. The relationship between the tables was fine, I could add delete, edit records. Last night I saved my project. Due to losing a complete project a day ago for no reason, I even copied my project locally on my desktop to make sure it would not be deleted. This ...Show All
SQL Server Error deploying DataSource (rsAccessDeniedToSecureData)
Hi! we've installed the June CTP of SQL Server 2005 Standard. If I try to deploy a report project with Visual Studio 2005 Beta 2 I get the follwoing error: The Report Server Web Service is unable to access secure information in the report server. Please verify that the WebServiceAccount is specified correctly in the report server config file. (rsAccessDeniedToSecureData) The same error occurs if I try to create the datasource directly over the ...Show All
