Results 1 to 5 of 5

Thread: [2008] Create a FormLoad event in .NET and how to reference .NET 3.5

  1. #1

    Thread Starter
    Frenzied Member MaximilianMayrhofer's Avatar
    Join Date
    Aug 2007
    Location
    IM IN YR LOOP
    Posts
    2,001

    [2008] Create a FormLoad event in .NET and how to reference .NET 3.5

    Hey all just starting out and two problems I came across immediately are that I do not know how to create a Form Load event to set the properties of some of my controls, and that my controls are all using the .NET 2.0 Framework even thought .NET 3.5 was downloaded with VS2008 Beta 2.

    How to remedy these?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [2008] Create a FormLoad event in .NET and how to reference .NET 3.5

    Well, as to the first, there is a Form_Load event.

    Just double click on the Form itself, and it should be exposed.

    What defaults do you need to set up?

  3. #3

    Thread Starter
    Frenzied Member MaximilianMayrhofer's Avatar
    Join Date
    Aug 2007
    Location
    IM IN YR LOOP
    Posts
    2,001

    Re: [2008] Create a FormLoad event in .NET and how to reference .NET 3.5

    I don't understand what you mean by defaults. Sorry really really new... ::

    I just noticed that when i hover the cursor over one of the controls the tooltip says version 2.0.0.0 .NET Component. Shouldn't it be saying 3.5.0.0?

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2008] Create a FormLoad event in .NET and how to reference .NET 3.5

    I don't have VS 2008 here to test but if you've created a Windows Forms project then they may be version 2 controls because I'm not sure that WinForms has changed since version 2.0. If you create a WPF project then they certainly should be version 3.0 at least, quite possibly 3.5.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    Lively Member 5applerush's Avatar
    Join Date
    Nov 2006
    Location
    Shelby, Mi
    Posts
    98

    Re: [2008] Create a FormLoad event in .NET and how to reference .NET 3.5

    Hi guys,

    I'm also looking for some clarification as to the framework version of controls or classes that are used in my projects. I understand that there is a clear difference between Windows Presentation Foundation (WPF) controls, and that they would only be available when working in a WPF project, but what about controls that have simply been updated in the next framework. For example, If one had a windows form dialog with controls from .net 1.0 and then installed .net 2.0...

    - Would any updated controls (such as a textbox) automatically override the older versions in that project?
    - If so, where can one look to see which framework version a particular control, or object is from?
    - Are controls only part of the development environment, and not .Net frameworks?

    I've looked in the object browser for version reference, but didn't see any.

    Pardon my ignorance - now that I'm getting into the interface design of my project, I realize that all of my books are about the "language" and not the rapid application development enviornment. (I have two windows forms books on the way.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width