Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

levgiang

@levgiang
About
Posts
9
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Save animation to movie
    L levgiang

    Sorry if my english is not good. I'm building a program on Windows that take in a table and draws chart, text and some animation effect(text running in bottom of screen). The program must export that to a .avi file. How can i do that?Do you know any library that can directly manipulate a .avi file like draw on a frame. Or a library can convert a list of pictures to .avi file.

    le van giang

    Graphics question

  • How to get address of variable
    L levgiang

    How to get address of variable in C# not use unsafe code. le van giang

    C# csharp tutorial

  • question on using ref keyword
    L levgiang

    The disadvantages of ref keyword is it can change the reference of car.There is a situation we don't want change the reference of car,so we don't need use the ref keyword. When you want pass type value parameters and want change the variable pass to method ,you use the ref keyword.and if you dont't want change the variables pass to method,you shoudn't use the ref keyword. le van giang

    C# question

  • "Hello World"
    L levgiang

    Add followed expression at the end Console.Read(); the output screen will delay until you press anykey. using System; namespace rfid_Beta { class MainClass { public static void Main(string[] args) { Console.WriteLine("Hello World!"); Console.Read(); } } } le van giang

    C# question

  • Form can't handle KeyDown event!
    L levgiang

    But when I set focus to Form : Form1.Focus() ; It still not runs. le van giang

    C# csharp visual-studio graphics docker question

  • Form can't handle KeyDown event!
    L levgiang

    When I create a application with a empty form ,I use followed function to handle KeyDown event : private void Form1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { switch (e.KeyCode) { case (Keys.Left) : MessageBox.Show("You have pressed Arrow-Key Left"); break; case (Keys.Right) : MessageBox.Show("You have pressed Arrow-Key Right"); break; } } The application runs well but when I add a new button , this function can't handle the KeyDown event ,this code no longer runs properly.Why ? I use Visual Studio .Net 2003. Sorry if my English is not good. This is all code : -First is Empty form(Run well) : namespace WindowsApplication2 { public class Form1 : System.Windows.Forms.Form { private System.ComponentModel.Container components = null; public Form1() { InitializeComponent(); } protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code private void InitializeComponent() { this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(292, 266); this.Name = "Form1"; this.Text = "Form1"; this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown); } #endregion [STAThread] static void Main() { Application.Run(new Form1()); } private void Form1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { switch (e.KeyCode) { case (Keys.Left) : MessageBox.Show("You have pressed Arrow-Key Left"); break; case (Keys.Right) : MessageBox.Show("You have pressed Arrow-Key Right"); break; } } } } - After add a button : namespace WindowsApplication2 { public class Form1 : System.Windows.Forms.Form { private System.Windows.Forms.Button button1; private System.ComponentModel.Container components = null; public Form1() { InitializeComponent(); } protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code private void InitializeComponent() { this.button1 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // button1 // th

    C# csharp visual-studio graphics docker question

  • How to get text on screen
    L levgiang

    How to get text on screen at current mouse position. le van giang

    C / C++ / MFC tutorial

  • How to get text on screen
    L levgiang

    How can i write a program can get text at current mouse position le van giang

    C# tutorial question

  • Get text on screen
    L levgiang

    How can i write a program can get text on screen at position of mouse cursor. le van giang

    COM question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups