Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
GeneralColumnChanging event on Dataset Pin
C#Coder679-Jun-04 7:50
C#Coder679-Jun-04 7:50 
GeneralRe: ColumnChanging event on Dataset Pin
link_799-Jun-04 9:16
link_799-Jun-04 9:16 
GeneralWan x Lan Pin
crisyuri9-Jun-04 7:08
crisyuri9-Jun-04 7:08 
GeneralRe: Wan x Lan Pin
Dave Kreskowiak9-Jun-04 9:37
mveDave Kreskowiak9-Jun-04 9:37 
GeneralWindows Forms Question Pin
OMalleyW9-Jun-04 6:15
OMalleyW9-Jun-04 6:15 
GeneralRe: Windows Forms Question Pin
Michael Potter9-Jun-04 6:24
Michael Potter9-Jun-04 6:24 
GeneralRe: Windows Forms Question Pin
OMalleyW9-Jun-04 7:49
OMalleyW9-Jun-04 7:49 
GeneralRe: Windows Forms Question Pin
Michael Potter10-Jun-04 4:08
Michael Potter10-Jun-04 4:08 
Will,

You are thinking to hard and missing the simple solution. I have coded hundreds of dialogs that process similar logic.

Just because your second form processes data does not mean it can't store the result (PartID) in a public member variable for the other form to pick up. If you are using Modal dialogs (ShowDialog()) then the example template I gave you will work well.

If you are using Modeless dialogs, then the second dialog needs to call back to the first (simply pass a reference to the first form in the constructor).

Think of the question you are asking FormPart: "What is the PartId the user has chosen?"

It doesn't matter to the first form if the part was just created or has been in the database for a century. The first form just needs a valid PartId. Have FormPart do whatever processing it needs to do and store the resultant PartId in a public member variable.

If you are still having trouble, I would be happy to trade a few samples with you until you get the idea. Using the registry is a very sloppy way of handling data transfer within an single process. I would hate to see you continue on that path.

You can contact me directly at mdpotter55@yahoo.com





GeneralRe: Windows Forms Question Pin
Heath Stewart9-Jun-04 8:29
protectorHeath Stewart9-Jun-04 8:29 
Generaldatagrid, datatable adding new rows Pin
HappyPaws9-Jun-04 6:02
HappyPaws9-Jun-04 6:02 
GeneralRe: datagrid, datatable adding new rows Pin
Heath Stewart9-Jun-04 6:07
protectorHeath Stewart9-Jun-04 6:07 
GeneralRe: datagrid, datatable adding new rows Pin
HappyPaws9-Jun-04 8:22
HappyPaws9-Jun-04 8:22 
GeneralRe: datagrid, datatable adding new rows Pin
Heath Stewart9-Jun-04 8:31
protectorHeath Stewart9-Jun-04 8:31 
QuestionLock Excel process? Pin
the last free name9-Jun-04 6:01
the last free name9-Jun-04 6:01 
AnswerRe: Lock Excel process? Pin
Dave Kreskowiak9-Jun-04 11:48
mveDave Kreskowiak9-Jun-04 11:48 
GeneralSkinning Pin
Simon Wren9-Jun-04 5:49
professionalSimon Wren9-Jun-04 5:49 
GeneralRe: Skinning Pin
Heath Stewart9-Jun-04 5:58
protectorHeath Stewart9-Jun-04 5:58 
GeneralRe: Skinning Pin
Simon Wren9-Jun-04 6:03
professionalSimon Wren9-Jun-04 6:03 
GeneralRe: Skinning Pin
Wackatronic10-Jun-04 5:19
Wackatronic10-Jun-04 5:19 
GeneralIP address from VPN connection Pin
Judah Gabriel Himango9-Jun-04 5:20
sponsorJudah Gabriel Himango9-Jun-04 5:20 
GeneralRe: IP address from VPN connection [EDITED] Pin
Dave Kreskowiak9-Jun-04 9:02
mveDave Kreskowiak9-Jun-04 9:02 
GeneralRe: IP address from VPN connection [EDITED] Pin
Judah Gabriel Himango9-Jun-04 9:50
sponsorJudah Gabriel Himango9-Jun-04 9:50 
GeneralLoop through many textboxes Pin
mkennedy779-Jun-04 4:57
mkennedy779-Jun-04 4:57 
GeneralRe: Loop through many textboxes Pin
Guinness4Strength9-Jun-04 5:14
Guinness4Strength9-Jun-04 5:14 
GeneralRe: Loop through many textboxes Pin
Heath Stewart9-Jun-04 5:48
protectorHeath Stewart9-Jun-04 5:48 

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.