chaitanyapjk's Q&A profile
Windows Forms Casting an Instance of Class by Type
Hi, I'm currently working a project that utilises the System.relection namespace. I want to be able to call a method and pass the type of Class Object (as System.Type) and an Instance of class object as Object into this object and then once inside the class I want to cast the Instance of Class back to the type Class. For example in the presentatio ...Show All
Windows Forms very urgent?Rich textbox in vb.net
I have Rich textbox I need Bold italics, font size etc,when i save in dtabase it should be saved as same format,When I pull from dtabase it should be same fomart what was in rich text box And also when i view in web page in asp.net it should be in same format Pls help me .net professional , pls give me code for that . Its my last chance ,i didnt found any thing i any where. Pls pls help me ...Show All
Visual Studio Team System DoNotExposeGenericLists - Does this make sense?
http://www.gotdotnet.com/team/fxcop/Docs/Rules/Design/DoNotExposeGenericLists.html states the cause as: "Cause: A type contains an externally visible member that is a List<T> type...." with the justification being: "List<T> is a generic collection designed for performance not inheritance and, therefore, does not contain any virtual members. The following generic collections are designed for inheritance and should be exposed instead of List<T>." It makes sense that if you were going to inherit from a collection that Collection<T> would make more sense than List<T> because of the virtual ...Show All
Microsoft ISV Community Center Forums Help! Math problem
I am using vb in excel and have run into an issue I can't figure out. Just for testing, I have a form with a button that calls a function: function test() dim a a = 1.09 - 1 msgbox a end function I am looking for the answer to be .09 but I get 9.00000000000001E-02 I have played with it a bit. If I make the equation a = 1.9 - 1 ,I get 0.9 and if I make it a = 1.099 - 1 , I get 0.099. Does anyone know what the cause of this is Thanks in advance!! Just the precision which Excel holds numbers to try formating the answer as below MsgBox (Format(a, "0.##")) ...Show All
Visual Studio Problem in Crystal Reports
Hi All, I am using Visual Studio 2003 and crystal reports 10. I have developed a Web application using ASP.Net and used crystal reports 10 version. I have developed the setup project. And I tried to install this setup project on another system, on which crystall reports does not installed. Installation completed successfully on this system. Now I tried to run the installed project. I am facing the problem with crystal reports. Apart from crystal reports everything is working fine. I am getting error 'CrystalDecision.CrystalReports.Engine is not registered'. Then i checked this dll in the installation setup project and in&nbs ...Show All
Visual Studio Connection string can't be changed when using OLAP cube
Hi I am using Crystal Reports XI thru C# and an OLAP cube stored in a SQL Server 2000 DB, there is a report with an OLAP grid which connects to the OLAP cube. It seems that from the C# code, the connection string in this report can't be changed at all, only the userID and password, the report doesn't see the changes in the serverName or the databaseName. Any help or comment about this will be always appreciated. Thanks Unfortunately, the CR .NET SDKs do not allow changing of data source info at runtime for OLAP-based reports. OLAP-based reports work best when used from Business Objects Enterprise wh ...Show All
Visual Studio Team System Viewing unit test output before the unit test has completed
Is there a way of viewing a unit test's output while the unit test is running I don't want to have to wait until the test is completed before I can view the console output Andrew Nope, this is not possible :( Sorry! I will, however, add it as a request for the next version. Note: If you attach something to the stream for stdin/out etc you can possibly redirect the output there, to view it that way. THis will happen under the debugger for stderr (for example) ...Show All
Visual Basic error creating new connection string (VBexpress SQl Express)
Hi I have finished developing a serial number DB with SQLexpress and VB express, and would like to publish/deploy the application to a shared network drive so colleagues can acces the DB. Before I publish the App.I want to move the DB (.mdf) to a shared network drive. So that when publishing th db. It will have a connection string that everyone can access. In VB I am tring to connect to the DB moved from my local machine to the network share(server), and keep getting errors. The error states" database1.mdf is on a network path that is not supported for database files. possible causes db with same name exists - have tried r ...Show All
Visual Studio Can't Edit and Continue
I'd like to figure out why I can't use Edit and Continue on my box. I've tried this with a trivial C# Console app that consists of the following: namespace EditAndContinueTest { class Program { static void Main(string[] args) { int a = 1; Console.WriteLine(a.ToString()); a = a + 1; Console.WriteLine(a.ToString()); } } } I break on the first Writeline and try to edit the line below to a = a+2; and get the following dialog: "Changes are not allowed when the debugger has been attached to an already running process or the code being debugged is optimized". I'm running in XP Pro ...Show All
Visual Studio Team System CaliberRM integration with VSTS
We are currently Caliber users and I would like to test out the integration with VSTS. In the PowerPoint presentation DEV 461 ( http://www.microsoft.com/downloads/details.aspx FamilyId=0138F888-325C-4F59-843A-EE76DAE04AB2&displaylang=en slide 22), I Caliber requirements under the Team Explorer tab. Is there any way we can start testing out this integration Although Borland has announced support for Team System in CaliberRM ( http://www.borland.com/us/company/news/press_releases/2005/06_06_05_borland_brings_requirements_engineering_rigor_to_msvs2005_users.html ), I don't think any releases are available at this time. You' ...Show All
Visual Studio How do I access the Solution Item or the Project Item using item name?
Hello.~ While I make the addin program, I have a question. I want to access the Solution Item or the Project Item using item name. I can access using "soln.Projects.Item(1)" or "soln.Projects.Item(1)" but I can't use the ItemName instead of item number ( ex. 1 ) . Isn't there any way using item name or how should I do to do Please help me. Thanks. Gwisun. Thanks a lot, Chetan. That's what I want. May I ask additional question I can find the general project using unique name. But, I can't find both solution folder and the project under the ...Show All
Windows Forms ComboBox databinding
I can bind my combobox to a datasource.... but i also like to add an item to the combobox without having the item in the db .... like having the All option in the combobox. something like this : All cat dog So cat and dog is in the DB ... but id like to add the item All ... without having it in the DB. Is it possible Add a row to the table in the dataset for the 'all' option. This will not update your DB unless you commit it. ...Show All
Visual Basic Any way to suppress the printing popup?
I've developed a small utility program that prints data from a DataSet in a report format. It works great, exactly the way I need it to, but when I print, I always get that small pop-up window that cycles through and counts off the number of pages being sent to the printer. Is there any way to suppress that window I use the Adobe PDF print driver quite frequently and I'm constantly having to pull the Adobe "Save As" dialog out from behind that annoying little pop-up window. I'm coding in Visual Studio 2003, with version 1.1 of the .NET Framework. Thanks in advance for any info you guys can provide. ...Show All
Visual Studio Team System DoNotMarkEnumsWithFlags
Hi, FxCop recommends that I don't decorate my enum with the flags attribute, even though the enumeration contains bit fields. This rule appears to have a regex that looks for hex values. This regex should be updated for enum declarations like the following: [Flags] public enum ValidationTypes : int { Any = int .MaxValue , Data = 1 << 0 , Model = 1 << 1 } That's better. The names idea is a good one and will certainly get across the meaning more clearly. Cheers, Steve ...Show All
Windows Forms License agreement in setup
Hi, How can i add license agreement screen to the setup Thank's Alexei Hi, I have found the solution. I need to add license agreement dialog in User Interface of setup project. Also set file to license agreement file. Thank's Alexei ...Show All
