8,298 Topics

Member Avatar for
Member Avatar for msr

Hello, In order to introduce myself to C# and, in particular, Visual C# I decided to make a small program with 'windows forms'. At the moment I have some questions: 1) Im using a grid (dataGridView). I'd like a menuStrip (I dont know if is exacly that component) to appear …

Member Avatar for msr
0
141
Member Avatar for thilinam

HI, I am a Beginner to C#. I have knowledge in C++ programming. please give me a reference to learn C#.

Member Avatar for ddanbe
0
90
Member Avatar for learningthings

Hi! I have a grayscale image in my pictureBox. I want to box up the white pixels in the image using the rectangle. Can anyone teach me how to write the code. Thanks in advance .. Best regards,

Member Avatar for sknake
0
1K
Member Avatar for ITech

I have created a windows application using C#. the problem is fairly simple. I doono how to refer to the Application path in c#. In Vb we can use App.path to refer to the Application path My C# code for opening a report is as [code=c#] public partial class frmSpaBill …

Member Avatar for serkan sendur
1
353
Member Avatar for ItecKid

Hello, I am writing a C++ program to find the largest such number such that the square root of that number is less than or equal to a fixed number, set by me, like this: [code=c++] #include <stdio.h> #include <math.h> int main (void) { long fixed, param, result; result = …

Member Avatar for ItecKid
0
125
Member Avatar for momo_rose

i need login code in my project. in my project two different category of user one is administrator and other is data operator. both have to redirect different page after login. my problem is that how to login the both user on different page .

Member Avatar for Mongz
0
88
Member Avatar for itslucky

Hi, My Dear Friends i have Develop a Inventory System in C#, now i want to print the Reports, But there is no link for Crystal Report in C# Express 2008... Please any body tell me that what should i do to get the crystal Report to print out the …

Member Avatar for Ramesh S
0
103
Member Avatar for sydneyram

I am trying to accomplish a Master Detail Display here. The master item is ProductName and Child items are the details of the Product. Example: Dell Desktop V305 - Model: Black - 23877487y24y - Mother Board - Intel .... - RAM - 3 GB DDR HP Printer - Ink Jet …

Member Avatar for John A
0
142
Member Avatar for tux4life

Hello, as promised I updated my stod-function from [URL="http://www.daniweb.com/code/snippet1147.html"]this[/URL] thread ... Enjoy !

Member Avatar for tux4life
0
553
Member Avatar for tux4life

Hello there, I've written a C++ function 'stod', which converts a C++ string to a double ... You're free to use this code for EVERYTHING you want ... There's only one thing which I'm not appreciating: [B][COLOR="Red"]It's not allowed to sell this source code to anyone ![/COLOR][/B] The usage is …

Member Avatar for tux4life
0
4K
Member Avatar for ddanbe

Although there is little need for any sort algorithm in C#. Every collection class has a sort method, so why would you wanna write one for yourself? My guess to learn and see how it is done. Well her are implementations of two popular sorts. The arrays are integer but …

Member Avatar for subtercosm
0
837
Member Avatar for ddanbe

Visual Studio is a great tool to use. But for beginners like me a few years back, it was a bit overwhelming and confusing. You got the feeling you lost all the control. VS has it’s special ways of doing things with partial classes and so on. So lets get …

0
150
Member Avatar for ddanbe

Encryption has many issues. It can be very simple or very complex. I personally don’t have that many secrets, but when the company I worked for wanted to encrypt something I used the following : XOR ! What is nice about xor is that you can use the same method …

Member Avatar for Ramy Mahrous
0
596
Member Avatar for ddanbe

Class to convert between Celcius, Fahrenheit and Kelvin temperatures. Set one temperature and automatically get the other two. This class makes use of properties. See the code snippet for details. A short main program is added to exercise the Temperature class by printing a conversion table between celsius and fahrenheit.

Member Avatar for ddanbe
0
2K
Member Avatar for ddanbe

If you ever want to get information about files stored in a particular map or directory, you can find out how it is done here. With a little modification you could turn this snippet into a DOS DIR-command or a UNIX(LINUX?) ls-command.

0
220
Member Avatar for ddanbe

[TEX]Solve an equation of the form Ax^2 + Bx + C = 0.[/TEX] The class is commented, but if you have any questions don't be affraid to ask. You may exercise this class in a console application with the following snippet : [CODE]QuadraticEquation z = new QuadraticEquation(1, 3, 3); z.Solve(); …

0
781
Member Avatar for toraj58

[B]Sometimes it is good to sit back and reflect on life[/B]. More specifically, you can sit back and reflect on yourself. Often you will discover information that you didn’t realize about yourself. [B]it is possible to have a C# program reflect upon itself.[/B] You can use such reflection to learn …

0
149
Member Avatar for subcom

[B]Introduction[/B] We can use Microsoft SOAP protocol to transfer any files between client and server.It's easy through firewall and also it cross flatform. [B]Background[/B] I was going to develop an mobile software on pocket pc,but I found there were tiny resouces to use on mobile operating system.finally,I was finding Web …

0
544
Member Avatar for subcom

[B]Introduction[/B] We can use INI file to auto generate the database connection string. [B]Background[/B] It can be used in Webform and winForm.

Member Avatar for sneekula
0
347
Member Avatar for Shalvin

Serialization is the process of saving the state of an object into persistant medium. BinaryFormatter class is used for serializing and deserializing an object. HybridDictionary is optimized for key-based item retrieval from both small and large collections.

Member Avatar for belynmoon
0
261
Member Avatar for Shalvin

Though .Net classes are vast and versatile at time you will have to resort to Win32 API calls for accomplishing certain tasks. The following code shows a simple example of invoking a Win32 api. The best way to use Win32 apis is to encapsulate it in a class module. The …

0
468
Member Avatar for Shalvin

TreeView was one of my favourite control in COM. It is well suited for creating Chart of Accounts, Hierarchical data and the like. Though there is a tree view in .Net I find it less flexible in comparison to COM TreeView. The issue with using COM TreeView in C# is …

0
227
Member Avatar for vegaseat

A short C# code snippet to get the US Naval Observatory Master Clock Time from: [URL]http://tycho.usno.navy.mil/cgi-bin/timer.pl[/URL] The snippet displays the raw HTML code with the time infomation and then extracts one specific US time zone.

Member Avatar for Mustafa Laith
0
685
Member Avatar for vegaseat
Member Avatar for vegaseat

C# has two types of strings, one is immutable and the other, the class StringBuilder, is mutable (dynamic). I just wanted to hang a short code snippet out there to show you some of the typical operations.

Member Avatar for varagpraveen
0
192
Member Avatar for vegaseat

I followed Lardmeister's smart hints about creating templates with VC# 2003 and using SnippetCompiler.exe to write and test the rest of the program. It also allows you to build the executable (only 7k in size). The algorithm is from one of my Python snippets I wrote a long time ago. …

Member Avatar for Ene Uran
0
1K
Member Avatar for RwCC

The following is a simple painting program. It uses Windows Forms and will allow you to draw whatever you want. You can also include code to change the colour or size of the brush via a right click menu by using code such as this: [CODE] MenuItem mi = new …

Member Avatar for Ali.M.Habib
0
468
Member Avatar for nanodano

This code snippet actually contains a few nifty things. There are two functions, hasVisited() and main(). hasVisited() makes use of a very handy function for CGI programmers: getenv. You can see I use it to retrieve REMOTE_ADDR which is the person's IP address. In main() it gets the count from …

Member Avatar for manutd
0
262
Member Avatar for Lord Soth

--- Basic Datatypes --- --- Form Management --- --- Data Access --- --- Component model ---

0
744
Member Avatar for vegaseat

Remember the Spirograph? It used geared circles to create some rather artistic geometric designs. This program uses triangles to follow in the Spirograph's foot steps. The math is rather simple, just a couple of sine and cosine functions, also the ubiquitous for loops, everything wrapped up in the using() statement. …

0
174
Member Avatar for vegaseat

Many moons ago I wrote a Delphi program that could tell the exact character in a ListBox, as you clicked on it with a mouse. I found a little info on the NET that lets you get at least the item in a ListBox using C#. I made it work …

0
267
Member Avatar for vegaseat

Shows a basic way to create a form with a wallpaper image on it. Also shows how to add a transparent label to blend in with the wallpaper. Getting the label to be transparent wasn't all that commodious! The wallpaper is generated using a texture brush and bitmap image. The …

0
3K
Member Avatar for vegaseat

Sooner or later a Csharp snippet had to appear. This one builds a form containing a set of buttons. A bitmap drawing area is used to draw a series of circles with random color, radius and center location. Your creation can be saved as a jpeg image file. You can …

Member Avatar for borjelewin
0
3K
Member Avatar for Silvershaft

Hey all! I've been learning C++ like about over one month actively now and I am keen on the language. I am considering to buy a book, suitable for beginner, as criteria I want writer to know what about he/she writes and explain all clearly and understandably by beginners. I …

Member Avatar for tux4life
0
99
Member Avatar for sydneyram

