Search:

Type: Posts; User: BraneMxm

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    8,720

    picturebox and openfiledialog

    How can i take a file from an openfiledialog and show it in a picturebox.
    I have tried i like this but it wont work.

    Thanks in advance


    private void button1_Click(object sender, EventArgs e)...
  2. Replies
    4
    Views
    2,982

    Thnks for the response AtomRiot It looks like...

    Thnks for the response AtomRiot

    It looks like this:

    I have 2 forms. One has an button and an textbox. The other has just one button.

    It doesnt matter how where and wenn the forms are...
  3. Replies
    4
    Views
    2,982

    Ownership over a button

    Hi,

    how do I take ownership ower a button or a textbox that is on another form?

    I take ownership ower a form like this:

    frm1.Owner=frm2;

    I want the same thing for a button! But how?
  4. Thread: C# Assignment

    by BraneMxm
    Replies
    1
    Views
    3,172

    Solution

    namespace vjezba4dio3
    {
    public partial class Form1 : Form
    {
    private Form2 frm2 = new Form2();
    private Form3 frm3 = new Form3();
    public EventHandler ev2 ;

    ...
  5. Thread: C# Assignment

    by BraneMxm
    Replies
    1
    Views
    3,172

    C# Assignment

    Hi to all i have an assignment that i dont aunderstand at all.

    I know the OOD paradigm but i am not sure what this assingment wants me to do.

    I should create an C# win ap. When opened 3 forms...
  6. Replies
    6
    Views
    2,780

    It doesnt work

    All the widnows close despite the changes i have made!

    Thanks
  7. Replies
    2
    Views
    11,342

    Is this ok?

    It looks like this now it works but is this what the task is?
    And i am not sure about the question how the ownership of the windows affects their appereance.


    namespace vjezba4dio2
    {

    ...
  8. Replies
    6
    Views
    2,780

    Nothing happens

    I had two errors in this line so icomented it out
    // MessageBox(NULL, "hWnd parameter invalid!", "Error!", MB_OK | MB_ERROR);
    The errors were:
    C2065 'MB_ERROR' undeclared identifier...
  9. Replies
    2
    Views
    11,342

    C# parent child

    Hi to all I need your help!

    I have an assignement i must create an apllication that when opened opens 3 forms and wenn I click on form1 form1 should be the parent form of thw two other forms.

    I...
  10. Replies
    6
    Views
    2,780

    Api child window

    I have a assignement that i have to do, i am not bad in c. But i never done windows programming before.

    Here is the task:

    Win32 API aplication with 3 windows. all should be created with the...
  11. Thread: Multilist

    by BraneMxm
    Replies
    13
    Views
    5,255

    BoneXXX create yourself a print function which...

    BoneXXX create yourself a print function which takes a pointer to the list and prints out hte nodes you have created or nothing if it isnt created. ;-)
  12. Replies
    23
    Views
    2,739

    BLooDCorpse you have skipped some C basics, you...

    BLooDCorpse you have skipped some C basics, you should start from the begin with some tutorials then you will be able to know what the code that you write means.
    Trust me this will be the best and...
  13. Thread: List

    by BraneMxm
    Replies
    15
    Views
    2,373

    @iMalc Exactly

    @iMalc
    Exactly
  14. Thread: List

    by BraneMxm
    Replies
    15
    Views
    2,373

    Well I guess there is no strong reason to use it...

    Well I guess there is no strong reason to use it in Trees and Lists, and as I dont understand it very well I wont use it.

    Thank you all
  15. Thread: List

    by BraneMxm
    Replies
    15
    Views
    2,373

    @iMalc Thanks for the advice, I want to count...

    @iMalc

    Thanks for the advice, I want to count the leaves not the nodes!

    So I guess it is a good practice always to use const in the parameter when the passed value isnt changed, only used to...
  16. Thread: List

    by BraneMxm
    Replies
    15
    Views
    2,373

    I recieved some access violation error when I got...

    I recieved some access violation error when I got on a node that was a leaf. However it works now.
    Thanks and greetings to Luxemburg
    Brane
  17. Thread: List

    by BraneMxm
    Replies
    15
    Views
    2,373

    Re->Tree not list;-)

    @koni
    I added something to your code to wouldnt work else. Am I right?

    int countLeaves(bTree *ptrT)
    {
    if(ptrT)
    if(!(ptrT->left) && !(ptrT->right))
    return 1;
    ...
  18. Thread: List

    by BraneMxm
    Replies
    15
    Views
    2,373

    Re->List

    Hi and good morning to all
    @citizen


    Well I thought that the word static would be there to ignore the initialization to 0 when i call the function again, she is there to preserve the value.
    ...
  19. Thread: List

    by BraneMxm
    Replies
    15
    Views
    2,373

    Static

    Please take a look at this code


    int countLeaves(bTree *ptrT)
    {
    static int i=0;
    if(!ptrT)
    return i;
    else
    {
  20. Thread: List

    by BraneMxm
    Replies
    15
    Views
    2,373

    List

    Hi i have a little question

    here is a simple piece of code inserting an int in ftont of a linked list

    if i change
    void insertFront(list **ptrL, int data)
    into
    void *insertFront(list **ptrL,...
Results 1 to 20 of 20