c# - Show the beginning of scrollable panel, when starting program -


I have a program which is a test of something I have a question in the panel, but when I run my program It shows the middle of the panel. How did it show the beginning of the panel? Enter image details here

  Private Zeros Form 1_load (Object Sender, EventArgues E) {for (int i = 0; i & lt; 10; i ++) {dictionary & lt; String, bull & gt; Answer = New Dictionary & lt; String, bull & gt; (); For (int j = 0; j and lt; 4; j ++) {string ans = "Ð ?? Ñ ?? Ð'п²¾²² ?? Ð'Ñ ??" + (J + 1); Bull flag = false; If (i> 5) {if (j == 0 || j == 2} {flag = true; }} And if (J == 0) {flag = true; } answer. Add (north, flag); } String q_text = "Ð ?? ÐÑÑ ?? Ð ° ½½" ???? "++ (i + 1); This.AddQuestion (q_text, answer);} Panel 1.ScrollControlIntoView (panel1.Controls [0]);}    

Try setting focus on the first control in the panel on the form_load event:

  Panel 1. Control [0]. Do ();    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -