Massked text Box
If(e.keycode == keys.Enter)
MessageBox.Show(“Hello hello”);
If(e.keycode == key.A)
MessageBox.Show(“you have pressed A”);
For clear
dialogResult abc = messagebox.show(“are you sure you want to
clear”,”warning”,MessageBoxButtons,YESNo);
if(abc == system.Windows.Forms.DialogResult.Yes)
txtName.Text = txtUniv.Text = txtNIC.Text = “”;
else
MessageBox.Show(“values not Cleared”);
numMeric up down
value = 100
increment 1
through code
in form_Load
numericupdown.Maximum = 15;
numericupdown.Minumum= -5;
numeric up down incement = 2;
numeric up down value =3;
if press esc form is closed;
then we make button close form
and set text btnkillform
eniveroment.Exit();
1 way
in properties there is cancel button where we slect close
button
if there is no button
then we declare an event key down
then
if(e.keycode == keys.Escape)
this.close();
way is to copy this
code in all the buttons of text boxes so we can terminate when press escape
how enter key works
if press enter key then show input works
click on form go to accept button then we go to
showinputbutton in properties
picturebox
when I press button then image will be showed
I go to form1_load an write
pictureBox1.Visible = true;
how put image in button
then we go to google
accept button in search
then we choose button image then view original image then
save it
close the form and then
go to desin then remove text from button image will be clear
then go to properties of button then
select back ground image accept button then select stretched
then its awesome works
and then we place icon buttons
then combo box
also called drp[ down list
go to properties then go to items and then write
apple pine orange
then I want if I run the option must show
drop down style is drop down list
what I want if I select the and choose button butt press
show item is selected.
Messagebox.show(Comboxbox1.Text);
Show respectively
Then I want from code then form1_load
And set autmaticall selected index 2
Comboxbox1.SelectedIndex =2;
List items
Liost box just like combox box items place items
And wirte in form1_load
Listbox.Selectedindex = 2;
In btn show
No comments:
Post a Comment