Click here to Skip to main content
15,899,679 members

Comments by Tarun Jaiswal (Top 33 by date)

Tarun Jaiswal 21-Nov-14 1:11am View    
this is not a Home Work, it is a curiosity to learn how this action is performed is there any in-built classes or every developer have to implement his own logic to achieve this Task.
& I currently did not understand how the value is calculated becaused i read some Articles on Internet there they say to create table with all numerical digit, some say go on dividing numbers with total digit count. I dont have a proper Logic how to calculate it.
Currently my required value upto Lakh only.
Thanks for your reply
Tarun Jaiswal 29-Sep-14 8:43am View    
Hello Mr.syed shanu above example work fine in windows Application.
but now m trying to make WPF application the StateInfo class is not access-able in login button. can you please guide me how i can maintain the userstate in WPF app.
Tarun Jaiswal 24-Sep-14 2:31am View    
ok thanks
Tarun Jaiswal 24-Sep-14 0:17am View    
yeah -SA
actually in combobox what ever value i place in it. it show that value twice
in the case of reply i have posted the source code according to that Extra Control is displayed twice first in combobox when i select it & second in dropdownlist.
so how i can remove/hide the Extra Control value which is displayed in dropdownlist,but not in combobox where user select the combobox

Tarun Jaiswal 23-Sep-14 12:17pm View    
I m just simply populating items in combobox at Window_Loaded event
private void Populatecombo()
{
cbProIcon.Items.Add("Extra Controls");
cbProIcon.Items.Add("Home");
cbProIcon.Items.Add("LogOut");
cbProIcon.Items.Add("Exit");
cbProIcon.Items.Add("Sleep");
cbProIcon.Items.Add("Shutdown");
cbProIcon.Items.Add("Restart");
cbProIcon.Items.Add("Lock");
cbProIcon.Items.Add("Logg Off");
cbProIcon.Items.Add("Hibernate");
cbProIcon.SelectedIndex = 0;
}

then on SelectionChanged event m providing some logic

if (cbProIcon.SelectedIndex == 1)
{
//Home
txtcheck.Text += "Home Button Now Clicked now.";
cbProIcon.SelectedIndex = 0;// m setting Index 0 so that Extra Control should always selected.
}
else if (cbProIcon.SelectedIndex == 2)
{
//LogOut
this.Close();
welcome.Show();
}

& so on
but on window when i select combobox it display like this
https://www.dropbox.com/s/azkclhuosm3u45t/combobox.jpg?dl=0

i want to display Extra Control to be display once.