Answer Questions
funkpuppet Weird Condition
I have the following code public ITileProperty [] FindMatch( ITile T1, ITileProperty T1P, ITile T2) { if (T1P is CityProperty == false ) return null ; ... The oddity, is that T1P is of type CityProperty but the if condition is true, and null is returned. I have also tried "T1P.getType().equals(typeof(CityProperty))" and it still causes null t ...Show All
Ilia Binary Data & .Net Sockets, URGENT
Hello every one, After 2 hard week of work, finally i accomplished an reliable server and client classes which look like the VB Winsock, those 2 classes are reliable, also server enable multiple connections, as i test it accept 5000 connection and Handel them, The base is MSDN & good socket samples. When i try to create an demo app. on these 2 powerful classes, all goes fine, i faced an problem in sending files, as I'm using one channel only ...Show All
DaveHorner Windowsform : hideframe with transparency
Hi, I've made a form with a label which is transparent. I've also got a contextmenustrip with an item that makes it possible to hide the formframe : this .FormBorderStyle = System.Windows.Forms. FormBorderStyle .None; When I execute this code, the frame hides, but the complete forms moves up the height of the frame (I can live with this), but also the background (which is transparent) moves up (without repainting). I don' ...Show All
kizelli reading from resources in project
Hi guys :) i need help with reading from a resource file in my project, i have tried searching through the MSDN and Knowledge Base but i didn't find anything. I have 2 Resource files in my project. Can someone please help me with this Thanks in advance. Thank you, but i am stil having problem with opening the file since it is embedded in the project. The code i found over there, helps with reading from a file outside the project. Ho ...Show All
Virtuss I can't type in the IE address bar
I can't type in the address bar of IE 6 anymore. I can access any site by using my favorites. Is there anybody can help me with this I have the same problem with a machine I just bought, shipped with a fully updated Windows XP SP 2 with all security features on. I ran Windows Defender and it found nothing. I installed IE 7 Release candidate in a desperate attempt to fix this, but it continues. Mozila browser works. Any suggestion but rein ...Show All
John.NET Calculator
I want to create a simple calculator... I need one text box, and some buttons; the user enter a number to textbox, and then when user press the + , user can write the second number, and when the user click the = the result will appear in same textbox... How can I do that What is the wrong with this code ||=> string no1 = textBox1.Text; textBox1.Text = " " ; string no2 = textBox1.Text; double a = Convert .ToDoub ...Show All
irtaza Concurrent File Upload Handler Access
I have an application that utilizes file upload and calls another aplication that handles uploaded file. I want file upload handler to be placed in a queue. In other words, I want that handler to be accessed by only one user and if another user accesses that handler/uploads files at the same time, I want the file upload handler to wait until the previous upload is complete. Do I need to user threads What is the way to lock the process and relea ...Show All
Ngoc Bui multiple pages in windows form
you saw the book view in Ms Word for sure.(multiple pages not in print or report) how we can create this kind of view in Visual Studio .net which container control must be edit Virtual Studio .net Whats this. Can you explain your question in more detail. Are you talking about TabControl I want to have a simple multiple pages data in my form. I have a data reader which read feed my form by ...Show All
William Klein Event Timer
Hi I am writing a digital waveform generator in C # to drive a D to A board. I need an event timer like the one for windows forms. The one in Windows form would work fine if it would fire the events fast enough. The timer needs to generate periodic events in times less than one mSec. Any recommendations C# new bee Dave Thanks I'll check it out Dave l ...Show All
Vince Do How to Save datagrid back to datatable then back to text file
Does anyone know what is the best way to save changes made to a datagrid back to the datasource so I can save it back to the text file I have an application that reads a TSV(Tabbed seperated file) file into an array then that arrary is stored inside a datatable. Then that datatable is binded to a datagrid. The user is able to make changes to the table but I want to be able to save the changes back to the datasource. I'm half way there I think ...Show All
Yuelin Are strings any easier in the new C#?
I stopped using C# about a year ago. I hated the complexity of using strings. Gone were the days of MyString = "Hello"; I had to now make an object. String manipulation, which was once easy using MID, RTRIM, REPLACE, etc., now is tedious. Anyway, I was wondering if the newest version of C# has made it any easier I think the OP must have misunderstood how strings worked in C#... ...Show All
Mike Eheler I cannot ADD a new class or some other object into my project
there is a dd_vserror80.txt file, but with no text in it. I uninstalled every Visual Csharp, Framework, Framework Hotfixies, Jsharp redistributable, Framework 1.1SDK, SQL sevrve, MSDN2beta and than, I installed only the framework1.1, its update and hotfix. than the Csharp, with MSDN2, SQL and framework2beta. I didnt install Jsharp redist, Framework SDK. Than I started Csharp and everything worked. There were that items, but I worry that they won ...Show All
Brad King dropdown item ID
Hi, I am using this code to populate data into combobox but i was just thinking how can i assign an id to each item in the dropdown list like the primary id for example because i want to save both id and name of the company.. // fill the insurance company; VDBAdapter.SelectCommand = new VistaDBCommand("SELECT account_name AS insurance_account FROM accounts WHERE account_type = 'INSURANCE' ORDER BY account_name", VDBConnection); VDBDatas ...Show All
NIck Chance Creating an Excel file from a DataSet (no physical database)
Hello everyone, I'm currently working on a project (this is my first real program in C#) and I'm a little stuck on this part of it. To keep it short, the program accepts input from the user (obviously) and that information is put into a dataset in memory. The user can then save the information to an XML file. This XML file serves 2 purposes (to save the information and to retrieve the information). The XML file can be sen ...Show All
ShyamN MS How to reference GAC assemblies using VS2005- how funny is this.
I've just discovered how I add a reference to an assembly in the GAC from a C# solution using VS2005. I find it rather incredible that it is this difficult to do. And I really don't think I've missed anything here. 1. Go into Registry and disable the GAC cache viewer: HKLM\SOFTWARE\Microsoft\Fusion, DisableCacheViewer- set to non zero. You have to do this as the cache viewer prevents you from copying assemblies out fr ...Show All
