15,993,495 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by IamBlessed (Top 18 by date)
IamBlessed
26-Feb-13 8:12am
View
Hi. I have updated the question :)
IamBlessed
20-Sep-12 15:28pm
View
Have not writing any single code on exporting to excel, and the excel sheet is empty. I hav virtually no clue on what to do
IamBlessed
4-Jul-12 15:38pm
View
The problem is that i want want a user select any of the programatically created image controls it fires a event, i also want to be able to get the particular control that triggered the event
IamBlessed
16-Jun-12 8:33am
View
I have been able to record audio, but i need to be able to create a visual representation of my recording and also save to mp3. Which i dont know how to do
IamBlessed
8-Jun-12 16:21pm
View
Thanks For your answer this has been very useful
IamBlessed
8-Jun-12 15:30pm
View
Window form
IamBlessed
8-Jun-12 11:25am
View
Thanks for the answer
IamBlessed
8-Jun-12 10:34am
View
int val = 0;
bool res = Int32.TryParse(Ca_TxtBx.Text, out val);
if (res == true && val > 0.01 && val < 0.90)
{
// Do something
}
else
{
MessageBox.Show("Please input 0.01 to 0.90 only.");
}
and this
NumericUpDown control = new NumericUpDown();
decimal max = Convert.ToDecimal(0.90);
decimal min = Convert.ToDecimal(0.01);
control.Minimum = min;
control.Maximum = max;
if (Convert.ToDecimal(Ca_TxtBx.Text) > control.Maximum || Convert.ToDecimal(Ca_TxtBx.Text) < control.Minimum)
{
MessageBox.Show("Please input 0.01 to 0.90 only.");
}
it does not validate the texbox..
IamBlessed
8-Jun-12 10:29am
View
I have tried using the NumericUpDown class, but it is not working since my values are decimal, i also tried using int32.parse(mytextbox) then use a if statement to check it agaisnt the range. But still did not work, the Range are 0.01 - 0.90
IamBlessed
30-May-12 8:22am
View
Thanks you very much.. Just wanted to know do you know of any custom tabcontrol dll that has a close button
IamBlessed
8-Apr-12 15:07pm
View
MS SQL with BindingSource
IamBlessed
6-Apr-12 10:20am
View
Thanks I appreciate
IamBlessed
6-Apr-12 10:13am
View
Ok thanks.. How do i the save and retrieve the instance of the class from a session..... Thanks
IamBlessed
5-Apr-12 9:10am
View
Can you please give an example of how to implement sigleton on my class please....
IamBlessed
5-Apr-12 9:02am
View
Thanks
IamBlessed
5-Apr-12 8:24am
View
Apologies if i sounded rude... Am very anxious thats all :)
IamBlessed
4-Apr-12 11:22am
View
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace JustMe
{
[Serializable]
public class FITS
{
public List<fitness> fitness { get; set; }
public FITS()
{
fitness = new List<fitness>();
}
public void AddFitness(Fitness addF)
{
for (int i = 0; i < fitness.Count; i++)
{
if (fitness[i].Id.Equals(addF.Id) == true)
{
ExceptionHandler error = new ExceptionHandler(addF.Id);
throw (error);
}
}
fitness.Add(addF);
}
public void DeleteFitness(Fitness deleteF)
{
fitness.Remove(deleteF);
}
public void SelectSort()
{
int smallest;
for (int i = 0; i < fitness.Count - 1; i++)
{
smallest = i;
for (int index = i + 1; index < fitness.Count; index++)
{
if (fitness[index].Id.CompareTo(fitness[smallest].Id) < 0)
{
smallest = index;
}
}
var temp = fitness[i];
fitness[i] = fitness[smallest];
fitness[smallest] = temp;
}
}
public void SelectSort1()
{
int smallest1;
for (int i = 0; i < fitness.Count - 1; i++)
{
smallest1 = i;
for (int index1 = i + 1; index1 < fitness.Count; index1++)
{
if (fitness[smallest1].Id.CompareTo(fitness[index1].Id) < 0)
{
smallest1 = index1;
}
}
var temp1 = fitness[i];
fitness[i] = fitness[smallest1];
fitness[smallest1] = temp1;
}
}
}
}
Above is the smaple of myList Class, the AddFitness method get the values submitted by the user and add them to the list, the problem i am having is that every time a new data is submitted by the user a new list is created, that why i want a single global instance of the class that will be instantiated when the web application starts, and i want to also be able to access the AddFitness method so user can be able to use that one instance of the class that is created when the application starts.
IamBlessed
4-Apr-12 10:43am
View
Thanks.. My Class is serialized, does the code you provided above go into the Application_Start event or session_start, also what does the value represent and also how do i call the class and access the method in it.. thanks
Show More