c# - Move label(change position) while scrolling local ReportViewer -


i have windows form application. there 2 standart controls on form linklabel , reportviewer. data represented on reportviewer control long , there possible scrolling keep data reading. it's normal situation. need simple feature, when user scrolling or down, linklabel should move depend scrolling values or down, synchronously reportviewer content. linklabel location must fixed comparatively reportviewer enter image description here

initializecomponent method included:

            system.componentmodel.componentresourcemanager resources = new system.componentmodel.componentresourcemanager(typeof(hrcard));             this.reportviewer1 = new microsoft.reporting.winforms.reportviewer();             this.linklabel1 = new system.windows.forms.linklabel();             this.suspendlayout();             //              // reportviewer1             //              this.reportviewer1.dock = system.windows.forms.dockstyle.fill;             this.reportviewer1.localreport.reportembeddedresource = "kadr_azerenerji.report1.rdlc";             this.reportviewer1.location = new system.drawing.point(0, 0);             this.reportviewer1.name = "reportviewer1";             this.reportviewer1.size = new system.drawing.size(1020, 730);             this.reportviewer1.tabindex = 0;             this.reportviewer1.renderingcomplete += new microsoft.reporting.winforms.renderingcompleteeventhandler(this.reportviewer1_renderingcomplete);             this.reportviewer1.scroll += new system.windows.forms.scrolleventhandler(this.reportviewer1_scroll);             //              // linklabel1             //              this.linklabel1.autosize = true;             this.linklabel1.location = new system.drawing.point(160, 314);             this.linklabel1.name = "linklabel1";             this.linklabel1.size = new system.drawing.size(45, 15);             this.linklabel1.tabindex = 2;             this.linklabel1.tabstop = true;             this.linklabel1.text = "diplom";             this.linklabel1.visible = false;             this.linklabel1.linkclicked += new system.windows.forms.linklabellinkclickedeventhandler(this.linklabel1_linkclicked);             //              // hrcard             //              this.autoscaledimensions = new system.drawing.sizef(7f, 15f);             this.autoscalemode = system.windows.forms.autoscalemode.font;             this.backcolor = system.drawing.color.white;             this.clientsize = new system.drawing.size(1020, 730);             this.controls.add(this.linklabel1);             this.controls.add(this.reportviewer1);             this.font = new system.drawing.font("times new roman", 9.75f, system.drawing.fontstyle.regular, system.drawing.graphicsunit.point, ((byte)(204)));             this.icon = ((system.drawing.icon)(resources.getobject("$this.icon")));             this.name = "hrcard";             this.startposition = system.windows.forms.formstartposition.manual;             this.text = "azərenerji kadr";             this.transparencykey = system.drawing.color.lavenderblush;             this.formclosing += new system.windows.forms.formclosingeventhandler(this.hrcard_formclosing);             this.load += new system.eventhandler(this.hrcard_load);             this.scroll += new system.windows.forms.scrolleventhandler(this.hrcard_scroll);             this.resumelayout(false);             this.performlayout(); 

how can ?


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -