Submitted Questions

  • design a font dialog box

    i want to design a font dialog box as how it looks in Microsoft word. in that to set a font color we have a combo box and it will not give a drop down menu when we click it. instead it will give some thing like a panel. how to make that. without using font dialog and color dialog i want to do it. please check it and answer me thank you.

    sarathcd

    • Apr 16th, 2008

    Dude if you are looking for the scroll bar on the side just reduce the value in the DropDownHeight property or add more items to increase the number of item in the drop down list. If I havent answered your question properly, then can u be more clear in what you want

  • How to find the size of a class

    Size of a class which isclass C{ int i;char c;}int size is 4 and char is 1 but the size of class is coming 8, give the explanation for that?

    kamal7725

    • Nov 29th, 2007

    This is because, your machine is 32 bit( 4 byte). your structure has two variable, a int and a char. int is 4byte long, so no problem. but char is 1 byte long, and will occupy the other 3 byte for alignment. So the sizeof operator gives the total size 8 byte.