Answer Questions
CH_Tang Limit Amount of Compile Errors before abandoning the Build
Hello All, I've got a project I am working on that has a very large amount of errors. I'm running into an issue as I am taking care of errors and rebuilding it is taking too long to show me the remaining errors. I'm looking for an option in Visual Studio that will allow me to limit the amount of errors shown before the build is abandoned. I have so far been unsuccessful and was wondering if anyone here knew of this option or where ...Show All
Rasheed1979 switching alias at runtime
Is it possible to reset an alias at runtime Eg if I have using Office = Microsoft.Office.Interop.Word; Can I make this Office = Microsoft.Office.Interop..Excel from code Thanks&Regards, Pavan Thanks for your time! Actually i've to deal with two versions of WOrd interop. I've to use one of the interops depending on the office version installed. There are definitely ways for this like using late ...Show All
jpv unicode charaters
Does anyone know how do I read UNICODE character from a text file and write it to another file. Because I have problems reading/writing non ASCII characters like: s,o, etc. Thanks for your reply Chris. I am reading from a "csv"(comma separated values) file, which was generated from Excel. How do I set the Windows 1252 code I'm using this: StreamReader reader = new St ...Show All
Bobby Fu Remote connection to SQLEXPRESS
Hi, Im trying to connect from my application to SQLEXPRESS DB, which is on another comupter, i use this connectionString = " Data Source=remotePc\SQLEXPRESS;Initial Catalog=gcf;Integrated Security=True " providerName = " System.Data.SqlClient " /> And I recive this : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact ...Show All
jmerritt ALT+F4 question
how can i disable the alt+f4 key in my form I would suggest you to do as PJ. van de Sande has mentioned. But yes there is a different way to do it. You can override WndProc method to actually reject the message that the form handle receives upon pressing ALT + F4. This would require you to identify the specific message. protected override void WndProc(ref System.Windows.Forms.Message m) { if (m.Msg != 0x0010) ...Show All
Rulatir Unable to cast COM object of type
Hello, I tried to a function wrapper for my website which calls ExecuteQuery(...). I got this error when I tried to display the output from the internet browser: Unable to cast COM object of type 'Microsoft.Windows.DesktopSearch.Query.SearchDesktopClass' to interface type 'Microsoft.Windows.DesktopSearch.Query.ISearchDesktop'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{A227843C-1D92-48 ...Show All
Muhammad Hegab PInvoke Doubt.
Hi, i am working for Certificate Management module in a Smart Card Management System project. I am planning to use Platform Invoke to access the XEnroll.dll, CertCli.dll and Certadm.dll. I am planning to create an wrapper like the following public class XEnrollWrapper { [DllImport] << Function that i like too call from the win32 dlls>> } My Question is: The certcli.dll or XEnroll.dll may be changed/replaced e ...Show All
amruta6212 Dispose of a generic list
Hi, I have a procedure in witch I create a new generic list of a structure. Example: List<myStruct> = new List<myStruct>(); I add some elements to the list and at the end, I want to dispose of the generic list to free the memory. How do I proceed There is no Dispose() method in a generic list. Thanks! Simply let the variable go out of scope or set the member or static variable to null and the garba ...Show All
Steve Guidos MessageBox does not display?
Hi there... I'm fairly new to VC#, and I'm working with VC#.NET Express 2005. I am experiencing a problem in an app I'm writing. Normally, when I call Messagebox.Show, the Messagebox pops up and functions as advertised. But I've been having difficulty in this application that the only way I can get the messagebox to show, is to minimise/select a different application to be on the top level, then select the app again and as such cause the displ ...Show All
dleinbach How to resize a Nonrectangular form?
If a have an Nonrectangular Form (with FormBoder - None) I cannot rezise the window because I don't have a title bar.How I can rezolve this problem OK. the link is working See the "An example of a moveable/resizable shaped form." example on my site: http://www.dotnetrix.co.uk/misc.html The link is not working ...Show All
maheshbhide connection string doubt
I'm writing a web user control that update a datagrid getting data from a DB. Being a user control it must be reusable, so i don't know which type of DB is... I use a connection property that my app/form fill.It's a sensible data and i use Session["xxx"]. Now i prefer use a connectionstring better than a connection! Remember that i don't know DBtype, so i need something of general, like a connectionstringbuilder or particul ...Show All
rumi500 DirectX SDK Sample Converting Effects to VB
Hello all, I'm converting the DirectX SDK sample framework to VB code. It's going great so far, but i'm getting cought up on converting some lights code. Assume variable eye is a Vector3 containing camera eye point; and effect is a DirectX effect created from the sdk file 'BasicHLSL_VBNET.fx' The code in the C# reads as follows... Vector3 eyePt = Vector3.Normalize(eye); effect.SetValue("g_LightDir", &eyePt, sizeof (Vector3)) ...Show All
Kent Ogletree Summary comments
If you type /// at the top of a method some XML is inserted for you, this includes a summary, params, and result. On our team we require some other items to be added to the list as well. As I type them in I get some code insight for available node names. My question is: How can I add my custom nodes to the available node names in the code insight window Thanks Wayne Wayne - We'll take this ...Show All
Sarko Threaded Controls
I'm a little confused on how to show a progressBar with style continious on a seperate thread. Do I need to create the progressBar at runtime...or can I pop one on the form and just invoke it Style Continious can just be set in properties...with nothing really to do in the threadproc...know what I mean My form is also getting very "crowded"....mucho hidden panels groupbox, etc. Rather create at runtime and just bringtofront....let i ...Show All
JMDavis Running C# with Crystal
Hi, I need to run a C# application that use crystal reports, but it says that Assemblies is missing Do I need to install something in the server, I have copied the crystal dlls but it does not open the report... Thanks Bruno The problem is not in my machine with the Visual studio but when I send it to the server that will runs the application. In my machine it runs normally... hi the re, ...Show All
