Dawnbomb
❔ Spreadsheet option for a dict / class? (visual studio)
I finally set a bunch of stuff up and their working correctly, huzah!
Now, i have a dictionary that has a bunch of instances of the same class, and that class has a few variables. However, the number of instances of that class is going to be...very large. It can forsee it going over 150, and i need to set each variable for each copy of the class in that dictionary. My first thought it to use a google spreadsheet then export it, but i'm wondering if visual studio has any built in spreadsheet thing to manage this?
21 replies
❔ ✅ Help with searching a class of classes for something?
So, i have a StartingClass, it has a list of classes, and that list has a list of classes, etc. Eventually it gets to EntryClass.
How do i search StartingClass to find the EntryClass, that THAT entryclass's
string name
is "Dog" and then put THAT entryclass's string something
into a textbox.
so like, DebugTextbox.Text = TargetEntry.Something;
but yeah, how do i search StartingClass to find the correct EntryClass and set that EntryClass as the TargetClass?4 replies
❔ ✅ WPF How to delete Textbox from parent and memory.
After struggling for awhile to find out why
Grid.Parent.Controls.Remove
wasn't accepting parent.
(i never learned how, i just changed to targeting the parent directly with Parent.Children.Remove
)
i am now struggling to find out how to delete from memory as Grid.Dispose();
Doesn't work. I get textbox doesn't have a definition for dispose.
How do i delete a textbox from memory in WPF?
And also although i found a workaround, why does Target.Parent.Controls.Remove
return a error anyway? I assume its because its a winforms command and not WPF, but i've been told it is infact a WPF command. 🤔 (I get no definition for controls). I even tried Grid.Parent.Children.Remove(Grid);
and i still get a error. Considering Grid.Children.Remove
is working, this is rather strange to me.7 replies
❔ How do i assign or change Z order of a button? (Dock buttons)
I'm trying to make a list of buttons appear, and dock them top down to a grid in C#. As with most things WPF, this seems annoyingly difficult. I googled for like 20 minutes and got no answers. I'm not even sure if i'm searching for the wright terms. How do i dock a generated button, and then have the next one also be docked, below the first one? I assume i probably use
MyButton.VerticalAlignment = VerticalAlignment.Top;
but i don't know what the term is to refer to docking or Z index. Because its not Dock or ZIndex or Index or like 10 other things i tried.53 replies
❔ WPF How to change button hover color?
It seems there is some default color WPF uses as a highlight when the user mouses over a button, and i can't figure out what it is, where it is, or how to change it. My closest answer is far is maybe its a system brush, that gets the color from...your operating system? (ew).
130 replies
❔ In winforms or WPF better for making a very basic spreadsheet program.
It will have virtually 0 spreadsheet features, but it will still have 3000 panel/grid cells.
From my research, winforms does screen updates 2x faster, but i know lots of people say to use WPF.
What would would perform better / not deal with lag as much? (And why?)
14 replies
❔ how can WPF change the hover mouseover color of something like Winforms can?
I'm getting increasingly frustrated at how many features WPF is just lacking compared to winforms, and i feel like this is my breaking point. I've googled all over, but how can WPF forms change the color of something on mouseover? Unlike winforms, it seems to do it by default, with no way to disable it or change the color it changes to, without a ton of code. Is there anyway at all to change it in a simple way, or do i really have to do the unreasonable and write multiple paragraphs of code per button/element on a form for something that should just be 1 button click. HELP DX
25 replies
❔ Visual Studio debugger is trolling me & hiding errors and i have no idea why.
https://www.youtube.com/watch?v=gWd6M5IQs9o
Its not even consistently the same bug, sometimes deleteing stuff triggers it, sometimes adding stuff, and it always affects ALL errors globally. Here i managed to distill one really good example video, but it's extremely annoying when trying to work and the errors all disappear and i can't make them come back to figure out whats wrong.
If anyone has any idea why the fuck this is happening. please help 😦
5 replies
❔ Winform - How can I make something happen when clicking a word in a textbox?
How do i make something happenen when a specific word or phrase like "hello world" is clicked in a textbox. Its among other words / phrases, like "oh and hello world today", and there would be more then one word or phrase in a textbox thats clickable and makes something happen.
I want to make words or phrases that when clicked, open a definition explaining them in more detail, but a few minutes of google before bed implied this would be a shitshow to google and i should just post a question before i go to bed.
I was gonna use rich text boxes, but I get the feeling i should use something else, or maybe it will be easier then i think. Thanks whoever tries ❤️
3 replies