Click here to Skip to main content
16,020,669 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Problem in Drag Drop data binding wizard in a master detail form with vs 2008 Pin
Suraj Chandran12-Jul-09 18:21
Suraj Chandran12-Jul-09 18:21 
GeneralRe: Problem in Drag Drop data binding wizard in a master detail form with vs 2008 Pin
Henry Minute13-Jul-09 0:16
Henry Minute13-Jul-09 0:16 
QuestionBlackjack Game Simulator Pin
pdntspad8029-Jul-09 16:49
pdntspad8029-Jul-09 16:49 
AnswerRe: Blackjack Game Simulator Pin
Luc Pattyn9-Jul-09 22:40
sitebuilderLuc Pattyn9-Jul-09 22:40 
GeneralRe: Blackjack Game Simulator Pin
DoctorMick10-Jul-09 4:59
DoctorMick10-Jul-09 4:59 
GeneralRe: Blackjack Game Simulator Pin
Luc Pattyn10-Jul-09 7:24
sitebuilderLuc Pattyn10-Jul-09 7:24 
NewsFront Runner supports software companies get compatible with Windows 7, Windows Server 2008 R2 Pin
brucedkyle8-Jul-09 14:22
brucedkyle8-Jul-09 14:22 
QuestionModal form opens second modal form when OK clicked on second form both close Pin
ProSlacker8-Jul-09 4:27
ProSlacker8-Jul-09 4:27 
I open a modal form to search for an order that opens another modal form to search for a customer ID to narrow the order search. When OK is clicked on the second form both modals close and return to the main form. Can someone smarter than I please point me in the right direction?

code that opens first modal
private void OpenSalesOrderSearch()
        {
            try
            {
                SOSearch soSearch = new SOSearch();
                if (soSearch.ShowDialog() == DialogResult.OK)
                {
                    MessageBox.Show("custID=" + soSearch.custID);
                    
                }
                
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
         
        }


code for second modal
private void CustomerSearch()
        {
            try
            {
                CustSearch custSearch = new CustSearch();
                if (custSearch.ShowDialog() == DialogResult.OK)
                {
                    custID = custSearch.custID;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }


OK button code for second modal
private void btnOK_Click(object sender, EventArgs e)
        {
            custID = dgvCustomer.CurrentRow.Cells[0].Value.ToString();
            
        }

AnswerRe: Modal form opens second modal form when OK clicked on second form both close Pin
ProSlacker8-Jul-09 7:37
ProSlacker8-Jul-09 7:37 
GeneralRe: Modal form opens second modal form when OK clicked on second form both close Pin
BillWoodruff14-Jul-09 19:39
professionalBillWoodruff14-Jul-09 19:39 
QuestionVisual Studio 2008 Express Edition has bad memory. Pin
Baeltazor8-Jul-09 0:05
Baeltazor8-Jul-09 0:05 
AnswerRe: Visual Studio 2008 Express Edition has bad memory. Pin
molesworth8-Jul-09 3:13
molesworth8-Jul-09 3:13 
QuestionData Form collection using excel Pin
mairead 20097-Jul-09 5:23
mairead 20097-Jul-09 5:23 
QuestionHTML Viewer? Pin
jp2code7-Jul-09 4:59
professionaljp2code7-Jul-09 4:59 
AnswerRe: HTML Viewer? Pin
DoctorMick7-Jul-09 5:45
DoctorMick7-Jul-09 5:45 
GeneralRe: HTML Viewer? Pin
jp2code7-Jul-09 10:24
professionaljp2code7-Jul-09 10:24 
AnswerRe: HTML Viewer? Pin
Luc Pattyn7-Jul-09 12:10
sitebuilderLuc Pattyn7-Jul-09 12:10 
GeneralRe: HTML Viewer? Pin
jp2code7-Jul-09 16:27
professionaljp2code7-Jul-09 16:27 
GeneralRe: HTML Viewer? Pin
Luc Pattyn7-Jul-09 18:05
sitebuilderLuc Pattyn7-Jul-09 18:05 
QuestionHow to access the pages in a PrintPreviewControl? Pin
Alan Burkhart3-Jul-09 7:16
Alan Burkhart3-Jul-09 7:16 
QuestionHow to resize a user control both at run time and design time Pin
honey.rpk2-Jul-09 20:17
honey.rpk2-Jul-09 20:17 
AnswerRe: How to resize a user control both at run time and design time Pin
dan!sh 2-Jul-09 23:29
professional dan!sh 2-Jul-09 23:29 
AnswerRe: How to resize a user control both at run time and design time Pin
Henry Minute3-Jul-09 0:00
Henry Minute3-Jul-09 0:00 
GeneralRe: How to resize a user control both at run time and design time Pin
honey.rpk3-Jul-09 1:36
honey.rpk3-Jul-09 1:36 
GeneralRe: How to resize a user control both at run time and design time PinPopular
Henry Minute3-Jul-09 1:50
Henry Minute3-Jul-09 1:50 

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.