The difference between Keypress and Key down:
Interested in mastering .NET? Learn more about ".NET Training "in this blog post.
Back Color = black Auto Size = false Location = 202, 440 Left, top
Image = Select an image Size mode = Stretch image Location = 13, 200 Left, top
{
Int I = (int) e. keycode;
//Message Box. Show (I + “”);
If ((I = = 37) && Label1.left > 0 )
Label 1.left = Label1.left -3;
If ((I = = 39) && Label1.left < this. Width - 100 )
Label 1.left = Label1.left +3;
}
{
Picture Box. Top = Picture Box 1. Top – 15;
If (Picture Box. Top < 0)
{
Timer 1. Enabled = false;
Timer 1. Enabled = true;
}
Code for Timer 2 _ Tick Event
{
Picture Box1. Top = Picture Box 1. Top +5;
Picture Box2. Left = Picture Box 1. Left +1;
If (Picture Box1. Top = Label1.Top && Picture Box1.left >Label1.left && Picture Box1. Left < Label1.right )
{
Timer 1.enabled = true;
Timer 2.enabled = false;
}
2.Every item will be identified with a unique index number which tarts always from zero.
Properties:-
Methods: -
Example on combo box:-
A program to change the shape of a FORM
Namespace System Drawing. Drawing 2 D
Graphics path g = new Graphics path ();
Int I = combo box 1. Selected index;
If (I = = 0) //circle
else if (i ==1 ) //ellipse
else //triangle {
}
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.