I am trying to accomplish a Master Detail Display here. The master item is ProductName and Child items are the details of the Product. Example: Dell Desktop V305 - Model: Black - 23877487y24y - Mother Board - Intel .... - RAM - 3 GB DDR HP Printer - Ink Jet …

0
281
Member Avatar for serdengil

I am a new C++ user with emacs. Our Prof. wanted us to create a prog. which basically write the positive which is entering ascending order. I can do the ascending order program but he wanted us to make user prompt to enter the number in ascending order. The user …

Member Avatar for mrnutty
0
166
Member Avatar for zimis

Helo, If tcp connection with server is lost, should program close current socket with close(socket_fd) and then use connect(....) again, or use same socket to reconnect with connect(....)? Or when connection is lost current socket is destroyed automatically?

Member Avatar for Salem
0
72
Member Avatar for shakatra

Hi all, I am novice in the c #. Having completed the Application contains SQL database. But when I run on another machine gives me an error message as follows: [url]http://img103.herosh.com/2009/09/02/819895428.jpg[/url] Please note that I have the installation of the .net framework, And the connection string I used is: SqlConnection …

Member Avatar for shakatra
0
93
Member Avatar for khemalatha

Hi all, I am using .net framework 3.5 by using C# to configure outlook 2007 I need to import all categories from outlook 2007 to my application particularly on dropdownlist, i want to listed all the categories from outlook to one combobox in my application, i don't know how to …

Member Avatar for DdoubleD
0
170
Member Avatar for TotallyBroke

I have a DX scrolling banner running at the bottom of the desktop. The banner renders, as its backbround, anything beneath it. The problem is that if the background is renewed, I get a copy of the scrolling banner as its own background, even though I've made it invisible before …

Member Avatar for TotallyBroke
0
3K
Member Avatar for iammfa

hi, i'm beginner in c++ and i'm using SDL with it, i started with beginner SDL tutorial, the 1st lesson learning me how setup SDL, i don't understand some steps from step 11 to 13, i hope some guides this a link: [url]http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet0508e/index.php[/url] regards iammfa

Member Avatar for GDICommander
0
143
Member Avatar for Jacobxx

I'm using a new book this semester for my datastructures class and apart from the bad writing, he has come pretty confusing exercise questions. I do not need code, just to know what he is referring to. [QUOTE]Write a template function count that returns the number of occurrences of value …

Member Avatar for Topi Ojala
0
79
Member Avatar for NargalaX

Hey, I found a cool class online for finding certain colors in a designated rectangle around your mouse position. Its optimised for speed, and supposedly works, but when I try compiling it I get around 32 errors. Heres the code [code] public static Point PixelSearch(Rectangle rect, int PixelColor, int Shade_Variation) …

Member Avatar for NargalaX
0
971
Member Avatar for timmasarthy

[COLOR="Red"][I][/I][/COLOR] hiiiiiiiiiii ds is kiran as a software tester i`m changing my platform to dot net i need ur help how to get a job in Malaysia and pls support me plsss

Member Avatar for sknake
0
37
Member Avatar for wingers1290

Hi, I am extremly new to C# and whilst I have a basic understanding some of the more complex answers require ample explaining. What i am trying to do is use data stored in an microsoft access database and also write to it from the c# program, i do not …

Member Avatar for kvprajapati
0
76
Member Avatar for the reaper

i managed to save up enough money and order the book "Accelerated C++" today (paid a good 60$)..now my Q. is would this book help me learn c++ , even if i have no prior knowledge in c++? (i have a basic understanding in C up to arrays and functions, …

Member Avatar for jencas
0
192
Member Avatar for NargalaX

How would I be able to find a certain pixel on any screen under a certain RGB, and then get its x y coordinants? Thank you!

Member Avatar for sknake
0
5K
Member Avatar for Shaitan00

I have a class (NamedPipeManager) which has a thread (PipeThread) that waits for a NamedPipe connection using (ConnectNamedPipe) and then reads (ReadFile) - these are blocking calls (not-overlapped) - however there comes a point when I want to unblock them - for example when the calling class tries to stop …

Member Avatar for Salem
-1
470
Member Avatar for aroopv

Urgent Help needed, I am updating an access database using C#. Everything works fine except when there are multlines in text box controls, update command doesnot update these textboxes to text field or memo field. On screen I have a grid from the same datasource as that of the textbox …

Member Avatar for sknake
0
208
Member Avatar for crys0011

Hi everybody, I'm an engineering student. Hee i would like to discuss about some basic and simple C++ interviews questions. I thnk the persons interested in it will participate. Ok can i ask one question? What are the differences between C language and C++ language?

Member Avatar for mrnutty
0
127

The End.