4,588 Topics
| |
[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. | |
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. | |
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 … | |
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 … | |
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. | |
Just a quick look at the way C# writes and reads text files. | |
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. | |
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. … | |
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 … | |
--- Basic Datatypes --- --- Form Management --- --- Data Access --- --- Component model --- | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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) … | |
[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 | |
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 … | |
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! | |
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 … | |
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 … | |
Hi, Our project is based on bluetooth technology . the PDA is communicate with PC via bluetooth. So that what should do for write code in PDA as well as PC. | |
Hi all, I'm pretty fluent with C#, but I was wondering what everyone's recommendations would be as far as an intermediate level book for C#. I pretty much have a grasp on the language, there's just some small details that I need to enhance my knowledge on: some interfaces, class … | |
Hi, I want to have a tree view control with tables as treenodes instead of labels that. For this I cant use third party controls even though they r free So I want write Owner drawn treecontrol can anyone give me the links to any tutorials that explain this concept … | |
hii... :-/ can u plz get me out of the problem..!!!!1 m using visual studio 2005. whenever i click an update button to update values of a particular column of a gridview, all the columns gets updated with the same values. eg. if the 2nd column of 1st row with … | |
Hi, I need to create two tables in a Ms Word because I have two gridviews. But the output became "table in table". How can I "separate" them ? [CODE] Word.Table wt1 = oWordApp.Selection.Tables.Add(oWordApp.Selection.Range, GridView1.Rows.Count + 1, 2, ref missing, ref missing); Word.Table wt2 = oWordApp.Selection.Tables.Add(oWordApp.Selection.Range, GridView2.Rows.Count + 1, 7, … | |
We have a c# program that when you type in a word or whatever it finds it in the database and opens up in an accordian. In the text that it opens up which is the description, we need to have other links within that text that you can click … |
The End.