Click here to Skip to main content
16,015,019 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to get x,y coordinates when drawing rectangle on the picture box Pin
johannesnestler19-Oct-10 4:14
johannesnestler19-Oct-10 4:14 
QuestionSQL Backing up with SMO & C# ? Pin
Mohammad Dayyan17-Oct-10 4:49
Mohammad Dayyan17-Oct-10 4:49 
AnswerRe: SQL Backing up with SMO & C# ? Pin
Ravi Bhavnani17-Oct-10 6:01
professionalRavi Bhavnani17-Oct-10 6:01 
GeneralRe: SQL Backing up with SMO & C# ? Pin
Mohammad Dayyan7-Nov-10 2:20
Mohammad Dayyan7-Nov-10 2:20 
AnswerRe: SQL Backing up with SMO & C# ? Pin
Luc Pattyn17-Oct-10 6:38
sitebuilderLuc Pattyn17-Oct-10 6:38 
QuestionA good way to store this information? Pin
stephen.darling16-Oct-10 12:33
stephen.darling16-Oct-10 12:33 
AnswerRe: A good way to store this information? Pin
Mycroft Holmes16-Oct-10 12:41
professionalMycroft Holmes16-Oct-10 12:41 
GeneralRe: A good way to store this information? Pin
OriginalGriff16-Oct-10 22:07
mveOriginalGriff16-Oct-10 22:07 
You can force a value on an enum, this can be a very good way to keep related items together:
/// <summary>
/// Membership status
/// Notes:
///    This is reflected directly in the database
/// </summary>
public enum MemberStatus
    {
    /// <summary>
    /// Match all members types
    /// </summary>
    Any = 0xffff,
    /// <summary>
    /// Contact - not a member or associate. No voting rights.
    /// May be a supllier, grant donor, etc.
    /// </summary>
    Contact = 0,
    /// <summary>
    /// Associate - does not have a plot, but interested and helpful
    /// </summary>
    Associate = 1,
    /// <summary>
    /// Waiting for a plot - there should be a "Plot application" message dated.
    /// </summary>
    Waiting = 2,
    /// <summary>
    /// Member - has a plot, and a single voting right
    /// </summary>
    Member = 4,
    }
You can also combine this with Human readable strings for enum elements[^] which elevates it way above what you can do with a const value!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

GeneralRe: A good way to store this information? Pin
PIEBALDconsult17-Oct-10 13:27
mvePIEBALDconsult17-Oct-10 13:27 
AnswerRe: A good way to store this information? PinPopular
Luc Pattyn16-Oct-10 13:24
sitebuilderLuc Pattyn16-Oct-10 13:24 
GeneralRe: A good way to store this information? Pin
Keith Barrow17-Oct-10 4:58
professionalKeith Barrow17-Oct-10 4:58 
GeneralRe: A good way to store this information? Pin
stephen.darling17-Oct-10 10:29
stephen.darling17-Oct-10 10:29 
AnswerRe: A good way to store this information? Pin
PIEBALDconsult17-Oct-10 13:26
mvePIEBALDconsult17-Oct-10 13:26 
GeneralRe: A good way to store this information? Pin
stephen.darling17-Oct-10 15:05
stephen.darling17-Oct-10 15:05 
GeneralRe: A good way to store this information? Pin
PIEBALDconsult17-Oct-10 15:12
mvePIEBALDconsult17-Oct-10 15:12 
GeneralRe: A good way to store this information? Pin
stephen.darling18-Oct-10 5:00
stephen.darling18-Oct-10 5:00 
AnswerRe: A good way to store this information? Pin
W Balboos, GHB20-Oct-10 1:29
W Balboos, GHB20-Oct-10 1:29 
GeneralRe: A good way to store this information? Pin
stephen.darling20-Oct-10 7:40
stephen.darling20-Oct-10 7:40 
QuestionDynamic array of PictureBoxes with scroll-bars? Pin
DaveGriffith15-Oct-10 15:59
DaveGriffith15-Oct-10 15:59 
AnswerRe: Dynamic array of PictureBoxes with scroll-bars? Pin
Luc Pattyn15-Oct-10 17:27
sitebuilderLuc Pattyn15-Oct-10 17:27 
AnswerRe: Dynamic array of PictureBoxes with scroll-bars? Pin
DaveGriffith17-Oct-10 10:33
DaveGriffith17-Oct-10 10:33 
GeneralRe: Dynamic array of PictureBoxes with scroll-bars? Pin
Luc Pattyn17-Oct-10 10:41
sitebuilderLuc Pattyn17-Oct-10 10:41 
GeneralRe: Dynamic array of PictureBoxes with scroll-bars? Pin
forkus200024-Oct-10 19:15
forkus200024-Oct-10 19:15 
GeneralRe: Dynamic array of PictureBoxes with scroll-bars? Pin
Luc Pattyn25-Oct-10 2:09
sitebuilderLuc Pattyn25-Oct-10 2:09 
QuestionEllipse Pin
WebMaster15-Oct-10 15:17
WebMaster15-Oct-10 15:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.