Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
55% Quality Score
Upvotes Received
13
Posts with Upvotes
12
Upvoting Members
11
Downvotes Received
11
Posts with Downvotes
10
Downvoting Members
9
9 Commented Posts
3 Endorsements
Ranked #496
Ranked #914
~84.5K People Reached
PC Specs
win 8.1
Member Avatar for Geekitygeek

It is a common design in data handling applications to move from form to form to show the user different information. I have seen any number of different attempts at this on the boards so i thought I'd throw together a short snippet to show a cleaner OO way to …

Member Avatar for jacss1x
1
3K
Member Avatar for ddanbe

One of the most, if not THE most, beautiful formulas in math, is from Euler: ![Euler_e_pi_i.png](/attachments/large/1/b32f45540a27b3efc328d14c60ee286c.png "align-center") It combines in it a relation between the number **e**, the number **Pi** and the complex number **i**, plus the basic math symbols 1, +, = and zero. Is that not amazing? More …

Member Avatar for JOSheaIV
1
608
Member Avatar for mrbrightside10

I'm so confused on this, can anyone please give me a hand. Thank you in advance. A program that uses the numbers from 1 - 12 and output the number, the square of the number, the cube of the number and finally the square root of the number. At the …

Member Avatar for ddanbe
0
1K
Member Avatar for J.C. SolvoTerra

Oh No, not another LockBits demo. Well hopefully this demo may also give you a little in site into actually playing with, and calculating some simple effects as well as understanding the advantages of LockBits as apposed to GetPixel and SetPixel. # A Useful Note. # It is important to …

Member Avatar for J.C. SolvoTerra
5
659
Member Avatar for cgeier

I will be showing how to pass data between two forms in VB .NET. I will be using two forms, two classes which we will define, a delegate, an event, and an event handler. It is my first tutorial and is a bit long because I wanted to make it …

Member Avatar for kplcjl
4
5K
Member Avatar for ddanbe

I'm a great fan of extensions in C#. See also this previous [snippet](https://www.daniweb.com/software-development/csharp/code/467292/squaring-an-integer-with-extensions). Extensions are really simple to use. Start with adding a static class containing static methods. Note the special use of the keyword `this` in the Times extension method. The next code snip is how you could use …

Member Avatar for kplcjl
0
381
Member Avatar for vadarfone

Hi guys, New to this place, so hi to all! OK, I am also new to C# so please excuse my n00b like questions. So, my first question; I am writing a kind of Notepad alternative. I want to have the ability to have the Textbox opacity set to 0, …

Member Avatar for kplcjl
0
5K
Member Avatar for ddanbe

This piece of code is far from perfect, but it works! It produces a list of substrings (consisting of digits and letters) and their delimiters. If it is practicaly a sin to manipulate the index of a for loop, then I'm a sinner. If two delimiters follow each other, an …

Member Avatar for xrjf
0
1K
Member Avatar for Santanu.Das

