teyrebaz's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
Members
Active Posts:
19 (0.02 per day)
Joined:
14-January 12
Profile Views:
433
Last Active:
User is offline Oct 09 2013 07:52 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   teyrebaz has not set their status

Posts I've Made

  1. In Topic: Uri based permissions model ?

    Posted 9 Oct 2013

    thank you, notrosh. i'll do exactly as u explained.
  2. In Topic: Uri based permissions model ?

    Posted 3 Sep 2013

    Maybe topic name is not clear enough ; How to implement Role Based Security.? thanks, again.
  3. In Topic: Plug-In / Module & Theme architecture like WP

    Posted 26 Aug 2013

    View Postlaytonsdad, on 26 August 2013 - 10:42 AM, said:

    This may be of use to you.


    Thanks for your reply but there is no solution.
  4. In Topic: Set a selected text in a richTextBox

    Posted 8 Feb 2013

            private void Form1_Load(object sender, EventArgs e)
            {
                richTextBox1.Text = "Enter your text here...";
                richTextBox1.Select(0, richTextBox1.TextLength);
                richTextBox1.SelectionBackColor = Color.Red;
    
            }
    
            private void richTextBox1_Enter(object sender, EventArgs e)
            {
                richTextBox1.Text = "";
    
            }
    


    This will solve your problem, i guess at least if i got your point.
  5. In Topic: Second form item_check event problem.

    Posted 6 Feb 2013

    View PostMichael26, on 06 February 2013 - 02:05 PM, said:

    Well without that code here, i can only guess :)/>/>/>

    Quote

    But before second form unload the secondForm Checkboxlist itemcheck event occurs.

    I would double check that part.

    Error occurs from second forms method when i call it at constructor. I have a method for checkboxlist which is handling some items checkstate unchecked to checked. How can i prevent it or can i stop execution of checkboxlist itemcheck event at the secondform's constructor?
    //second form's state alter method.. calling at constructor.
     void SelectedRoomBedTypes()
            {
                foreach (var item in bedtypes)
                {
                    for (int i = 0; i < clstBedTypes.Items.Count; i++)
                    {
                        BedTypes bt = clstBedTypes.Items[i] as BedTypes;
                        if (bt.ID == item.BedTypeID)
                        {
                            clstBedTypes.SetItemChecked(i, true);
                        }
                    }
                }
            }
    
    

    //clstBedTypes ItemCheck event
    
    
                BedTypes bt = (BedTypes )clstBedTypes.SelectedItem;
                if (e.NewValue == CheckState.Unchecked)
                {
                    RoomBedType r = new RoomBedType();
                    r.RoomID = _room.ID;//_room object from first form
                    o.BedTypeID = bt.ID;
                    MessageBox.Show(YatakTipIslemleri.OdayaGoreYatakTipSil(o));
    
                }
                else
                {
                    OdaYatakTip o = new OdaYatakTip();
                    o.OdaID = _oda.ID;
                    o.YatakTipID = yt.ID;
                    MessageBox.Show(BedTypeProc.SaveBedRoomTypeByRoom(o));
                }
    
    

    thanks.

    Error occurs from second forms method when i call it at constructor. I have a method for checkboxlist which is handling some items checkstate unchecked to checked. How can i prevent it or can i stop execution of checkboxlist itemcheck event at the secondform's constructor?

    //second form's state alter method.. calling at constructor.
    void SelectedRoomBedTypes()
    {
    foreach (var item in bedtypes)
    {
    for (int i = 0; i < clstBedTypes.Items.Count; i++)
    {
    BedTypes bt = clstBedTypes.Items[i] as BedTypes;
    if (bt.ID == item.BedTypeID)
    {
    clstBedTypes.SetItemChecked(i, true);
    }
    }
    }
    }
    



    //clstBedTypes ItemCheck event

    BedTypes bt = (BedTypes )clstBedTypes.SelectedItem;
    if (e.NewValue == CheckState.Unchecked)
    {
    RoomBedType r = new RoomBedType();
    r.RoomID = _room.ID;//_room object from first form
    r.BedTypeID = bt.ID;
    MessageBox.Show(YatakTipIslemleri.OdayaGoreYatakTipSil(o));
    
    }
    else
    {
    RoomBedType r = new RoomBedType ();
    r.OdaID = _oda.ID;
    r.YatakTipID = yt.ID;
    MessageBox.Show(BedTypeProc.SaveBedRoomTypeByRoom(o));
    }
    
    

    thanks.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

teyrebaz hasn't added any friends yet.

Comments

teyrebaz has no profile comments yet. Why not say hello?