منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب
سحب الرقم CountryLst - نسخة قابلة للطباعة

+- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb)
+-- قسم : قسم لغة السي شارب C#.NET (http://vb4arb.com/vb/forumdisplay.php?fid=175)
+--- قسم : قسم اسئلة C#.NET (http://vb4arb.com/vb/forumdisplay.php?fid=176)
+--- الموضوع : سحب الرقم CountryLst (/showthread.php?tid=18292)



سحب الرقم CountryLst - D3sKm - 06-12-16

سلام عليكم ورحمة الله وبركاته:
أبي إذا فتح البرنامج يكون CountryLst.SelectedIndex
علئ الرقم الي كان عليه يوم سكرت البرنامج
كود :
Properties.Settings.Default.chacbox = CountryLst.SelectedIndex;

            Properties.Settings.Default.Save();
في خطئ ؟؟؟


RE: سحب الرقم CountryLst - amgad525 - 07-12-16

Form1_Load event
PHP كود :
private void Form1_Load(object senderEventArgs e)
{
    
CountryLst.SelectedIndex Properties.Settings.Default.chacbox;


Form1_FormClosing event
PHP كود :
private void Form1_FormClosing(object senderFormClosingEventArgs e)
{

    
Properties.Settings.Default.chacbox CountryLst.SelectedIndex;

    
Properties.Settings.Default.Save();




RE: سحب الرقم CountryLst - D3sKm - 07-12-16

(07-12-16, 12:50 AM)amgad525 كتب : Form1_Load event
PHP كود :
private void Form1_Load(object senderEventArgs e)
{
 
   CountryLst.SelectedIndex Properties.Settings.Default.chacbox;


Form1_FormClosing event
PHP كود :
private void Form1_FormClosing(object senderFormClosingEventArgs e)
{

 
   Properties.Settings.Default.chacbox CountryLst.SelectedIndex;

 
   Properties.Settings.Default.Save();



يوجد خطئ علئ  CountryLst.SelectedIndex


RE: سحب الرقم CountryLst - amgad525 - 08-12-16

Settings > chacbox > int


RE: سحب الرقم CountryLst - D3sKm - 10-12-16

(08-12-16, 12:25 AM)amgad525 كتب : Settings > chacbox > int

يعطيك الفافيه