Vishva's Q&A profile
Windows Forms Datagrid rows remove at problem
Dear All, I have a small form where there is several text box n a submit button. When I click the submit button the values are populate into a datagridview using dataGrid.rows.Add method. Then I also have column of checkbox where user can select which of the rows to be delete. Thus I run a for loop to determine which of the checkbox is checked and by using dataGrid.Rows.RemoveAt() I perform the delete. The problem is over here. For example I have 6 items and I select item 5 and 6. During the for loop first item 5 gets deleted and then the datagrid size becomes 5 and item 6 cant be delete How can I solve this problem of the datagrid refresh Hope some one can help me pls. Thanks in advance. For ...Show All
Visual C# system tray application
how can develop a system tray application in C# 2005 you do not need need to write all of this if you want popup menu when the user right click the icon Notifyicon has poperty called ContextMenuStrip set it to your ContextMenu in designer or via code notifyIcon1.ContextMenuStrip = mnuSysTray; Please if this answer and previous ones answered your questions so mark them as answered ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Missile Commandeer Game (including Source)
First XNA game...done! It's an old school missile commander clone (only its CommandeEr, like pirates...ARRRR!!!). I spent extra time to maintain the original "cutting edge" graphics to make it a true classic. Check it out... (I just added the screenshots, game and source code to my website) Click here for the game Improvements to come: - MIRV missiles - Extra lives - High scores - suggestions Well done, this is really quite adictive One small comment, I was a bit of a dab hand on the original arcade version and the key was using the explosion to hit several missiles at one time. It would be good if you could make the explosion last a bit longer s ...Show All
Visual Studio Project Subtype
I have already created a new Project Type to be integrated into the VS Solution Explorer. and it is working well The VS Package for the Project I have developed is in unmanaged code using COM. Would it be possible to extend a VC# or VB project with the functionality I have acheived with the new Project type I have created. I have read about Project subtypes. My question is if I enable my project package to support IVsAggregatableProject and IVsAggregatableProjectFactory, can I aggregate it with a VC# or a VB project. Can all the commands and functionality from my project be integrated. Hi Geogy, In theory you should be able to convert your custom project type to aggregate either the C# or V ...Show All
Visual Basic Unable to find manifest signing certificate in the certificate store.
Hi, I've got an error: "Unable to find manifest signing certificate in the certificate store" and have no idea what to do to r epair that. Does anybody know Szwartek, 1. To solve, I went to the "Signing" tab of the project properties and unchecked "Sign the ClickOnce manifests". The text above is from a same question post in msdn forum: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=162851&SiteID=1 2. Did you also copy the certificate with the project. Should be a *.PKF or *.SNK file in the project. You can see which certificate file it assumes is their by going to the Signing Page of the Application Designer (double click "My Project" in ...Show All
Visual Studio 2008 (Pre-release) Brush Invert
Is there an equivalent in WPF to BitBlt with DSTINVERT as the last argument (This inverts whatever is behind the brush) Cheers More details on my previous post: I'd like to display a "selection" rectangle. The rectangle should invert the colors of whatever is behind it. I noticed that Microsoft Word does this when you select a piece of text but the WPF TextBox does not. Does it mean it's not possible in WPF ...Show All
.NET Development Web service on Unix/Linux platform
Hi, Can anybody give me your valueable guidance I want to know, is it possible to run a web service developed with visual studio 2005 on Unix/Linux platform Thanks, Regards Shobha ...Show All
Visual Studio Toolbox not displaying items!
Hello, I'm developing a smart device application using C# with Visual Studio .Net 2005 professional ed. I'm having a strange problem where the toolbox stopped to display all the items!! I'm unable to add any control to my forms now. I think this happened after I tried to add a custom control of mine to the toolbox. I tried reseting the toolbar, uninstall and install, same problem. Note that when I open other projects which are NOT smart device applications, the toolbox is fine. Please help, I cant continue working! mnar, Sounds like you got the toolbox in a strange state. You can try resetting the toolbox cache by doing the following: Close all instances of Visual Studio ...Show All
Architecture Data Provider Design Pattern
i am currently developing a data access layer. my aim is to separate the entities from their data access logic. this way i will be able to work with different data sources with the minimum of fuss. i am trying to implement a kind of provider pattern in order to achieve this aim. please let me explain with a simple example. let's say i have a class called Client which has fields and properties for name and department. my proposed solution is to make my entity a simple object with just these fields and properties (CDO object so good for serialization over web service) then i can have an external Provider class which fills my entity like this: ClientProviderSqlServer ... while (rdr.Read) { client = new Client(); if (r ...Show All
Visual Basic BindingSource & AddNew record to dtatbase
I use Vb2005 & SQL Server 2005 database I make a data form to connect to database using bindingnavigator and binding source can I check programatically if my form is in adding new record or not Mr. Soptty thank you but I know that My interest is when the user presses the add new button to add a new reacord and before I use the update method to commit the changes to the database I think I'll make my modifications to the interface in the add new button and switch the interface back in the update button but I hoped that there is a value or some kind of pointer that tells me that the user now is adding a new record to the dataset or editing an existing record in ...Show All
Visual Studio Team System I cant remove default Document folders at custom process template
Hi folks, I'm customizing my process template and I removed at wsstasks.xml some default folders like requirements and general documents. However, I create my own folder named Conception. Ok. But when I upload the process template and then, create a new team project, the project was created with the default folders again. anyone know whats happens I believe that is a bug at pluggin for WSS. Tks a lot, Thiago http://www.tritech.com.br Yes. The site is build off off a WSS template that is defined in the WSStasks.xml file ( <site template="VSTS_MSFAgile" language="1033" />). If you want to create a site that is customized, and add in the directories that you want to see ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Beta 1 & Beta 2 Together
Hi - I've been distributing a small compiled demo of an XNA game and I've run into the problem that if the end-user has both beta 1 redist & beta 2 redist installed, even though I'm referencing the beta 2 DLLs, the program automatically references (or does something) with the beta 1 DLLs. Is this unsolvable, or is there any way to fix this Thanks in advance... Fair enough - thanks for the answer. Weird that it automatically references the previous version, but oh well it's not like most people will have have 2 versions installed (end-users that is). ...Show All
Visual Studio 2008 (Pre-release) error while implementing Message security in WCF Client application
hi, i am doing a security application using the Procedure as follows 1) created two certificates server and client certifcates 2) placed the client certifcates in current User/Personal location placed the server certificates in current user /trusted people location placed the server certificates in localmachine/my location using makecertifcate and certifcate manager 3) i created the host application wcf enabled service and web config of the host application as follows < serviceCredentials > < serviceCertificate findValue = " wcfsServer " storeLocation = " LocalMachine " storeName = " My " x509FindType = " FindBySubjectName " ...Show All
Visual Studio Team System Migrating WorkItems to a new project.
Okay so we've completed our first project using TFS. I'll have some comments regarding the experience on my blog later. I want to branch the code into a new project and migrate the work items...or maybe somehow branch the workitems as well. The trunk will be used for the production version of the system, while the branch will be v.next. Some of the work with v.next will fix the code from prod and we will want to merge it back into prod. For the most parts the changes to prod will be specific to prod and we don't want new prod code going into v.Next. There are definitely some work items/scenarios et. al that I'd like to bring over to the new project rather than re-entering them. I know that exporting to excel and importing to the n ...Show All
Visual C# Urgent........Inheritance.
Hi, I want to design a base class in such a way using that i can define only one derived class. if i define another class it should give an error. There aren't any really good answers to that one. Although, I've always thought it would be nice to have something that allowed you to limit the derived classes of a base class. You could, for instance, limit the derivations from XmlNode to the set of valid XmlNode types. The closest thing I have seen in any language, though, is Java's enumerations. To answer your question, if the base class and derived class exist in the same DLL, you could always make the base class's constructor have internal visibility. Can you tell us more about what you're trying to ...Show All
