Click here to Skip to main content
15,900,472 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionTreeview Populate Parent/Child From Database with Multiple Tables Pin
lam115824-Dec-09 6:32
lam115824-Dec-09 6:32 
QuestionHelp provider+win Form Pin
Ramkumar_S2-Dec-09 20:13
Ramkumar_S2-Dec-09 20:13 
QuestionResizable Form Without FormBorderStyle (None) Pin
m_chopsquad1-Dec-09 13:07
m_chopsquad1-Dec-09 13:07 
AnswerRe: Resizable Form Without FormBorderStyle (None) Pin
Richard Blythe3-Dec-09 14:28
Richard Blythe3-Dec-09 14:28 
Questiondata grid view Pin
Ramkumar_S25-Nov-09 15:19
Ramkumar_S25-Nov-09 15:19 
AnswerRe: data grid view Pin
dan!sh 25-Nov-09 17:17
professional dan!sh 25-Nov-09 17:17 
AnswerRe: data grid view Pin
Mycroft Holmes5-Dec-09 23:39
professionalMycroft Holmes5-Dec-09 23:39 
QuestionAt The Risk Of Being Excoriated... Pin
Roger Wright24-Nov-09 19:38
professionalRoger Wright24-Nov-09 19:38 
I'm back at it, trying to build an app to manage substation equipment. I had to take a little break to design a substation and some new sewer plant motor control circuits, but I'm back at it and still confused. Before you tell me to read a book, I have read two, and ordered another. But the third book won't arrive until Friday, and I have a five day weekend for the Thanksgiving holiday I'd like not to waste. I've also reduced the scope of the problem to manage one kind of device, instead of tackling 4 different types with entirely different information to manage. I figure that if I can get one to work, it won't be nearly as hard to expand as it would be to write it all at once.

I have a SQL Server DB with several tables - a master that holds equipment information that is invariant, a status table that holds information about the current location, last service date, and number of operations since last service, and a pair of tables to hold the histories of readings taken and services performed on each device. I have created a boilerplate app with a main form, and that form has a menu to allow the user to Add, Edit, Move, Service, Read, or View devices. I know this is easy to anyone who does it all the time, but I am well and truly stuck for ideas about where to go from here.

I've tried before to use a sequence of forms, hiding and showing them, to walk a user through a few pages of data entry, but it turned out to be problematic to transfer the data between forms. I've tried using dialog boxes for each step, but had similar problems. I tried using data-bound controls on each form but that quickly became a nightmare, so I'm leaning toward a solution that has the main form collect all the data, then pass it off to functions that update the database. Besides, I believe the separation of data functions and user interface makes good sense from a maintenance point of view.

Is this a place where a MDI is appropriate? Or is the idea of using multiple forms in sequence a better approach? Or should I stick with one form and change the visibility of controls as the user moves through the process. I'm lost here. I think the question is one of architecture, rather than procedure or actual coding, but I don't know if I'm even asking the right questions yet. I've read lots of stuff about making and using forms, but not one example of using two or more in the same app has appeared anywhere I've searched. That leads me to believe that I'm barking up the wrong tree entirely, and there's some secret method used by almost every modern program I've used that isn't written up anywhere. Any book can tell me how to make a form, and I have several that do, in multiple languages. But not one of them mentions movingsfrom form to form, persisting data along the way, until the time comes to save the data from all of them.

Can someone get me started? Pretty please... Roll eyes | :rolleyes:

"A Journey of a Thousand Rest Stops Begins with a Single Movement"

AnswerRe: At The Risk Of Being Excoriated... Pin
Mycroft Holmes25-Nov-09 15:17
professionalMycroft Holmes25-Nov-09 15:17 
GeneralRe: At The Risk Of Being Excoriated... Pin
Roger Wright25-Nov-09 20:26
professionalRoger Wright25-Nov-09 20:26 
GeneralRe: At The Risk Of Being Excoriated... Pin
Mycroft Holmes25-Nov-09 20:58
professionalMycroft Holmes25-Nov-09 20:58 
AnswerRe: At The Risk Of Being Excoriated... Pin
darkelv30-Nov-09 22:17
darkelv30-Nov-09 22:17 
Questionproblem accessing remote database. Pin
S.Aijaz23-Nov-09 23:51
S.Aijaz23-Nov-09 23:51 
AnswerRe: problem accessing remote database. Pin
dan!sh 24-Nov-09 0:08
professional dan!sh 24-Nov-09 0:08 
AnswerRe: problem accessing remote database. Pin
Shameel24-Nov-09 2:15
professionalShameel24-Nov-09 2:15 
Questionresize form and controls according to Screen resolutions Pin
εїзεїзεїз22-Nov-09 21:03
εїзεїзεїз22-Nov-09 21:03 
AnswerRe: resize form and controls according to Screen resolutions Pin
Natza Mitzi22-Nov-09 21:36
Natza Mitzi22-Nov-09 21:36 
GeneralRe: resize form and controls according to Screen resolutions Pin
εїзεїзεїз22-Nov-09 21:47
εїзεїзεїз22-Nov-09 21:47 
GeneralRe: resize form and controls according to Screen resolutions Pin
Natza Mitzi23-Nov-09 0:58
Natza Mitzi23-Nov-09 0:58 
AnswerRe: resize form and controls according to Screen resolutions Pin
dan!sh 22-Nov-09 21:41
professional dan!sh 22-Nov-09 21:41 
QuestionAdvise regarding rich text or xml/xslt editing Pin
tienus20-Nov-09 1:06
tienus20-Nov-09 1:06 
QuestionDisplay error of FolderBrowserDialog on Windows Server 2008 Pin
Caloiv17-Nov-09 23:37
Caloiv17-Nov-09 23:37 
AnswerRe: Display error of FolderBrowserDialog on Windows Server 2008 Pin
Shameel24-Nov-09 2:19
professionalShameel24-Nov-09 2:19 
GeneralRe: Display error of FolderBrowserDialog on Windows Server 2008 Pin
Caloiv25-Nov-09 6:17
Caloiv25-Nov-09 6:17 
QuestionDrag Drop of controls in .net Pin
S.Aijaz17-Nov-09 0:36
S.Aijaz17-Nov-09 0:36 

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.