[Year 12 SofDev] C# - Adding data to an Array from user input

Cooper, Michael J cooper.michael.j at edumail.vic.gov.au
Mon Feb 6 12:57:35 AEDT 2017


Hello fellow SD teachers,

C# coding question - what is the best way to allow a USER to enter data into an array using a GUI, not the console?

I’ve used InputBoxes and loops with Visual Basic, however InputBoxes don’t seem to be thing in C#, without adding the Microsoft.VisualBasic namepace.

I can add data to an array during design time easily enough, but I want the USER to be able to click on a button and be prompted to enter data, which then populates the array.

Or am I going about this the wrong way entirely and should be using another technique?

Michael Cooper
ICT Co-ordinator & Network Support

[id:image001.png at 01D2440D.0D6FCCA0]
braybrooksc.vic.edu.au<http://www.Braybrooksc.vic.edu.au>
Ph. 9312 2900


IMPORTANT - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education and Training.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20170206/912b1928/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 9943 bytes
Desc: image001.png
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20170206/912b1928/image001.png 


More information about the sofdev mailing list