Function of SizeMode property
Describe the function of a SizeMode property of a PictureBox control?
Expert
SizeMode property determines how picture will be displayed in a PictureBox control. There are five enumerations which are used to set a value of SizeMode property such as:
1. Zoom – It helps in enlarging or shrinking image so that it will fit in the PictureBox control, through maintaining an aspect ratio of a image
2. StretchImage – It displays image according to the PictureBox size
3. Normal – It represents Standard picture box behaviour like the upper-left corner of an image is placed at upper-left in a picture box
4. AutoSize – It increases or decreases a picture size automatically according to the actual size of a PictureBox control.
5. CenterImage – It displays an image in the center if it is smaller than a PictureBox control; otherwise, centre part of an image is placed in a PictureBox control and the edges which are outside are clipped.
How can you avoid a class from overriding in C# and Visual Basic?
Illustrate the difference between Web.Config and Machine.Config and where it will be?
Write down some of the benefits of XAML?
Can the 'throws' clause can be used to raise an exception?
How can a text box be enforced to show characters in the uppercase?
Mention different types of data providers available in .NET Framework.
Write the syntax of the for loop in C# code?
Distinguish between RichTextBox control and TextBox control.
Why Windows Installer is used?
State various controls of ASP.NET AJAX?
18,76,764
1929139 Asked
3,689
Active Tutors
1451407
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!