Answer Questions
TheCompWiz Solution files
How do I create 2 or more than 1 solution files for the same project file in the same folder. I actually need one for 1.1 framework and other for 2.0 framework. Thanks! Visual Studio 2005 projects are in a different format than Visual Studio 2002/2003 projects, so you are not going to be able to do this even if you could create different version solutions in the same folder. However, Microsoft have announced that are developing going ...Show All
uygar class arrey and vs 2003 problem
am doing a c# winform using vs2003 am trying to make a program that lets the user slecet more than on row in a datagrid and copy it and pass it to othere datagrid so i mad a class to hold my data and mad an arrey from it like this: [code] namespace WindowsApplication9 { /// <summary> /// Summary description for Form1. /// </summary> public class Form1 : System.Windows.Forms.Form { private System.Windows.Forms ...Show All
Kumona Socket programming
Hi. I want to wite a applcation that work on a LAN.this a server/client app, that client send a task for server and server access to database and run it on database(for example a sql statement). then I want to send the result of execution of that on database to client that may be a boolean or datareader or int or ...but client don't know that reciving info is bool or int or ...(in other words,all of cases send by a same way). plz help me. ...Show All
Tony Danby System.Web.UI namesspace compile time error
I am getting this error out of "using System.Web.UI;" declaration: The type or namespace name UI does not exist in the class or namespace 'System.Web' (are you missing an assembly reference ). I am using Visual Studio 2003 C# .NET designer. My system is Win2K Pro. I want to ultimately use class TableDesigner in my application. Accoring to the .NET Framework Class Library the requirement for TableDesigner class is NAMESPACE (!) System.Web.U ...Show All
Todd Gill Usercontrol
I made a user control that has a web browser on it. I then added to a form. during run time i get this error " ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment." how do i change the curent to a single theareded apaartment Cisco hank you for your help i got it now. Cisco ...Show All
Peter Theill Change size of MainForm (with nice effect...)
Hi there, I'm sorry for the bad description in the subject line, but how am I gonna explane this... I want to change the the size of the MainForm. But I don't want it do be changed just like that... with a click and "boom" it's bigger. I want a effect. Just like those powerpoint-effects. You know what I mean Not as many, though. Just, that makes the size changing slower. Something like: for (i=0; i < 760; i++) { this.size += ...Show All
VMan Casting an enumeration that has a defined type..
public enum foo : ushort { foo, bar } ushort test = foo.bar; Cannot convert from 'Test.foo' to 'ushort' Sure, I can make variable of type foo, but I'm encoding the value to a network stream, so I want it as a ushort. The thing is, I specifically told the compiler the enum is of type ushort, so why do I have to typecast it Brian Kramer wrote: Well, it doesn't sound like you need a lecture ...Show All
martinbl Converting code from VB to C#
Does anyone know of any tools (preferably free) that can convert VB code to C# code Please post any links to such tools in this thread. Thanks in advance. We produce Instant C#, which converts VB.NET to C#. A free Demo Edition is available at www.instantcsharp.com David Anton www.tangiblesoftwaresolutions.com Instant C#: VB.NET to C# Converter Instant VB: C# to VB.NET Converter Instant C++: C# to C++ Converter Instant J#: VB.NET to J ...Show All
crp2k4 How to import a dll made in C++ Win 32
Hello Everyone, I have a dll which is made in Win 32, as it is not an assembly neither COM can't be used as a refrence, so I have to Import it.... Can someone tell me how to do it...As when i do it asks for the entry point and secondly how to call the functions from that dll.....A brief example will be highly appreciATED... Thanks, Harsimrat Awesome, just one more clarification..I know its Dumb.... ...Show All
V&#237;tor Ferreira Disable default close button on Windows Form
Hi, Is it possible to disable the default close button if I set the FormBorderStyle to FixedSingle. I know it can be done setting FormBorderStyle to None. Thanks. Buru. Hi, it doesnt works. Buru. Hi, The statement should work. You could try setting the ControlBox property in the designer. Check on the forms property. By doing this the minand max button would be hidden includ ...Show All
Andre de Castro requiring a override method to call the overridden method
I'm trying to fiqure out how to require a override method to call the method that it overrode. for example: public class test { public test() { } public virtual void whatever() { // do something here you don't want to be done even though the class gets overridden // I know its not the way it should be done but I inherited this and have to get it to work } } public class ...Show All
Daya123 Copying files in CSharp
What I need to do to copy, in CSharp, one or more files from one directory to other I could make it in VB using the method "FileCopy", but I couldn't did it in CSharp. Beneath the command in VB FileCopy(txtSource,Text, txtDestination.Text) Thank you Use the File.Copy method. ...Show All
Snir Beginner Question - C# Exception Handling - Can't Understand MSDN Example
If you really want to kill the process, use Environment.FailFast() instead of Application.Exit(). More info about FailFast can be found here: http://blogs.msdn.com/kcwalina/archive/2005/03/16/396787.aspx Rephrase last sentence: what is the value that this Environment.FailFast is supposed to be adding when I can just use Environment.Exit(); When I experimented with FailFast I called it like this: Envi ...Show All
Yiannis Piros Strange BinaryFormatter Version Incompatibility Exception?
Hello All: I am getting the following exception: "Binary Formatter Version Incompatibilty, Expected Version 1.0 Recieved version 544437358.543452769" this occurs when attempting to deserialize an object in winforms I can serialize the object fine... no exceptions any ideas on this Thanks Desdacato Hello All: Sorry should have posted this to C# forum not sure yet if it matters Desdacato ...Show All
David Gwynn- Please read This!!! Buttons question
Ok i make a buuton for every process that has the MainWindowTitle.Length>0 like This:: int x = 0; // X is the X coordonate for pozitioning the buton Process[] pros = Process.GetProcesses(); foreach(Process b in pros) { if (b.MainWindowTitle.Length > 0) { buton = new Button(); panel1.Controls.Add(buton); buton.Name = "buton"; buton.Text ...Show All
