C
C#5w ago
Ducki

Getting this error, code runs fine, cant open my form1.cs designer window

hi, learning coding and trying to make a quick game as a mini project, code is by no means optimised or done in an efficient way, im still learning please be nice
No description
30 Replies
Ducki
DuckiOP5w ago
any idea as to what this could be? i can share any parts of the designer or form code
Anchy
Anchy5w ago
This means an exception has occured, click on the Show Call Stack link to view where this error is coming from
Ducki
DuckiOP5w ago
No description
Anchy
Anchy5w ago
It looks you you are using string format somewhere in your code and the format parameter is null
Ducki
DuckiOP5w ago
i will check for anywhere in the code where ive put
= null
= null
give me a second please
Anchy
Anchy5w ago
it may not be that you assigned it to null, look for uses of string format
Ducki
DuckiOP5w ago
just any variables that are made to be strings? can i share my code so you can help me with this? although it will be pretty ugly
Anchy
Anchy5w ago
if you have a github repository you can share that
Ducki
DuckiOP5w ago
i had cloned it from a repository i made on a different device, i assume i can just push it now?
No description
Anchy
Anchy5w ago
i don't know, is it your repository, do you have permission?
Ducki
DuckiOP5w ago
yes it is mine
Anchy
Anchy5w ago
also the stack trace is pretty unhelpful, I am unsure on what is actually triggering that exception could be a designer issue
Ducki
DuckiOP5w ago
give me a minute please
ero
ero5w ago
if you have a *.Designer.cs file, the error might be located there
Ducki
DuckiOP5w ago
I do, yet i cant find what hte issue acutally is https://github.com/DuckiLikesCoding/WhackADiglett.git this should be it
ero
ero5w ago
private
Ducki
DuckiOP5w ago
fixed sorryh
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX5w ago
When creating a new project, prefer using .NET over .NET Framework, unless you have a very specific reason to be using .NET Framework. .NET Framework is now legacy code and only get security fix updates, it no longer gets new features and is not recommended. https://cdn.discordapp.com/attachments/569261465463160900/899381236617855016/unknown.png
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
Ducki
DuckiOP5w ago
ah i chose it because thats what they taught us at college, they did mention it is an older version but did say it works fine and what they are trained to teach
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
Ducki
DuckiOP5w ago
what do you mean by this?
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
Ducki
DuckiOP5w ago
not necessarily :(
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
Ducki
DuckiOP5w ago
oh so similar to when you use sender e => ?
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View
Ducki
DuckiOP5w ago
so how would i use the loader event?
Unknown User
Unknown User5w ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?