Click here to Skip to main content
16,018,938 members
Home / Discussions / C#
   

C#

 
AnswerRe: static property Pin
User 665811-Jun-08 18:34
User 665811-Jun-08 18:34 
GeneralRe: static property Pin
George_George11-Jun-08 18:54
George_George11-Jun-08 18:54 
Questionout variable Pin
George_George11-Jun-08 16:12
George_George11-Jun-08 16:12 
AnswerRe: out variable Pin
N a v a n e e t h11-Jun-08 16:42
N a v a n e e t h11-Jun-08 16:42 
GeneralRe: out variable Pin
George_George11-Jun-08 16:55
George_George11-Jun-08 16:55 
GeneralRe: out variable Pin
N a v a n e e t h11-Jun-08 16:59
N a v a n e e t h11-Jun-08 16:59 
GeneralRe: out variable Pin
George_George11-Jun-08 17:58
George_George11-Jun-08 17:58 
QuestionPaint problem... Pin
abrar from uet lahore11-Jun-08 14:16
abrar from uet lahore11-Jun-08 14:16 
I have to do some animation (slide in / slide out) on about 5 images in c# form. For this I have placed a transparent form on which 5 panel with background images and initially set their location out of form so that they will be invisible at start. On start called a routine, which brings those into the form with slide effect. The routine is

-------------------------------------------------code-------------------------------------

void inimationStart()
    {
        if (this.Visible)
            {
                panel1.SetBounds(-300, panel1.Location.Y, panel1.Width, panel1.Height);
                panel3.SetBounds(-360, panel3.Location.Y, panel3.Width, panel3.Height);
                panel4.SetBounds(-400, panel4.Location.Y, panel4.Width, panel4.Height);
                panel5.SetBounds(-460, panel5.Location.Y, panel5.Width, panel5.Height);
                panel6.SetBounds(-500, panel6.Location.Y, panel6.Width, panel6.Height);
                panel2.SetBounds(-560, panel2.Location.Y, panel2.Width, panel2.Height);
                this.Refresh();
                MessageBox.Show(this.Width.ToString());
                //this.Width = 350;
                for (int i = 0; i < 560; i += 20)
                {
                    if (i < 300)
                        panel1.SetBounds(panel1.Location.X + 20, panel1.Location.Y, panel1.Width, panel1.Height);
                    if (i < 360)
                        panel3.SetBounds(panel3.Location.X + 20, panel3.Location.Y, panel3.Width, panel3.Height);
                    if (i < 400)
                        panel4.SetBounds(panel4.Location.X + 20, panel4.Location.Y, panel4.Width, panel4.Height);
                    if (i < 460)
                        panel5.SetBounds(panel5.Location.X + 20, panel5.Location.Y, panel5.Width, panel5.Height);
                    if (i < 500)
                        panel6.SetBounds(panel6.Location.X + 20, panel6.Location.Y, panel6.Width, panel6.Height);
                    if (i < 560)
                        panel2.SetBounds(panel2.Location.X + 20, panel2.Location.Y, panel2.Width, panel2.Height);
                    
                    this.Refresh();
                }

            }
    }
----------------------------------------------------------------------------------------
But here I cought in few problems
1. when I make the form visible all the panels are visible on the form and then suddenly disappear, whereas I have disappeared those.
2. It’s very slow.
3. some flickering
Could anybody please help me? Thanks.


abrar

AnswerRe: Paint problem... Pin
Anthony Mushrow11-Jun-08 14:39
professionalAnthony Mushrow11-Jun-08 14:39 
QuestionUnable to play audio from client Pin
vayanan11-Jun-08 12:27
vayanan11-Jun-08 12:27 
AnswerRe: Unable to play audio from client Pin
Christian Graus11-Jun-08 12:28
protectorChristian Graus11-Jun-08 12:28 
QuestionDoes Anyone has a Codegenerator for Oracle DAL Pin
Het210911-Jun-08 10:01
Het210911-Jun-08 10:01 
AnswerRe: Does Anyone has a Codegenerator for Oracle DAL Pin
DaveyM6911-Jun-08 10:58
professionalDaveyM6911-Jun-08 10:58 
GeneralRe: Does Anyone has a Codegenerator for Oracle DAL Pin
Het210911-Jun-08 11:12
Het210911-Jun-08 11:12 
GeneralRe: Does Anyone has a Codegenerator for Oracle DAL Pin
Christian Graus11-Jun-08 11:35
protectorChristian Graus11-Jun-08 11:35 
GeneralRe: Does Anyone has a Codegenerator for Oracle DAL Pin
Het210911-Jun-08 11:40
Het210911-Jun-08 11:40 
GeneralRe: Does Anyone has a Codegenerator for Oracle DAL Pin
Christian Graus11-Jun-08 12:15
protectorChristian Graus11-Jun-08 12:15 
AnswerRe: Does Anyone has a Codegenerator for Oracle DAL Pin
darkelv11-Jun-08 19:45
darkelv11-Jun-08 19:45 
QuestionOpenFileDialog with Windows Impersonation using C# Pin
B3RN4RD1N011-Jun-08 8:29
B3RN4RD1N011-Jun-08 8:29 
AnswerRe: OpenFileDialog with Windows Impersonation using C# Pin
DaveyM6911-Jun-08 9:54
professionalDaveyM6911-Jun-08 9:54 
QuestionHow can I handle any keys press in my C# form? Pin
Mohammad Dayyan11-Jun-08 7:27
Mohammad Dayyan11-Jun-08 7:27 
AnswerRe: How can I handle any keys press in my C# form? Pin
dimaj11-Jun-08 7:29
dimaj11-Jun-08 7:29 
GeneralRe: How can I handle any keys press in my C# form? Pin
Mohammad Dayyan11-Jun-08 7:32
Mohammad Dayyan11-Jun-08 7:32 
GeneralRe: How can I handle any keys press in my C# form? Pin
dimaj11-Jun-08 7:43
dimaj11-Jun-08 7:43 
AnswerRe: How can I handle any keys press in my C# form? Pin
Christian Graus11-Jun-08 7:35
protectorChristian Graus11-Jun-08 7:35 

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.