Click here to Skip to main content
15,920,438 members
Home / Discussions / C#
   

C#

 
Questionnative code. Pin
Pankaj Garg13-Mar-08 22:37
Pankaj Garg13-Mar-08 22:37 
GeneralRe: native code. Pin
CPallini13-Mar-08 23:10
mveCPallini13-Mar-08 23:10 
GeneralRe: native code. Pin
led mike14-Mar-08 4:46
led mike14-Mar-08 4:46 
Generalmodify icon at run time in DSL Pin
Maddie from Dartford13-Mar-08 22:14
Maddie from Dartford13-Mar-08 22:14 
Generalcpu temperature Pin
ziwez013-Mar-08 21:45
ziwez013-Mar-08 21:45 
GeneralRe: cpu temperature Pin
yoaz13-Mar-08 23:11
yoaz13-Mar-08 23:11 
GeneralRe: cpu temperature Pin
ziwez013-Mar-08 23:41
ziwez013-Mar-08 23:41 
Generalcompare date error Pin
angels77713-Mar-08 20:58
angels77713-Mar-08 20:58 
GeneralRe: compare date error Pin
Giorgi Dalakishvili13-Mar-08 21:42
mentorGiorgi Dalakishvili13-Mar-08 21:42 
GeneralRe: compare date error Pin
Anubhava Dimri13-Mar-08 23:13
Anubhava Dimri13-Mar-08 23:13 
GeneralRe: compare date error Pin
Anubhava Dimri13-Mar-08 23:13
Anubhava Dimri13-Mar-08 23:13 
GeneralRe: compare date error Pin
angels77714-Mar-08 1:52
angels77714-Mar-08 1:52 
GeneralRe: compare date error Pin
Anubhava Dimri14-Mar-08 2:11
Anubhava Dimri14-Mar-08 2:11 
Questionhow to draw grid points? Pin
Aravinthan13-Mar-08 20:02
Aravinthan13-Mar-08 20:02 
QuestionHow to send and receive file through parallel port????????? Pin
Anez.A13-Mar-08 19:37
Anez.A13-Mar-08 19:37 
AnswerRe: How to send and receive file through parallel port????????? Pin
Matthew Butler14-Mar-08 3:20
Matthew Butler14-Mar-08 3:20 
GeneralRe: How to send and receive file through parallel port????????? Pin
Anez.A16-Mar-08 18:49
Anez.A16-Mar-08 18:49 
GeneralRe: How to send and receive file through parallel port????????? Pin
Matthew Butler28-Mar-08 4:32
Matthew Butler28-Mar-08 4:32 
GeneralRe: How to send and receive file through parallel port????????? Pin
Anez.A30-Mar-08 18:45
Anez.A30-Mar-08 18:45 
QuestionHow to add images to toolstrip menu? Pin
Aravinthan13-Mar-08 19:35
Aravinthan13-Mar-08 19:35 
Generalinsert the records from dataset into database Pin
Miss Maheshwari13-Mar-08 18:47
Miss Maheshwari13-Mar-08 18:47 
AnswerRe: insert the records from dataset into database Pin
Pankaj Garg13-Mar-08 19:57
Pankaj Garg13-Mar-08 19:57 
GeneralFinding Memory Leaks Pin
MAW3013-Mar-08 15:42
MAW3013-Mar-08 15:42 
GeneralRe: Finding Memory Leaks Pin
OR0N13-Mar-08 15:44
OR0N13-Mar-08 15:44 
GeneralConditionally loading global variables Pin
Glen Harvy13-Mar-08 15:25
Glen Harvy13-Mar-08 15:25 
Hi,

I declare various objects to be available in a form immediately in the class declaration eg

public partial class MainForm : Form
{
int totalCourts;
int totalViewPeriods;
int totalBookingPeriods;
int minimumBookingPeriods;

etc...

What I want to do is declare objects conditionally ie if a variable = say 9 then make an object available. Specifically I want to make tableadapters made at design time to be available at runtime.

Is there some way to make these available in the Form Load event?

Glen Harvy

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.