Activation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to make a UI with C# to connect to SQL DB & retrieve data from
the tables
i want to make for example 3 forms , the first one has some data from
certain table
when checked or choosen it drives me to another form having other data
& so on
i use add & remove pannels
as in the click event of the control on pannel1 it removes this pannel &
add pannel2 which retirve this data in it & so on

i wannna make a back button & forward button
how could i get the Active Panel to tell him what is the prevous & next
pannel ,
i used this.Active control , but didnt work ?? coz the active control
at this time is the button :)


and is it better to make it using forms insead of pannels
, but the problem is that when i show a form

it's opened over the excisting one !!

plzzzzz help & sample code if possible


other question is there a ready code for such application
as a full project with add , edit & delete to the DB
is there any other useful links that could help in that
or PDF doc plzz tell me .
 
In general, you want to use the 'memento' design pattern.
This is the same kind of operation as Edit-Undo and Edit-Redo.

Google 'Memento Design Pattern' and you'll get a large number of useful
hits.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Back
Top