How to create Background Process Application in Windows? [closed] - wpf

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I developed one chat-based Application like Skype. Once I opened that application I get to receive the message after I closed that application I can't get messages. So I Move on Background Process on my Application when system startup it also runs behind.
Guide me it Possible?
Regards
Dinesh D

One simple way is using tray icon application and timer that will check your messages every X minutes.
So the application won't be closed but only tray icon will be shown only in a tray area (application windows should be hidden - it needs to implement it on close button instead of exit from application, for example). And timer will work and receive messages while the application is not closed from the tray.
To implement tray icon in WPF you can use Hardcodet.NotifyIcon.Wpf and Hardcodet.Wpf.TaskbarNotification packages from nuget. You also can show popups from tray using this packages.

Related

Custom font in batch file [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am currently making a Text user interface/TUI in batch. I want the font in the command prompt (console) to be exactly the same as the default Windows font, and I wish to do it without making registry changes. Is this possible?
(I can't give debug details right now, sorry about that.)
According to this website the default Windows 10 font is Segeo UI. I couldn't find a way to set this as the font used in the basic command prompt, as it seems to be restricted to a set amount of fonts, however the new Windows Terminal which can be downloaded from the Windows Store allows you to.
You simply press ctrl + , to open settings, go down to the Command Prompt profile on the left hand side, then go to appearance, and click show all fonts
Once you've clicked that, open the fonts dropdown and you'll find Segeo UI in the menu
Then just click save, and job done!

WPF application - create custom hyperlinks [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
We are developing a WPF application and we have a requirement that a user can open certain screen and they need an option to create link and then paste them outside of the application like outlook or Skype etc... Once they paste it should appear as a link and when they click on the link it should open the application and navigate to the screen for which the link was created.
To achieve this we are trying to create a custom links like appname://, and on clicking we are trying to open the application and pass the guid as parameter.
Can you point us on how to create custom links and map them to navigate to particular exe on clicking?
You'll have to register your own URI Scheme in the registry and link it to your application executable path
HKEY_CLASSES_ROOT
alert
(Default) = "URL:Alert Protocol"
URL Protocol = ""
DefaultIcon
(Default) = "alert.exe,1"
shell
open
command
(Default) = "C:\Program Files\Alert\alert.exe" "%1"
You can read more on it here

How to get Vulkan context from X11 window in C? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm trying to create a Vulkan application in Linux. How can I obtain a Vulkan context from a raw X11 window, no Qt or GTK involved.
Thanks :)
If you already got your X11 window you need to define VK_USE_PLATFORM_XLIB_KHR and create a Vulkan compatible surface from it using vkCreateXlibSurfaceKHR, or if you want to use XCB you'd use vkCreateXcbSurfaceKHR and define VK_USE_PLATFORM_XCB_KHR.
Also note that you need to provide the proper surface extension at instance creation time. Either VK_KHR_XLIB_SURFACE_EXTENSION_NAME or VK_KHR_XCB_SURFACE_EXTENSION_NAME.
You then provide that surface at swapchain creation time (given your application does some visible output).
See the WSI chapter of the spec for details.

How do I create a multiform GTK App [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Hi I have been playing around with C and Gtk trying to learn a thing or two
Now wondering how do I create an application that has more then one form.
Do I just clear the window out or do I create new windows every time I want to have another form or view.
and does anyone know a good place to learn this type of thing?
I assume your goal is to use one window but change (large parts of) the window contents at times?
The widget you are looking for is GtkStack, which is a container that will only show one of its children at a time. You can use a Stack with user visible controls (StackSwitcher) or from your own code.
The Stack was only added in 3.10, so in earlier GTK+ versions you'll need to do the work yourself: Add your "forms" as children of a Box and make sure only one child is shown at a time.
does anyone know a good place to learn this type of thing?
To find out what kind of widgets you have at your disposal, I suggest reading the fine manual: https://developer.gnome.org/gtk3/stable/.

How to start wpf application every time when computer starts? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have developed wpf application, in which I have reminder functionality.
Case 1: Current Scenario
Currently I have place my application in startup folder in setup. and application starts whenever my computer starts. But now I have added login functionality so now my client need to login whenever computer starts which is annoying.
According to my functionality, After login into system reminder starts in background.
Case 2: Required
Now what I required is that my application starts in background without login into system, Reminder functionality works as if right now working.
Any help will be appreciated...
Starting a program without a user requires it written as a service, or started from one.
There are ways to start an exe file from a service.
Developing a service is basically the same as any other application; but without the GUI. Debugging a service is tedious so you should move the parts you want to execute when running as a service into a DLL. Then you should have an exe to load and execute the methods of the DLL.
This way you have an easy way to debug the functionality of the service; and can have as few times debugging-when-running-as-a-service as possible.
There are certain caveats when starting and stopping a service, mainly because the old service wasn't stopped and uninstalled as you supposed.
Tip: Autorun helps you survey the 4 or more ways to automatically start an application.
How to let a service show a GUI then? I haven't written one myself but found two valid links here and here.

Resources