Click here to Skip to main content
15,887,477 members
Home / Discussions / C#
   

C#

 
QuestionIs there a way to make "speakers" pickup 440hz? Pin
Member 1148826328-Feb-15 18:13
Member 1148826328-Feb-15 18:13 
AnswerRe: Is there a way to make "speakers" pickup 440hz? Pin
OriginalGriff28-Feb-15 20:05
mveOriginalGriff28-Feb-15 20:05 
AnswerRe: Is there a way to make "speakers" pickup 440hz? Pin
Frankie-C1-Mar-15 1:21
Frankie-C1-Mar-15 1:21 
AnswerRe: Is there a way to make "speakers" pickup 440hz? Pin
GrooverFromHolland1-Mar-15 1:25
GrooverFromHolland1-Mar-15 1:25 
QuestionIs there Any Way to Set the Namespace of a Web Service in Configuration instead of Code? Pin
jojoba2027-Feb-15 22:52
jojoba2027-Feb-15 22:52 
AnswerRe: Is there Any Way to Set the Namespace of a Web Service in Configuration instead of Code? Pin
Dave Kreskowiak28-Feb-15 4:08
mveDave Kreskowiak28-Feb-15 4:08 
AnswerRe: Is there Any Way to Set the Namespace of a Web Service in Configuration instead of Code? Pin
jojoba2028-Feb-15 22:35
jojoba2028-Feb-15 22:35 
QuestionDataGridView Entry Disappears (C#) Pin
Member 1148588827-Feb-15 8:53
Member 1148588827-Feb-15 8:53 
When I add an item to the datagridview (from another form), it shows up just fine. But when I try to add another item to the datagridview, only the new item appears, and the previous one gets thrown out, it appears.

Note that I'm using .Hide, and .Show, to move between two forms (add_form and main_form). I've tried using .ShowDialog to see if it would fix the problem, but instead I get multiple instances of the same window open after moving back and forth between forms.

How can I fix this problem?

Here is the code that adds to the DGV:
C#
private void add_Click(object sender, EventArgs e)
    {           
        //OBJECT REFERENCE TO DGV
        invmain invmainobject = new invmain();

        //SWITCH STATEMENT FOR DIRECTING USER-ENTERED INVENTORY DATA  
        //TO THE APPROPRIATE TABCONTROL TAB AND DGV<1:4>

        switch(combobox1.SelectedIndex)
        {
            case 0: //ELECTRICAL
                invmainobject.datagridview1.Rows.Add(itembox.Text, quantitybox.Text);
                break;
            case 1: //MECHANICAL
                invmainobject.datagridview2.Rows.Add(itembox.Text, quantitybox.Text);
                break;
            case 2: //CABLES
                invmainobject.datagridview3.Rows.Add(itembox.Text, quantitybox.Text);
                break;
            case 3: //MISC.
                invmainobject.datagridview4.Rows.Add(itembox.Text, quantitybox.Text);
                break;
            default:
                MessageBox.Show("Please select a category.\t\t");
                combobox1.Focus();
                return;
               }
                invmainobject.Show();
                this.Close();

AnswerRe: DataGridView Entry Disappears (C#) Pin
Dave Kreskowiak27-Feb-15 11:26
mveDave Kreskowiak27-Feb-15 11:26 
GeneralRe: DataGridView Entry Disappears (C#) Pin
Member 1148588827-Feb-15 12:08
Member 1148588827-Feb-15 12:08 
GeneralRe: DataGridView Entry Disappears (C#) Pin
Dave Kreskowiak27-Feb-15 13:16
mveDave Kreskowiak27-Feb-15 13:16 
GeneralRe: DataGridView Entry Disappears (C#) Pin
Member 114858881-Mar-15 11:32
Member 114858881-Mar-15 11:32 
GeneralRe: DataGridView Entry Disappears (C#) Pin
Dave Kreskowiak1-Mar-15 12:43
mveDave Kreskowiak1-Mar-15 12:43 
GeneralRe: DataGridView Entry Disappears (C#) Pin
Member 114858881-Mar-15 13:45
Member 114858881-Mar-15 13:45 
GeneralRe: DataGridView Entry Disappears (C#) Pin
Dave Kreskowiak1-Mar-15 15:29
mveDave Kreskowiak1-Mar-15 15:29 
QuestionHow can I pass a Lync url from C sharp to Lync and launch the meeting? Pin
turbosupramk327-Feb-15 6:27
turbosupramk327-Feb-15 6:27 
AnswerRe: How can I pass a Lync url from C sharp to Lync and launch the meeting? Pin
Eddy Vluggen1-Mar-15 22:48
professionalEddy Vluggen1-Mar-15 22:48 
GeneralRe: How can I pass a Lync url from C sharp to Lync and launch the meeting? Pin
turbosupramk32-Mar-15 6:32
turbosupramk32-Mar-15 6:32 
GeneralRe: How can I pass a Lync url from C sharp to Lync and launch the meeting? Pin
Eddy Vluggen2-Mar-15 7:54
professionalEddy Vluggen2-Mar-15 7:54 
QuestionAudio Finger Print For Advertisements Provider (For Discussion) Pin
Max Bayne27-Feb-15 0:29
Max Bayne27-Feb-15 0:29 
AnswerRe: Audio Finger Print For Advertisements Provider (For Discussion) Pin
Pete O'Hanlon27-Feb-15 2:47
mvePete O'Hanlon27-Feb-15 2:47 
GeneralRe: Audio Finger Print For Advertisements Provider (For Discussion) Pin
Max Bayne27-Feb-15 21:35
Max Bayne27-Feb-15 21:35 
QuestionParse Stream by Pattern Pin
gpc4426-Feb-15 23:37
gpc4426-Feb-15 23:37 
AnswerRe: Parse Stream by Pattern Pin
OriginalGriff27-Feb-15 0:12
mveOriginalGriff27-Feb-15 0:12 
GeneralRe: Parse Stream by Pattern Pin
gpc4427-Feb-15 0:57
gpc4427-Feb-15 0:57 

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.