This conception I get from a post on CodeProject by [Heriberto Lugo](http://www.codeproject.com/Tips/837177/Recursion-for-Beginners-Sorting-Ten-Numbers-Withou). But that was for only 10 numbers. Then I had an idea to use it in vb. There are many shorting process like Bubble Short, Linear Short etc. But exceptionally it does not use loops as others do. …

Member Avatar for David_50
0
519
Member Avatar for andrew909

Hi I'm creating a program that holds three arrays one for the persons last name, one for the points scored and one for the player number, now I've got all the arrays and everything done but I'm not sure as to how to return the 3 new arrays from my …

Member Avatar for kplcjl
0
283
Member Avatar for kegs88

I am very new to programming and im trying to create a simple stick figure that walks across the screen. I cant seem to figure out how to make him walk across. Any help would be great. THanks guys using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using …

Member Avatar for kplcjl
0
2K
Member Avatar for VIeditorlover

Hi everybody, I'd like to ask you if there are some ways how to protect .NET exe and dlls against decompilation. [B]I am not interested in any form of obfuscation[/B], only methods based on (or equivalent to) compiling traditional compilers to machine language. There doesn't matter if commercial or open …

Member Avatar for JOSheaIV
1
1K
Member Avatar for oussama_1

Here's a simple game code, open a new vb project and copy paste this code and hit run. the game contains 3 levels, all you have to do is to shoot the smiley faces to earn money using mouse clicks, also there's a boss enemy on level 3. I didn't …

Member Avatar for oussama_1
3
916
Member Avatar for ddanbe

My math professor in the past explained it this way: Consider yourself a 2D creature(some sort of pancake). If placed in a circle, you can't escape in a 2D world. But in a 3D world this is simple. You could just jump up and disappear and reappear before all your …

Member Avatar for mattster
0
763
Member Avatar for Siberian

Why won't this object, loop won't write ? function lw (bat,bat2,bat3) { this.bat = bat; this.bat2 = bat2; this.bat3 = bat3; } var what = new lw ("one","two","three"); for (var apple in what) { write(what[apple]+"<br/>"); }

Member Avatar for Siberian
0
128
Member Avatar for sknake

Here is a sample code snippet of logging in a user against a user table in an MSSQL database with password encryption. Scott Knake

Member Avatar for pritaeas
10
7K
Member Avatar for ddanbe

Thought it would be very complicated to include speech in your programs. As it seems, in it most simplest form it can be done in two lines. Don't forget to include the System.Speech reference in your References. Enjoy!

Member Avatar for kplcjl
5
557
Member Avatar for kimbula...

I want allow only to enter numeric values in a textbox in C#. Can someone assist me on this. would be a great help.

Member Avatar for kplcjl
0
5K
Member Avatar for kxjakkk

I'm trying to create a program that will prompt the user for a list of text files to read from, then read those text files and build a dictionary of all the unique words found. Then finally put those unique words into another file and make it alphabetical order from …

Member Avatar for kxjakkk
0
636
Member Avatar for hxn xfir

Using loop print the following output on console. 1 121 12321 1234321 123454321 1234321 12321 121 1

Member Avatar for JOSheaIV
0
796
Member Avatar for andreas.petrou.967

I have this program,how to find reverse numbers? #include<iostream> #include<fstream> #include<string> using namespace std; const int array_size = 10; //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //function to enter the number choise1/// to "&" dieuthinsi noumerou void get_numbers(int num_arr[array_size], int& numbers){ int count; cout << "How many numbers do you want to enter? "<<endl; cin >> …

Member Avatar for kplcjl
0
355
Member Avatar for ddanbe

Squaring a number is a rather common task in programming, but if you want to square an integer. Easy you think! Int MySquare = AnInt *.AnInt; This will happily overflow without giving any exception if AnInt is bigger than 46340, unless you put your code in a checked block. Now …

Member Avatar for kplcjl
0
376
Member Avatar for Eternal Newbie

I'm having a nightmare here! I'm calling 2 different forms, one like a loading screen and the other is the working form. The trick here is placing the 'SplashScreen1.Close()' at the end of Form2 and it will automatically close the loading screen when Fom2 finish. But I could never get …

Member Avatar for kplcjl
0
1K
Member Avatar for kingsonprisonic

This module is for validating textboxes.... After using this module in your project you can simply validate all of your text boxes like [CODE] Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AssignValidation(Me.TextBox1, ValidationType.Only_Digits) AssignValidation(Me.TextBox2, ValidationType.Only_Characters) AssignValidation(Me.TextBox3, ValidationType.No_Blank) AssignValidation(Me.TextBox4, ValidationType.Only_Email) End Sub [/CODE]

Member Avatar for Iamateur
4
1K
Member Avatar for riahc3
Member Avatar for Lardmeister

This code shows how to use a minimum Windows Gui program to display the results of a bubble sort of an integer array.

Member Avatar for kplcjl
0
1K
Member Avatar for Diamonddrake

I needed a 5 minute countdown for a project I was working on so I hacked this up, It does nothing more and nothing less. Figured I would post it while I was here to save someone else the trouble. (Not that it's in anyway difficult to do.)

Member Avatar for kplcjl
1
3K
Member Avatar for Reverend Jim

One of the things I have been steadfastly avoiding is writing code to print stuff. Most of what I want to print is from withing apps like Outlook or Word that already provide that functionality. But I finally ended up having to bite the bullet. What I ended up with …

Member Avatar for tinstaafl
2
3K
Member Avatar for DIPY

Hi I am new to C#. I have to enable my text box whn the check box is checked. It would be very helpful if i can get the code for this.

Member Avatar for hirenpatel53
0
3K
Member Avatar for SoftwareGuy

Hello, I have two projects in this solution: ProjectA and ProjectB. ProjectA is the main start-up project, and has a reference to ProjectB. ProjectA has a file called MainForm.cs, which contains a textbox and the main UI. ProjectB has a class inside Shapes.cs, containing a particular structure we're using. Shapes.cs …

Member Avatar for kplcjl
0
234