C# WinForm: contextMenuStrip throws InvalidOperationException after .Show() method when called from BackgroundWorker_ProgressChanged event

I have a WindowsForm in C# with a TrayIcon including a contextMenuStrip with a ToolStripTextBox, a FileSystemWatcher and a BackgroundWorker. The FileSystemWatcher throws an event when a new file is created which then starts the BackgroundWorker. The BackgroundWorker reports progress which updates a ToolStripTextBox on the TrayIcon in the ProgressChanged event handler. Curiously this works…

Details

Android GCM message not calling onMessageReceived when the app is in the foreground

According to the documentation: If you want foregrounded apps to receive notification messages or data messages, you’ll need to write code to handle the onMessageReceived callback. What I have: I have the service extending FirebaseMessagingService and overriding onMessageReceived as explained in the documentation (also in the manifest and the permissions). The payload of the message…

Details

Quotes encoded in url

I need to call this url https://graph.microsoft.com/beta/users?$filter=startswith(displayName,’Matteo’) This is my typescript/angular code: import {HttpClient} from ‘@angular/common/http’; import {Injectable} from ‘@angular/core’; @Injectable() export class EmployeeService { baseurl: string; constructor(private http: HttpClient) { this.baseurl = ‘https://graph.microsoft.com/beta/users’; } search(term: string) { const url = this.baseurl + “?$filter=startswith(displayName,'” + term + “‘)&select=employeeId&mailNickname”; return this.http.get(url).subscribe(response => console.log(response)); } But I…

Details