Click here to Skip to main content
15,901,205 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to create an OpenFileDialog in plain C Pin
The White Warrior1-Mar-06 0:23
The White Warrior1-Mar-06 0:23 
QuestionHELP,about sniffer Pin
breakhearts28-Feb-06 20:25
breakhearts28-Feb-06 20:25 
QuestionCalling a COM DLL method from C# Pin
Spykraft28-Feb-06 18:42
Spykraft28-Feb-06 18:42 
AnswerRe: Calling a COM DLL method from C# Pin
mav.northwind28-Feb-06 21:40
mav.northwind28-Feb-06 21:40 
QuestionGrouping controls in Winforms Pin
jaffarkazi28-Feb-06 18:29
jaffarkazi28-Feb-06 18:29 
AnswerRe: Grouping controls in Winforms Pin
Nicholas Butler28-Feb-06 20:22
sitebuilderNicholas Butler28-Feb-06 20:22 
GeneralRe: Grouping controls in Winforms Pin
jaffarkazi28-Feb-06 21:05
jaffarkazi28-Feb-06 21:05 
GeneralRe: Grouping controls in Winforms Pin
Sean Michael Murphy1-Mar-06 2:53
Sean Michael Murphy1-Mar-06 2:53 
jaffarkazi wrote:
I was stumped with sharing database connections with the user controls. Would this be simple to do?


You wouldn't want to do that anyway.

Your user control will expose a bunch of property gets and sets to broker access to the data being displayed. Once some action on the form (where the user control resides) is taken, like an "OK" button press, you should read the user control properties (which will probably just read the .Text property of the textboxes on the control), use that data to populate a business object which you will pass to your data layer, which knows how to talk to your database.

Your user control shouldn't be talking to your database, if you want to do proper tiered development...

Share and enjoy.
Sean
QuestionServer Security Pin
botuong28-Feb-06 16:58
botuong28-Feb-06 16:58 
QuestionDrawing form without titlebar Pin
2hdass28-Feb-06 15:29
2hdass28-Feb-06 15:29 
AnswerRe: Drawing form without titlebar Pin
Robin Panther28-Feb-06 15:42
Robin Panther28-Feb-06 15:42 
QuestionHow can I capture the "add break point" event? Pin
tiancaidao28-Feb-06 14:53
tiancaidao28-Feb-06 14:53 
Questiondeployment project - registry (reg_multi_sz) Pin
BlackDice28-Feb-06 10:53
BlackDice28-Feb-06 10:53 
AnswerI got it Pin
BlackDice1-Mar-06 4:47
BlackDice1-Mar-06 4:47 
QuestionC# (Pocket PC) Ex. Displaying XML/XSL? Pin
delphidab28-Feb-06 10:13
delphidab28-Feb-06 10:13 
Questioncreating dialogs Pin
Manu_8128-Feb-06 9:08
Manu_8128-Feb-06 9:08 
AnswerRe: creating dialogs Pin
Judah Gabriel Himango28-Feb-06 9:31
sponsorJudah Gabriel Himango28-Feb-06 9:31 
GeneralRe: creating dialogs Pin
Manu_8128-Feb-06 9:48
Manu_8128-Feb-06 9:48 
GeneralRe: creating dialogs Pin
Judah Gabriel Himango28-Feb-06 11:10
sponsorJudah Gabriel Himango28-Feb-06 11:10 
QuestionGerman Umlaute Problem Pin
matthias s.28-Feb-06 8:58
matthias s.28-Feb-06 8:58 
AnswerRe: German Umlaute Problem Pin
Guffa28-Feb-06 10:51
Guffa28-Feb-06 10:51 
QuestionFlickering Pin
RizwanSharp28-Feb-06 8:51
RizwanSharp28-Feb-06 8:51 
AnswerRe: Flickering Pin
Judah Gabriel Himango28-Feb-06 9:28
sponsorJudah Gabriel Himango28-Feb-06 9:28 
GeneralRe: Flickering Pin
RizwanSharp28-Feb-06 17:57
RizwanSharp28-Feb-06 17:57 
GeneralRe: Flickering Pin
J4amieC28-Feb-06 21:46
J4amieC28-Feb-06 21:46 

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.