Ive got a form (we'll call it Form1), which has a button that opens up another little input form (Form2). Form2 contains 4 inputs, i want to return those from Form2 back to Form1.
How do i do that? Ive tried creating an overloaded ShowDialog() method with a return value, but that caused a System.StackOverflowException in mscorlib - always nice.
Am i complicating something simple? Because it feels like i am...
Anker announces recall of "More than One Million" power banks, here's how to check by Sayan Sen
Anker has announced that it is recalling "more than a million" power banks as they are potentially very dangerous due to burn and fire hazards. Both Anker as well as the CPSC (Consumer Product Safety Commission) have released guidance and advisories on how to check if the power bank you are using is affected and how to proceed further if that is the case.
First up, the affected model is the PowerCore 10000 power bank (Model: A1263) and CPSC notes that "Anker has received 19 reports of fires and explosions," which "includes two reports of minor burn injuries not requiring medical attention and 11 reports of property damage totaling over $60,700."
Anker explains how you can identify the affected model. It writes:
After checking and confirming whether your unit is eligible for the recall, Anker has recommended that you "stop using it immediately" and fill the form which provides you with either a free replacement Anker Power Bank (10K, 22.5W) (Model A1388) or a $30 gift card if replacements are back ordered, which is possible at the moment as it is a large scale recall with over a million affected units.
You can find the recall form at this link on Anker's website and the announcement posts linked below. You can find the detailed instructions there.
Source: Anker, CPSC
"Hey can you punch in a new address for me?"
"VOICE ACTIVATION ONLY WHEN MOVING"
Oh great, so now we have to pull over to put in the address because Siri or Google Assistant don't understand my language
Question
$phinX
Ive got a form (we'll call it Form1), which has a button that opens up another little input form (Form2). Form2 contains 4 inputs, i want to return those from Form2 back to Form1.
How do i do that? Ive tried creating an overloaded ShowDialog() method with a return value, but that caused a System.StackOverflowException in mscorlib - always nice.
Am i complicating something simple? Because it feels like i am...
So, how do i return a value from the form?
Link to comment
https://www.neowin.net/forum/topic/347559-c-return-a-value-from-a-form/Share on other sites
19 answers to this question
Recommended Posts