Sumedh Kanetkar -- Microsoft's Q&A profile
Windows Forms Need help with a ListBox... SelectedIndex = -1 not working properly. Maybe i'm hallucinating.
I instanciate a dialog box like this, from my main form: /// <summary> /// Loads up the Brands Dialog Box /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void lnkBrand_LinkClicked( object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e) { using (dlgBrand _dlg = new dlgBrand()) { _dlg.ShowDialog(); } } Then I have in my little dialog, ...Show All
.NET Development When to call dispose when using SqlConnection and SqlCommand?
What is the best practice when running code as follows: //### code start #### SqlConnection conn = new SqlConnection("xxxx"); SqlCommand cmd = conn.CreateCommand(); //...do the necessary processing cmd.Dispose(); conn.Close(); conn.Dispose(); //### code end #### calling Dispose on the cmd and the connection seems redundant. Additionally, if I am disposing hte connection should I first explicitly call Close() The sh ...Show All
Visual Studio applying smart indentation rules
Hi, I have been facing a problem regarding the implementation of smart indentation rules in my custom language service. i am not able to find out which interface should i implement and where should i write my rules. Please help me with the process. Thanks in advance.. Jimmy, Have you tried implementing the IVsLanguageLineIndent interface (in textmgr2.idl if you are using native code or Microsoft.VisualStudio.TextMa ...Show All
Windows Forms TreeView Double Click and canceling expansion
Does anyone know of a way to cancel the node expansion on double click in a treeview I can't seem to figure it out, it seems that the events happen in an order that does not allow me to do this, has anyone figured out a&nb ...Show All
Visual Studio Can you save the report to PDF or HTML or any Pictureformat
Is there a way that you can save your report to PDF,HTML or any prictureformat. I have a windows verision and want to distrubute my report. /Anders Hi there, The String fileNameExtension parameter of the Byte [] returning LocalReport.Render() overload is redundant in the version [which I suppose] that you have, too (if it's the same with my version, namely " Microsoft Visual C# 2005 55603-000-0000016-00273 "). Simply comment this p ...Show All
Visual FoxPro can't reindex 82,000 kb file
Let me begin by thanking you for the help. I am not a avid foxpro programmer. I have a table in my database that has been acting up the past few weeks, but usually a reindex would fix the problem. Today It won't let me reindex. I type reindex and press enter and instead of getting the counter on the bottom right hand corner. It does absolutely nothing. If I delete the .cdx file and try -- still nothing. ...Show All
Software Development for Windows Vista CodeDomDesignerLoaderNoRootSerializer appears
Hi guys, I have the same problem as: >>I'm having problems loading WWF b1.2 onto VS2005 RTM on WinXP. >>Getting error: CodeDomDesignerLoaderNoRootSerializer. >>The version for VS RTM is 8.0.50727.42 >>I've tried install/deinstall/reinstall several times on 2 separate machines. >>Any suggestions >>TIA However a fiend of mine does not have it. The only difference between our cases is tha ...Show All
Windows Forms Why the Administrator delete Reply????
Please, what is the code for populating a Listview with data from a Access DB Is urgent for me. Thanks!! did you say something bad Did they give you a reason ...Show All
Windows Forms Problem with NumericUpDown
If you've ever have problem with NumericUpDown, especially when bind it to a DataSource, please consider following workaround: 1. The BindingSource always fails to update control's value when the value is DBNull, because when it get the value from the dataset, the dataset throw an exception if column's value is DBNull. To correct this, ALWAYS provide a DefaultValue for numeric and text columns. 2. NumericUpDown does not end the editing of user w ...Show All
.NET Development .NET 2.0 safe?
Anyone have issues with .Net 2.0 and/or is this the best place to ask I am considering installing it. Not to worried about VS 2005 but am concerned about 2.0 and Avalon. Any issues and/or best place for me to get those answers Hi, If your only concern is installing it then I would stongly recommend that you try installing on Microsoft Virtual PC . This way, you can simply delete the VPC if it gets corrupt witho ...Show All
Visual Basic Docking form
Hello, I was wondering how I can make a form of mine dock onto the side of my screen, like my aim buddy list does. I've googled this and I've come up with notta, so I'm hoping a wise coder on here can assist me. Thanks in advance. G'day Jay890. In the property window for your Form, find the Location setting. This is usually set to 0,0 which is the top,left corner of the screen. Then select the StartPosition and set this to manual . When yo ...Show All
Visual C# C# and the __LINE__ or __FILE__ macros
In ANSI C and C++ there are two pre-defined macros for getting information about the current file and line where code is written. These macros are __FILE__ and __LINE__. We have found that these macros are very useful tracking down issues. Yet, in C# these macros are nowhere to be found. Does anyone know of a way to get C# to either recognize these macros or a method to do something similar in C# Is Microsoft considering adding these ( ...Show All
SQL Server is there any way of uploading/deploying rdl files to the reportserver other than report manager in real time
Hi, is there any way of uploading/deploying rdl files to the reportserver other than report manager in real time wat happened:- i had developed reports (rdl files) and we have a setup for the web application During Implementation after the application is installed in the web server. we needed to deploy reports & datasources (rdl & rds files) to the report server. wat we did was - manually upload each rdl file ...Show All
.NET Development dbf index in vb2005
Hi all, I am new to VB2005 and need help. I have some data in dbf and I need to find some records in them. How do I set indexes for this files. Many thanks Regards Trivun Hi Trivun, Although there is more than one program that creates DBF files, I'll assume your DBFs are FoxPro DBFs. There are two types of indexes for FoxPro DBFs. One will have an IDX extension and the other will have a CDX extension. The ...Show All
Windows Forms updating window in multithreaded app
okay im making a mesh viewer for my engine in c#. Now my engine runs in a window, parented to a window in my c# application. My engine runs in its own thread started by my c# application. When i've finished rendering i tell opengl to swap buffers, which would normally display the contents to window, however in my c# appliation it does not update the window. How ever, if i put a call to my engine's render function in the windows paint method, i ...Show All
