Click here to Skip to main content
15,911,531 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: Error on file.copy Pin
Chetan Patel7-Sep-07 2:41
Chetan Patel7-Sep-07 2:41 
AnswerRe: Error on file.copy Pin
Scott Dorman7-Sep-07 4:57
professionalScott Dorman7-Sep-07 4:57 
QuestionDropdown list event in Windows forms (.NET 2.0) Pin
Subrahmanyam K6-Sep-07 1:45
Subrahmanyam K6-Sep-07 1:45 
Questionundo Pin
ellllllllie5-Sep-07 4:38
ellllllllie5-Sep-07 4:38 
AnswerRe: undo Pin
Dave Kreskowiak5-Sep-07 5:23
mveDave Kreskowiak5-Sep-07 5:23 
AnswerRe: undo Pin
Pete O'Hanlon5-Sep-07 12:12
mvePete O'Hanlon5-Sep-07 12:12 
GeneralRe: undo Pin
Paul Conrad26-Sep-07 16:16
professionalPaul Conrad26-Sep-07 16:16 
QuestionWinForms Applications connected to databases best practices Pin
Marcosm644-Sep-07 15:24
Marcosm644-Sep-07 15:24 
Hello,

I've never read any articles on what are best practices on designing WinForms (or desktop applications in general) that make heavy use of a database, specifically when the database is in the same computer as the application, does anyone have any good links?

Anyway, my main question is about connection opening/closing, is it a good idea to open and close a connection every time you query the database? or is it better to open the connection when the form loads and then close it when the application closes?

What if the database is in a different computer? in my short experience it seems like only the first time you open the connection it can take some time, after that it seems to be instantaneous.

Any tips or recommendation in this area would be greatly appreciated.
AnswerRe: WinForms Applications connected to databases best practices Pin
Giorgi Dalakishvili4-Sep-07 20:50
mentorGiorgi Dalakishvili4-Sep-07 20:50 
GeneralRe: WinForms Applications connected to databases best practices Pin
Marcosm645-Sep-07 9:02
Marcosm645-Sep-07 9:02 
QuestionMore trouble with tool tips... Pin
chaiguy13374-Sep-07 15:08
chaiguy13374-Sep-07 15:08 
QuestionGet the folder path Pin
vimal_yet4-Sep-07 1:16
vimal_yet4-Sep-07 1:16 
AnswerRe: Get the folder path Pin
Spacix One4-Sep-07 10:43
Spacix One4-Sep-07 10:43 
QuestionDropdown column in Datagrid Pin
André Stroebel4-Sep-07 0:09
André Stroebel4-Sep-07 0:09 
AnswerRe: TreeView Navigation Pin
Giorgi Dalakishvili2-Sep-07 10:02
mentorGiorgi Dalakishvili2-Sep-07 10:02 
GeneralRe: TreeView Navigation Pin
Luc Pattyn3-Sep-07 5:27
sitebuilderLuc Pattyn3-Sep-07 5:27 
GeneralRe: TreeView Navigation Pin
Pete O'Hanlon3-Sep-07 9:11
mvePete O'Hanlon3-Sep-07 9:11 
GeneralRe: TreeView Navigation Pin
Luc Pattyn3-Sep-07 9:18
sitebuilderLuc Pattyn3-Sep-07 9:18 
QuestionEnable the smart tag menu at run-time Pin
kaminem31-Aug-07 2:53
kaminem31-Aug-07 2:53 
AnswerRe: Enable the smart tag menu at run-time Pin
Christian Graus2-Sep-07 11:17
protectorChristian Graus2-Sep-07 11:17 
QuestionCinema Application Pin
1203b564230-Aug-07 15:30
1203b564230-Aug-07 15:30 
AnswerRe: Cinema Application Pin
Michael Sync30-Aug-07 20:18
Michael Sync30-Aug-07 20:18 
AnswerRe: Cinema Application Pin
Christian Graus2-Sep-07 10:29
protectorChristian Graus2-Sep-07 10:29 
GeneralRe: Cinema Application Pin
Vasudevan Deepak Kumar5-Sep-07 7:07
Vasudevan Deepak Kumar5-Sep-07 7:07 
QuestionFailed to identify calling batch script Pin
Jack Rong30-Aug-07 9:23
Jack Rong30-Aug-07 9:23 

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.