32 Replies
we need more info/context. when is the error happening? when you try to open a windows forms designer?
i guess he was creating his component
when i drag the control form onto form1
share your code for DarkRPReportForm
you have to have a cunstructor with no parameters
add a
public DarkRPReportForm() {}
i keep hearing about cunstructors but i have no idea what they are
constructors are special methods. the ones where the name of the method is the same as the name of the type
that is a constructor yes
but you also need one that takes no parameters
oh
so like that?
add
InitializeComponent();
too
inside the new constructoris that it?
save it and try to add it to your form again
still get this
also, you generally shouldnt be putting forms inside of forms
you should be making user controls
it is
a user control
good π
try rebuilding your code
i did
and i cleaned it
okay well you still messed something up but it is hard to tell what without seeing it. can you share the full code?
preferably via github repo link
i cant due to it having some personel stuff on it
understood, but that will make it harder for us to help
are you sure the code is building without any errors?
sorry I am out of ideas at the moment without being able to see the full code and replicate the issue.
when you run into issues like this, sometimes it is a good practice to strip things down into a smaller example that still replicates the issue. if you did that then you could share the stripped down version of code that is having the issue with us
@phoenixxeme is this for GMod DarkRP?
what told you that XD
@ZP ββββββ ΜΆΛΎΜΆΝβ β€ββββ when i remove "this" and the "NotepadForm notepad" arg it works and lets me drag it
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.