C
C#2y ago
Alien Jexs

❔ Moving from consoleapp to wpf?

hi im fairly new to programming and I want to take this code https://pastebin.com/F2cZ5Anb and place it in a program that has windows windows as in log in screen sign up screen and a system that holds username and passwords so i assume WPF would be the right choice but how would i go about placing this code in the correct areas? Whats a good source of info?
Pastebin
using System;using System.IO;namespace MyApp{ class Program {...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
13 Replies
x0rld
x0rld2y ago
@Alien Jexs
Alien Jexs
Alien Jexs2y ago
Hi
x0rld
x0rld2y ago
( just pinged you to make it appear xD)
Alien Jexs
Alien Jexs2y ago
oh how do i keep track of this?
x0rld
x0rld2y ago
it should stay here
x0rld
x0rld2y ago
https://youtu.be/SfTdUNuApYc it would be maybe different with .net 6/7 but similar
SingletonSean
YouTube
Setting up Logging (w/ .NET Host, Serilog, and File Logging) - EASY...
Learn how to setup logging in a WPF application. In WPF, the best destination to write logs is to a file. However, Microsoft does not provide a mechanism to write logs to a file. That said, I also demonstrate how to leverage third-party logging providers, in this case Serilog, to write logs to a file. I go over a few useful configuration options...
Alien Jexs
Alien Jexs2y ago
what does this video have to do with my question? just curious
x0rld
x0rld2y ago
Logging with wpf ?
Angius
Angius2y ago
Just click this
Angius
Angius2y ago
Logging in, as in, an account To answer your question though... you'd need to run this code on some event, a button click for example
x0rld
x0rld2y ago
Lol i was really tired
Angius
Angius2y ago
Any input from the console would be replaced by input from textboxes And any output to the console would be replaced by whatever else you need, like displaying a textblock with an error, or navigating to a new page
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.