|
-
Nov 12th, 2007, 09:44 AM
#1
[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?
-
Nov 12th, 2007, 09:46 AM
#2
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?
-
Nov 12th, 2007, 09:55 AM
#3
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?
-
Nov 12th, 2007, 09:35 PM
#4
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.
-
Dec 1st, 2007, 01:10 PM
#5
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|