HiddenDragon's Q&A profile
Windows Forms How to compile unrunnable classes?
Hi, Im kinda new to C#. I'm making a simple form that has a couple of panels. I have made these panels separate classes. But when i try to compile the panelclass I get an error from the compiler, "no startadress has been defined for program". Do I have to make a "make file" or something like that Or should I put al ...Show All
Visual Basic Create MDI Application
Hello, I have an MDI form and one regular form. I have a menu. How do I do this so when you hit File -> Open my form, it opens my "form1" Is this easy to do in code Thanks a bunch! :) :) hi am trying to make a new window when i click button from form1. trying to duplicate it self, like making a new window in ie, so am confuesed here is the code am trying fix Private Sub ToolStripButton8_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton8.Click Dim optionsForm As New Form1 Dim o As New Form1 o.Par ...Show All
Visual C++ Automatic closing of command window
I'm a bit of a noob when it comes to VC++ been trying to pick it up over the past few days through some interesting tutorials. Anyways....my problem should (hopefully) be a very simple one. Im trying out a couple of simple programs of the HelloWorld flavour (you know, the basics) and I'm compiling them through VIsual Studio 2005. The problem is that post compilation the command window just auto closes (thats command as in command.exe or cmd.exe however the program actually being run is the exe for my code, obviously) I was wondering if it was possible to make the window stay open long enough for me to actually read the output with the Press ...Show All
SQL Server Poison Message Sample in BOL
Hi, We've been trying to diagnose a problem with service broker's poison message detection and tried to run the sample script in BOL to see how it solved the problem. It appears the example doesn't seem to work correctly, IF (@messageTypeName = '//Adventure-Works.com/AccountsPayable/ExpenseReport') BEGIN DECLARE @expenseReport NVARCHAR(MAX) ;   ...Show All
.NET Development Firefox and Other Browser Support in ASP.Net 2.0
After working hard on developing a website for my company that was user-friendly, and using numerous ASP.Net 2.0 Controls such as asp:Panel and asp:MultiView I have found a serious problem that is still unresolved since the classic ASP era. asp:Panel controls render horribly in Firefox, Safari, IE Mac and other Non-WinIE browsers. I find this is very disgusting that MS still hasn't corrected this problem even when it was evident in ASP.Net 1.0/1.1! I need to find a solution to have ASP.Net 2.0 Correctly render all panels and similar controls. Does anyone have a solution other than BrowserCaps I tried numerous ways of configuring it, but it s ...Show All
Visual C# resource problem
I have added an xml-file (Signals.xml) containting a definition of a dataset to my project in visual studio. I then marked the xml-file as a embedded resource, and everything works fine. I read the xml-file in a class extending DataSet like: this .ReadXmlSchema("Signals3.xml") and everything works fine. When I later add another resource (for instance a background image), I get the following error message: An exception occured while trying to create an instance of MyNameSpace.MyDataSet. The exception was "Could not find file "C:\Documents and Settings\peter\Desktop\Backgrounds\Signals.xml".". Now it looks like visual studio ...Show All
.NET Development Please help me ... Windows Services or Remoting
I have created three windows services in which two services listening two different logical ports continously and one service capture COM ports. These windows services informs the Main Window Application which is also running in different Application Domain or Window Process space. These services and windows application is created in C# .NET My Question is that which is the best way to communicate between these Windows Services running on the same machine (locally). 1. DOT NET Remoting Services 2. Message Queues 3. Through Socket 4. Through Database Reliability and scalibility is the main requirement because this machine act as a server a ...Show All
.NET Development creating server.pfx for SSL communication ?
Hi all, i want to create a server.pfx for client/server communication over SSL. i use this server.pfx file from Mentalis from the WebServer sample : Server Certificate: ------------------- CERTIFICATE: Format: X509 Name: Mentalis.org Team Issuing CA: Mentalis.org Certificate Authority Key Algorithm: 1.2.840.113549.1.1.5 Serial Number: 61D272D9000000000006 Key Alogrithm Parameters: 0500 Public Key: 30818902818100BC7B73D8F2A48B17684E49A1425252FD1D8354E2B3202 B79BE5764EF2ADD6D413AE8F6E327FBFC4FB3F274357FEE7478BB28AE58975F73BE510F49E454566 5B3B3443FD52C27A0DF6B6D8A3AAB5A42C3DEC14CB9A85955C57A99661FB99FE08363E ...Show All
Visual C# WebRequest / WebResponse
I have a web site that I log on to everyday. It shows a list of files that I have available to download. I can click on the filename and save it to my harddrive. After I download the file, there is a check box by the filename for me to check and then click the DeleteCheckedItems button to have the file deleted from the list of files. I was able to automate the download of the files, but would like to automate the checking the check box and clicking the delete button. Does anyone know of any sample code that some something like this You could try getting the HTML DOM Tree first and then set the appropriate ...Show All
Software Development for Windows Vista Deriving, CodeConditions and HandleExternalEvent Activities.
Hi all, Thanks to great help previously, I'm up and cooking with my derived StateMachineWorkflow activity. Hence - another problem. In the 'dervivedWF' I want to call a common 'RunCodeCondition' method from a set of IfThenElseBranch/CodeConditions - however, the method does not display in the drop down Funny enough - from a HandleExternalEventActivity, part of the bindings for input parameters..... inData *IS* selectable for a parameter. I wouldnt have thought I'd have to create a dependant property for this (Mind you, it doesnt compile at the moment - non descriptive error - just fail, so it all could be wrong) Anyone done this or sim ...Show All
Visual Studio Express Editions Application.Run vs Form.Show vs Form.ShowDialog
What does this new addition to the basic C# project do exactly I'm having major problems with my existing code to do with cross-thread operations and also an intermittent bug in the debugger. I can't seem to get any questions answered about either problem. Does this Application.Run statement perform some new fundamental operation I am unaware of To demonstrate the bug, simply create a new WindowsApplication and replace Application.Run(new Form1) with Form1 f = new Form1, Form1.Show(). Instant intermittent crashes. Could someone point me to a demonstration of how to run multiple independent Forms under the new framework maybe Dammit! ...Show All
Windows Forms Count Panels in StatusBar?
How can I count number of panels in a StatusBar control StatusBar1.Panels.Count did work. Could not find anything in IntelliSense though. Any reason why it has been decorated with EditorBrowsable(EditorBrowsableState.Never)] Thanks ...Show All
Visual Studio Team System error when install december CTP of TFS
I got an error message when install December CTP of TFS. It says: "D:\program files\Microsoft visual studio 2005 team foundation server\tools\TFRSconfig.exe " /setup /install /s chatsql2 /u "NT Authority\Networkservice" /buildInIdentity /l 1033" returned non-zero value:-2147220957. chatsql2 is the data tier machine. Do you have any idea on this Hi Jemmy - Posting setup issues in the Setup and admin issues forum would yield better responses. This post seems "similar" to the issue you are mentioning, however the error is probably occurring in a different part - but the workarounds mentioned for the DT might be s ...Show All
Visual Studio Team System Error while Building a Setup Project
Hi, I m trying to Build a Setup project(InstallShield) in TFS.When i build it ended succesfully with no error, 1 warnings ,no result.The warning message is: warning MSB4126: The specified solution configuration "Debug|Any CPU" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration . I try to build with other configuartion like "Release!Any CPU/x86/Win32" but no result.My setup is configured as to run only ...Show All
Visual Studio Exec task with ContinueOnError=true
I'm using an MSBuild build script as part of a continuous integration scenario. Part of the script is a target that runs unit tests with NUnit, using a batched item group that specifies test assemblies. The target contains an Exec task that runs the test runner application. Since I want to run all of the tests, even if some of them fail, I specify the ContinueOnError option on the Exec task. The problem is that even though some tests fail, MSBuild sets the DOS errorlevel is set to 0 after the build finishes, which screws up the continuous integration server (it thinks the build succeeded). If I change ContinueOnError to false, then it sets ...Show All
