Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: Text formatting Pin
Skymir11-Jun-09 11:02
Skymir11-Jun-09 11:02 
GeneralRe: Text formatting Pin
Skymir12-Jun-09 9:35
Skymir12-Jun-09 9:35 
Questiontoolstripcombobox and arraylist problem Pin
ThorTheBraveGod11-Jun-09 7:58
ThorTheBraveGod11-Jun-09 7:58 
AnswerRe: toolstripcombobox and arraylist problem Pin
ThorTheBraveGod11-Jun-09 8:21
ThorTheBraveGod11-Jun-09 8:21 
GeneralRe: toolstripcombobox and arraylist problem Pin
EliottA11-Jun-09 8:49
EliottA11-Jun-09 8:49 
QuestionAudio vedio caputing Pin
mastercpj11-Jun-09 7:31
mastercpj11-Jun-09 7:31 
AnswerRe: Audio vedio caputing Pin
molesworth11-Jun-09 7:36
molesworth11-Jun-09 7:36 
GeneralRe: Audio vedio caputing Pin
mastercpj11-Jun-09 7:45
mastercpj11-Jun-09 7:45 
GeneralRe: Audio vedio caputing Pin
EliottA11-Jun-09 7:49
EliottA11-Jun-09 7:49 
GeneralRe: Audio vedio caputing Pin
molesworth11-Jun-09 10:58
molesworth11-Jun-09 10:58 
AnswerRe: Audio vedio caputing Pin
Rajesh R Subramanian11-Jun-09 10:56
professionalRajesh R Subramanian11-Jun-09 10:56 
AnswerRe: Audio vedio caputing Pin
Nooner11-Jun-09 11:34
Nooner11-Jun-09 11:34 
GeneralRe: Audio vedio caputing Pin
Mycroft Holmes11-Jun-09 14:11
professionalMycroft Holmes11-Jun-09 14:11 
Questionabout ArraySegment<> Pin
Seraph_summer11-Jun-09 6:48
Seraph_summer11-Jun-09 6:48 
AnswerRe: about ArraySegment<> Pin
PIEBALDconsult11-Jun-09 8:26
mvePIEBALDconsult11-Jun-09 8:26 
AnswerRe: about ArraySegment<> Pin
Henry Minute11-Jun-09 9:00
Henry Minute11-Jun-09 9:00 
Questionblob data from mysql Pin
benjamin yap11-Jun-09 6:32
benjamin yap11-Jun-09 6:32 
AnswerRe: blob data from mysql Pin
0x3c011-Jun-09 6:37
0x3c011-Jun-09 6:37 
GeneralRe: blob data from mysql [modified] Pin
benjamin yap11-Jun-09 7:03
benjamin yap11-Jun-09 7:03 
GeneralRe: blob data from mysql Pin
0x3c011-Jun-09 7:43
0x3c011-Jun-09 7:43 
GeneralRe: blob data from mysql Pin
benjamin yap11-Jun-09 7:46
benjamin yap11-Jun-09 7:46 
GeneralRe: blob data from mysql Pin
0x3c011-Jun-09 8:17
0x3c011-Jun-09 8:17 
Every button's image will be the last image read from the database. Try something like this:
private void getMainCommImages()
{
    Byte[] image = null;
    MySqlDataReader reader = db.getMainCommImages();
    MemoryStream ms;
    Image returnImage;
    int i = 0;

    while (reader.Read())
    {
        image = new Byte[(reader.GetBytes(0,0,null,0,int.MaxValue))];
        reader.GetBytes(0, 0, image, 0, image.Length);

        ms = new MemoryStream(image);
        returnImage = Image.FromStream(ms);
        foreach(Control ctrl in this.Controls)
        {
            if(ctrl.Name == "btn" + i.ToString())
            {
                ctrl.Image = returnImage;
                break;
            }
        }
        i++;
    }
    reader.Close();
    db.Close();
}


Between the idea
And the reality
Between the motion
And the act
Falls the Shadow

GeneralRe: blob data from mysql Pin
benjamin yap11-Jun-09 8:24
benjamin yap11-Jun-09 8:24 
GeneralRe: blob data from mysql Pin
benjamin yap11-Jun-09 8:41
benjamin yap11-Jun-09 8:41 
QuestionC #define to C# constant converstion tool Pin
mbender11-Jun-09 4:44
mbender11-Jun-09 4:44 

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.