Russk2t's Q&A profile
Windows Forms windows service won't install
I created a windows service according to the microsoft walkthrough: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon/html/vbwlkwalkthroughcreatingwindowsserviceapplication.asp However when I run the installer it doesn't show up in the service list. Of course, it won't run without b ...Show All
.NET Development How to block managed code being decompiled?
After a lot of efforts, around 6 months of my development work on windows forms and components to bring a better application, I learnt that managed codes can be decompiled (Including Visual c++ 2003 in which I am developing - supposed to be stronger than C# and VB!). This looks like a setback, at least for initial start of my application in the market. I have made a trial run on my own code (95 % managed code with forms and windows compone ...Show All
Visual Basic sending mails
Hi, I'm trying to send mails from within VB6 code referencing outlook.application references. I've got 2 queries: 1. How can I modify the sender or sender's email address 2. Everytime it tries to send the mail, a message pops up saying...an external program is trying to send mail on my behalf & if I'm sure to send it And this message will not go away unless I okay it!! I require to send out regular mails at fixed intervals, without any inter ...Show All
Visual Studio Express Editions dynamically spawn checkboxes on a tabpage?
Hi guys, I am trying to create checkboxes dynamically (based on number of records from a database) on a tabpage. I searched for how to create the boxes and found this code: Dim cbBox As CheckBox = New CheckBox() cbBox.Name = "cbBox" & Me.Controls.Count - 1 cbBox.Text = "cbBox" & Me.Controls.Count - 1 cbBox.Top = 18 * Me.Controls.Count ' Add controls to the Panel using the Add method. Me.Contro ...Show All
Windows Forms Disappearing Controls Visual Studio 2005
In my winform app, I have numerous .cs forms. One of the major forms (form1) has lost all of the controls in the form1.cs[Design]. Yet, in form1.cs[Desgin] all of the controls can be displayed in the properties display. I have reviewed form1.Designer.cs file and it seems to be set up the same as other forms which are working. I have reviewed the suspend/resume lines plus the Performlayout lines. They all seem to be there. The form1 did ...Show All
.NET Development SmtpMail::Send Works Once then fails
I am trying to send a list of reports to a list of ppl. I am using a simple managed C++ program, and SmtpMail::Send. This works fine for the first email I send, all calls there after to my SendMail function fail. I know "SmtpMail::Send" is considered obsolete, but we are currently still using VS:2003 with .net 1.1 (I think). I get this error on the second and all following calls: System.Web.HttpException: Could not access 'C ...Show All
Visual Studio BrokenToolboxItem objects: where do they come from?
Is there any way to figure out where a BrokenToolboxItem comes from I have one that keeps getting created. When I drop it on a Form I get an error message. When I catch the exception thrown, by attaching to the devenv.exe process with a debugger, I am able to examine the ToolboxItem that causes the problem -- but it gives no clues. It says its type is simply "Component" and its namespace is System, as if it were a toolbox item just for ...Show All
Visual Studio Tools for Office Enable/disable popups in main menu
Hi; We have an Add-In where we need to enable/disable a couple of menu items based on the location of the caret in the document. As an example, think of the Cut menu item in Edit - it is only enabled if text is selected in the document. Is there any event or any other method where we can enable/disable the menu items just before the menu is displayed. Possibly an event that occurs when the user clicks on the main level menu that will cause it's ...Show All
Visual Studio Installing VS2005 web service on system with TFS/WSS
We would like to install VSS2005 on the same system as Team Foundation Server. I have installed it and am having trouble accessing the server via Internet plugin from VS2005. VSS2005 works and I can access the database on the server from VS2005 using the regular plugin just fine. I enabled the database for Internet access, setup sharing/authentication per Alin Constantin's instructions. I went into WSS server confg and excluded the SourceSafe ...Show All
Windows Forms TCP connections... How many is too many?
Hello all, I'm working on a central lobby server for a game at the moment, it will operate something like an IRC server would. I've decided I'd like to use TCP to handle the network talk but I'd like to hear about any experiences you ...Show All
Visual Studio Document Explorer crashes
Hi, It seems very obvious that this is a continuing problem. I followed some of the suggestions and finally re-installed VS2005. I am actually writing this from inside document explorer. The fix is a temporary thing, but I still get the "document explorer is closing" window error, but when I close out the error message, it leaves the help window. I decided to enter a search topic in the main window and voila, for some reason it d ...Show All
Visual C++ XML reader for native C++
Hi! I'm looking for a small C++ XML SAX reader, similar to XmlTextReader in .NET. The most important thing is that the library is small can be statically linked. Can anybody recommend me anything Thanks in advance! Just look at www.codeproject.com and search for MSXML. You find enough samples there! Also search in the MSDN for MSXML and sample, also there is enough stuff. ...Show All
Windows Forms Winforms
Hi, I'm developing a simple windows form on .NET using c#. The form has a button(button1) that adds buttons (button2,button3........)to the form when clicked at run time. I'm finding it difficult to write the mouseEvents ie. the MouseLeave, MouseClick and MouseEnter events as well as the code for the button1. Below is how far I've gone. I would appreciate your help with this. Thank you in advance. - Paulette. using System; using S ...Show All
Visual C# Checking if a specific handler exists
I was wondering if there was a simple way that I can check to see if a specific handler exists for a control. I know I can simply create and set a boolean variable to true once I create the handler, but I was hoping that there was a simple way, without the use of additional variables, to check whether or not the handler has been created: My control is a TreeView, and is called tvRobot. I create the BeforeSelect handler, tvRobot_Always ...Show All
.NET Development .NET XslTransform xslt transformation
I have an C#/ASP.NET application. All my pages are generated by xml and xslt via the System.Web.UI.WebControls.Xml. The problem is i get this Cannot convert the operand to 'Result tree fragment' . The xlst workes under IE, but not in .Net Here is a sample of the xslt stylesheet: < xsl:call-template name = " select " > < xsl:with-param name = " mainxpath " select = " //EVENTTYPES/EVENTTYPE " ...Show All
