inkey's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
Members
Active Posts:
49 (0.06 per day)
Joined:
26-June 12
Profile Views:
941
Last Active:
User is offline Mar 07 2013 07:25 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   inkey Another day another dollar

Posts I've Made

  1. In Topic: C# Open form instances how to close.

    Posted 4 Jan 2013

    View PostMrShoes, on 04 January 2013 - 02:11 AM, said:

    Are you sure you have references to the correct form when using Close()? Remember, it's not by the class name. So, if you had a Form1 object open, you cannot close it with the code Form1 form1 = new Form1(); form1.Close(); because that creates a new one.

    If you're going to close a form from another, you need the form that's calling the close method to hold reference: Consider either passing the form as a parameter to the new one, or possibly having a static collection of all forms that you can access from anywhere.


    i was thinking it was going to be something to do with how i was creating instances. Have you any links where i can read up on the static collections?
  2. In Topic: C# Open form instances how to close.

    Posted 4 Jan 2013

    View PostAnthonidas, on 04 January 2013 - 01:58 AM, said:

    do you get any errors when using this.Close()? Did you try with this.Hide()?

    No errors just doesn't close the form.
  3. In Topic: Textbox not to have cursor

    Posted 21 Nov 2012

    View Postcoder3788, on 21 November 2012 - 03:31 AM, said:

    Call the Focus method on another control.
    http://msdn.microsof...trol.focus.aspx

    thanks
  4. In Topic: C# Progress BAR

    Posted 20 Nov 2012

    View Postraghav.naganathan, on 20 November 2012 - 02:34 AM, said:

    Well, have you written any code for this? If so, do post it here...and show us where in the code are you facing a problem and what steps you have taken to solve that problem.

    regards,
    Raghav


    I have not yet started just looking some direction as how to achieve this and learn something along the way.
  5. In Topic: Time up down buttons

    Posted 8 Oct 2012

    View PostCharlieMay, on 08 October 2012 - 07:32 AM, said:

    What is test1?

    The example described was to control a datetimepicker

    something like:
           private void btnIncHrs_Click(object sender, EventArgs e)
            {
                dateTimePicker1.Value = dateTimePicker1.Value.AddHours(1);
            
            }
    


    thanks that works a treat

My Information

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

Contact Information

E-mail:
Click here to e-mail me

Friends

inkey hasn't added any friends yet.

Comments

Page 1 of 1
  1. Photo

    samadalove Icon

    20 Jul 2012 - 03:27
    Hello dearest
    My name is Miss Samada
    How are you? I Hope you are fine and in perfect Health.i came across your profile today and deemed it necessary to write you immediately. Am too curious to know you more. Could you please reciprocate to my message by dropping mail on my contact email (Samada4love88@yahoo.com) so we can introduce our self better on media and also share the passion ...
Page 1 of 1