Answer Questions
Javierm Noob: Nested For loops Example
Can someone please tell me how to Convert this BASIC snippet into C#: FOR X = 1 to 10 FOR Y = 1 to 10 NEXT Y NEXT X Thanks in advance. for ( int i = 1; i <= 10; i++) { for ( int j = 1; j <= 10; j++) { } } Thank You Sir. ...Show All
Dmitry Polyakovsky How do I calculate the number of days between two dates in C#?
Does anyone have a code sample that might help This code was very helpful! I've always reverted back to the Delphi TDateTime class to do my date calculations, but now that I know about TimeSpan I can do it all in C#.NET. Thanks! Here's one way: DateTime now = DateTime.Now; DateTime then = new DateTime (1, 1, 2005); TimeSpan diff = now - then; int days = diff.Days; Here' ...Show All
jezekjkr Write to C# Immediate window in 2005
How do we write to the immediate window from the code window. Similar to "Debug.Print" in VB. Thank you, Paul soli3d, Check to ensure that you're checking the IDE's Output tab is visible. The immediate window won't print anything sent via a Debug.Print however the debuggers Output pannel should show your output. To ensure you're in the Output panel of the IDE click on the Main Menu b ...Show All
EdwinLam Question regarding Settings with custom classes
Hi Forum, my problem probably is a bit akward, but I'm trying to find a solution for this: I encounter XML Elements in a Word Document. I don't know which Schema will be attached to the documents, so I don't know upon design time which Elements will occur. Based on the XML Element's BaseName, I want to be able to decide which class to instantiate. So fi, if XMLElement <Foo/> occurs, I want to instantiate class "FooClass" ...Show All
Ricardo Oliveira Converting RGB to HSV
Hi again! I am coding a color picker in C#, and I have run in to a problem. I want to convert RGB to HSV. I have searched google many times without finding an answer to the question. I hope that anyone else here knows how to do it. So Would you mind telling us what you found thanks Search The Code Project with 'AdobeColors', and you'll get the solution. From th ...Show All
NETknightX Printing Document
I want to print a form by writing the content to the word with single click and Preview for that document. lumakar_challa wrote: I want to print a form by writing the content to the word with single click and Preview for that document. What part of that are you specifically having a problem with ...Show All
sql dev Automated Data Entry/Retrieval from Remote Web Sites
We have several remote customers who, in order to save time, require us to interact automatically with their web sites (automated data entry, data retrieval, etc.) yet will not allow us direct access to their databases or web hosts. And these customers do not provide Web Services. In the past we have used the AxWebBrowser web browser control to build 'wrappers' around our customer's web sites - this worked well UNTIL we migrated to VS 2005 ...Show All
Yeow# makeing a packet sniffer
does anybody knowes the sniffer concepts.. point to some tutorials Please refer to the following link http://www.v2softwares.com/products/sniffer.aspx Its a product by v2Softwares which comes with FULL source in VB.NET and a Packet Capturing Library again with full code in VB.net. The latest version also supports Plugins using reflection. although its a complete simple sniffer ready to use, you can extend the functionality and ...Show All
Fabita How To Serialize an Object using application settings
In my application, I need the ability to store user defined data. My desire is to use the new application Settings mechanism (.NET 2.0) I have been experimenting with the various methods of doing this... Initially I used the IDE's application\properties\settings method where you specificy the settings in the gridview and VisualStudio creates the wrapper class for you. I had success doing this but when I tried to serialize the data inside o ...Show All
Peter Sollich Voice over IP in C#
Hello guys, i am trying to gather ideas as to how to implement a C# 2.0 library for Voice Over IP. what is the general idea of implementation, Like technical overview, What do i have to do first, to capture sound , then compress it (what is best ways), and then sending it out as TCP or UDP stream to the server , and then distributing it to the listening clients in a multicast, (not loop based) any help would be appreciated ...Show All
egeorge Is XML Config files for project specific settings the best approach...
Hi all, I have the scenario where I have a Class (assembly) that applies settings that are specific for each proejct that we rollout. Now, the question I ask is, where is the bet place to store these specific settings For example, we will be rolling out to mobile devices, where each device has its own set of features, so we need to cater for them, as well as project/cleint specific features. Is it best to store these details in a XML config file ...Show All
CodeAnger Detecting Internet Connection???
I want to make a program that will email to a given address automatically. I have setup everything required to send the email, like SMTP server etc. Now the problem is the program has to send the email only when the computer is connected to the internet. Hope u understand what I mean. Now can anybody tell me How Can I Detect Whether or Not the Computer is Connected to the Internet at some Instant Thanks! http://www.vsdntips.com/Tips/VS.NE ...Show All
AssafO Implementing a File System
Hello everybody. I need to implement a filesystem on a diskette, with operations such as format, copy files, directories, etc. I need to implement my own FS architecture, so I need a way to access directly the data blocks on the diskette. How can I do that Another option that I had was using linux, since all devices are treated like files, I would only have to open, read and write to the file /dev/fd0, but I thought it ...Show All
plavun Use Access with Automation, from c# program
Hi to all! for this my first post i ask information on an argument about wich a very poor documentation on the web exists: the office automation. My problem is about a windows c# program that manage some Access data using classic DataSet. In the same access mdb file where the tables are stored i also have some access reports that i want to open in preview mode from the C# program. unfortunatel ...Show All
Traian separate classes
hi, I want to separate group of classes to different library (dll) from main file, how can i do it thanks You need to add a class library to your solution and then add a reference to that library. To do this, do the following: 1. Open your solution 2. Choose File -> Add -> New Project 3. Under the Visual C# node, choose the Windows node and select Class Library 4. Enter a name for the library and click OK 5. In Solution Explorer ...Show All
