Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6921203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:14:45+00:00 2026-05-27T10:14:45+00:00

I am currently developing a WCF publish subscribe service for my asp.net publisher and

  • 0

I am currently developing a WCF publish subscribe service for my asp.net publisher and the windows form application subscriber.

For the windows form application, I would be using a flow layout panel to generate the list of panels (of notifications) for my application. When the publisher(asp.net application) publish a post to the service, every subscriber would be able to receive the information and update their panels accordingly. As for my flowlayoutpanel, I have a ComboBox to filter the types of notification, mainly type 1 and 2.

the code for the ComboBox alert is

private void comboAlertType_SelectedIndexChanged(object sender, EventArgs e)
{
  flowLayoutForAlert.Dispose();

  populateList();
  if (comboAlertType.SelectedIndex == 0)
  {
    flowLayoutForAlert = createFlowLayoutPanel(1);
  }
  else if (comboAlertType.SelectedIndex == 1)
  {
    flowLayoutForAlert = createFlowLayoutPanel(2);
  }
  else
  {
    flowLayoutForAlert = createFlowLayoutPanel(3);
  }
  this.Controls.Add(flowLayoutForAlert);
}

the createFlowlayoutpanel(#) is just a method for me to create the panels. The integer inside stands for the type of panels shown, mainly 1 for every single panels, 2 for important ones and 3 for normal ones.

for my PostReceived() callback method for the wcf service, i have the following code

public void PostReceived(String alertId)
{
  backgroundForm b = (backgroundForm) Application.OpenForms[0];

  b.BeginInvoke((MethodInvoker)delegate()
  {
      b.getMainFormObject().lblSearch.Text = "lakjslkaja";
      b.getSettingsFormObject().player.Play();
      b.getMainFormObject().notificationList.Add(new notificationForm("", "", "", "", "", "", 1, 1));
      b.getMainFormObject().populateList();
      b.getMainFormObject().mainFormLoad();
  });
}

the code for the mainFormLoad is

public void mainFormTesting()
{
  notificationForm tempForm = (notificationForm)notificationList[0];
  tempForm.Show();

  flowLayoutForAlert = createFlowLayoutPanel(1);
  this.Controls.Add(flowLayoutForAlert);
}

when I first start the application, the combobox alert filter works for the initial amount of panels, but when I publisher a post and the app receives the post, it sort of screws up the combo box filter function.

Can anyone solve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:14:46+00:00Added an answer on May 27, 2026 at 10:14 am

    Managed to solve it by first disposing the original panels before calling the codes above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently developing a WCF Publish Subscribe service on a windows form application.
I am currently developing a WCF Publish Subscribe Service. The publisher would be a
i am currently developing a wcf publish subscribe service. On my windows form app,
I am currently developing a WCF Publish Subscribe service in a windows form project.
I am currently developing a asp.net webpage and a WCF publish subscribe service. The
I am currently developing a WCF Publish Subscribe service. The subscriber is a winform
I am currently developing WCF Publish Subscribe Service. For the first I don't know
I am currently developing a WCF Publish Subscribe service. My Service has the following
I am currently developing a WCF publish subscribe service. Is it possible for the
I am currently developing a WCF publish subscribe service on a winform app. How

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.