Class Test: Form
{
}
Test form name
Formpredefined class
Developing a user-defined from at the run time.
open windows form application project
place a button
code in GD
Class Test: Form
Code for Button 1_ click
Test t = new Test ();
Interested in mastering .NET? Learn more about ".NET Training" in this blog post.
Then except form, the border and controls body remaining port will be displayed fully transparent.
Generally, Screen saves are.SCR files, which will be under c:/windows/system 32 folder Open windows forms application project with project name Abcd (output file will be abcd. exe)
Form properties (F4) and set Back color = black Form border style = none. Window state = maximize
{
X = x +5;
If (x > 400) X = 0;
Picture box 1. Location = new point (x, x);
}
Code for Form 1 key press event ( Form 1 àproperties àclick on yellow colored Icon (events)àdouble click on key press ){
Application .Exit ();
}
Execute the Project (F5)
Abcd .exe file will be created under
D:/c 194/abcd/bin/debug Folder
Rename Abcd .exe with Abcs.Scr
copy Abcd .Scr in to C :/windows / system 32 folder; Then check box desktop properties
Screen saver
Context menu Strip :
Display an Icon in Systems along with context menu strip.
Example:-
àOpen windows form Application project àPlace five text boxes and two buttons
Code for button 1 _ click
{
This. Back color = color .Green ;
}
à code for button2_ click (clearing the text boxes)
{
For each (control c in this. controls)
{
If (c. Get type (). Name == “Text box”)
text = “”;
}
Accept Button = Button 1
Cancel Button = Button 2
You liked the article?
Like: 2
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.