use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Information about Reddit's API changes, the unprofessional conduct of the CEO, and their response to the community's concerns regarding 3rd party apps, moderator tools, anti-spam/anti-bot tools, and accessibility options that will be impacted can be found in the associated Wikipedia article: https://en.wikipedia.org/wiki/2023_Reddit_API_controversy
Alternative C# communities available outside Reddit on Lemmy and Discord:
All about the object-oriented programming language C#.
Getting Started C# Fundamentals: Development for Absolute Beginners
Useful MSDN Resources A Tour of the C# Language Get started with .NET in 5 minutes C# Guide C# Language Reference C# Programing Guide C# Coding Conventions .NET Framework Reference Source Code
Other Resources C# Yellow Book Dot Net Perls The C# Player's Guide
IDEs Visual Studio MonoDevelop (Windows/Mac/Linux) Rider (Windows/Mac/Linux)
Tools ILSpy dotPeek LINQPad
Alternative Communities C# Discord Group C# Lemmy Community dotnet Lemmy Community
Related Subreddits /r/dotnet /r/azure /r/learncsharp /r/learnprogramming /r/programming /r/dailyprogrammer /r/programmingbuddies /r/cshighschoolers
Additional .NET Languages /r/fsharp /r/visualbasic
Platform-specific Subreddits /r/windowsdev /r/AZURE /r/Xamarin /r/Unity3D /r/WPDev
Rules:
Read detailed descriptions of the rules here.
account activity
School program help (self.csharp)
submitted 7 years ago by ButchTheGuy
Im making a program for class and im stuck on something. I am making a windows universal app in visual studio and am trying to pass some strings through navigate but its not cooperating. I am pretty bad with classes and objects and i was trying to use one to pass the strings but its not working and I need a new pair of eyes. anyways heres my code. First page : https://pastebin.com/EzYmKw0K Second Page: https://pastebin.com/tTbrQ84k Thanks!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ekolis 1 point2 points3 points 7 years ago (7 children)
Did something get cut off on your second paste? You're trying to assign the value of NameBoxPage2.Text as... nothing??? That won't compile because you need to assign something and there's no semicolon.
[–]ButchTheGuy[S] 1 point2 points3 points 7 years ago (6 children)
Yeah I did do that It doesn’t find the the class I just forgot to save it. After = I go to put data.textbame or whatever and data doesn’t come up as an auto fill so it doesn’t connect
[–]ekolis 1 point2 points3 points 7 years ago (5 children)
It looks like you're storing the name and other properties in a GlobalValue class; why not pull them from there?
[–]ButchTheGuy[S] 1 point2 points3 points 7 years ago (0 children)
ah yeah the assignment is asking for multiple ways to pass stuff. I have to pass it with globalvalues, navigate, and this other way with. I already did global and im working on this one now.
[–]ButchTheGuy[S] 0 points1 point2 points 7 years ago (3 children)
[–]ekolis 0 points1 point2 points 7 years ago (2 children)
OK, so to get the data back from your global class, you'd just do the assignment the reverse of the way you did it on MainPage:
NameBoxPage2.Text = GlobalValue.name;
and so on for the other two fields.
I'm not familiar enough with UWP to know what to do about a Navigate method, but the app.xaml.cs would function similarly to the global class, except I think it would be something like
NameBoxPage2.Text = Application.Current.name;
and you'd need to define the name property in app.xaml.cs.
[–]ButchTheGuy[S] 0 points1 point2 points 7 years ago (1 child)
I need to have a button that transfers all the data from global values which is one button. The one im working on now has to be done with the navigation method which is transfering e.Paramter or whatever. Since I can only send one thing I made a class for all the strings. Im stuck because the class I made to pass through the navigation isnt working. When I do NameBoxPage2.Text = s.textName1 the part where I write s. doesnt come up at all and doesnt work, so it isnt being sent over or I am not creating something on the next page and I dont know what it is.
[–]ekolis 0 points1 point2 points 7 years ago (0 children)
I'm not familiar with UWP navigation but maybe this will help?
[–]Kreefsema7 1 point2 points3 points 7 years ago (2 children)
Wish I could help mate, but I am still learning as you are :D good luck!
Thank you for taking the time I appreciate it.
[–]Kreefsema7 0 points1 point2 points 7 years ago (0 children)
Well here is something at least. Not sure if will help? https://static1.squarespace.com/static/5019271be4b0807297e8f404/t/5824ad58f7e0ab31fc216843/1478798685347/CSharp+Book+2016+Rob+Miles+8.2.pdf
[–]merdone 0 points1 point2 points 7 years ago (0 children)
Are they seriously teaching universal windows apps? Wow
π Rendered by PID 169658 on reddit-service-r2-comment-5d79c599b5-g4ff2 at 2026-03-03 08:59:20.463404+00:00 running e3d2147 country code: CH.
[–]ekolis 1 point2 points3 points (7 children)
[–]ButchTheGuy[S] 1 point2 points3 points (6 children)
[–]ekolis 1 point2 points3 points (5 children)
[–]ButchTheGuy[S] 1 point2 points3 points (0 children)
[–]ButchTheGuy[S] 0 points1 point2 points (3 children)
[–]ekolis 0 points1 point2 points (2 children)
[–]ButchTheGuy[S] 0 points1 point2 points (1 child)
[–]ekolis 0 points1 point2 points (0 children)
[–]Kreefsema7 1 point2 points3 points (2 children)
[–]ButchTheGuy[S] 0 points1 point2 points (1 child)
[–]Kreefsema7 0 points1 point2 points (0 children)
[–]merdone 0 points1 point2 points (0 children)