Drag Split1's Splitter. Display only one panel of the Split2. If Split1's resize event fire in this time, Split2 not resize. why do the split2 not resize? how to solve? But I dont want to fixed size of the panel of the Split1 which contains split2.
jason_mf
Posts
-
About SplitContainer Resize -
About SplitContainer ResizeI have 2 SplitContainers(splitContainer1 and splitContainer2) in the WinForm. Both orientation is Horizontal, Dock is Fill. splitContainer2 in the panel1 of splitContainer1 . When panel2 of splitContainer1 cover of the panel2 of splitContainer2, splitContainer2 is not resize. why? how to do? thanks. And I want the panel1 of splitContainer1 is not fixe.
-
Winform DataGridViewI try to again. not always 1, but first click still call DoSelectionSuff() Then call DoDoubleClickSuff()
-
Winform DataGridViewe.clicks is always 1
-
Winform DataGridViewDataGridView's SelectionChanged Event Fire earlier than CellDoubleClick Event. But I hope SelectionChanged after CellDoubleClick. My Program require: 1> DoubleClick any part of the row, this row selected=true. read a value from this row as parameter order to open a dialog for do something. 2> When SelectionChanged, another controls's value will changed from the new selected row. But if DoubleClick fired that another controls's value need not change. How to do? Thanks.
-
Socket and Thread QuestionIs the DealData Method a assistant Thread?
-
Socket and Thread QuestionI have a Server, and several Client. a meth receive data from client. then store these data in global variable temporary then deal. e.g. public void ReceiveMethod(object data) { //maybe Multiple client at the same time. DealData(data); } public void DealData(object data) { //some values will store in global variable temporary. //because Multiple client Send data,so the global variable's value is mistake. like mult-Thread without synchrony or lock. //if this is Multiple Thread deal, I understand it. //but I dont execute thread or asynchronization obvious. //is Mult-Thread here? }
-
About AutoResetEvent, a simple questionI have t1,t2,t3, 3 threads, and 1 AutoResetEvent(ar), Is ar able to synchronize the three threads?
-
How to manager the secret key of RSAEncryptThen, what does KeyContainer have to use? the KeyContainer can not store cipherkey , Why MS provided it? What is KeyContainer practical significance?
-
How to manager the secret key of RSAEncryptthe key(public and private) is stored in KeyContainer, I do not export public-key and private-key. the program run next time, How to get the right public-key and private-key? please give me the simple code,Thanks.
-
about site searchI've never done search-related. the search-content contains: musics,pictures,peoples etc. so I have a few questions. Search content from multiple tables and multiple Fields. I do full-text indexing of these fields. If I need to create a view that contains these fields? then I write sql "select" from this view. is right? I hope someone can give a guiding learning resources. Thanks.
-
Jcrop a jquery plug-in, has anybody used it ?I try to use it. I know how to set up, how to initialize,etc. but I encountered a strange problem. I can't drag the selection of the code of i writed in the html file. In the another html file,I copy code from Jcrop's demo, the drag is ok. the code of I writed and the code of copied are same, I checked several times. And the resize box Of the Crop selection is not display. the "Jcrop.css" is referenced right. Very strange. Why? Here is the code:
<HTML> <HEAD> <TITLE> New Document </TITLE> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.Jcrop.js"></script> <link type="text/css" href="css/jquery.Jcrop.css" /> <script type="text/javascript"> jQuery(window).load(function() { var api = $.Jcrop('#cropbox', { onChange: showPreview, onSelect: showPreview, setSelect: [0, 0, 120, 120], aspectRatio: 1 }); api.setOptions({ minSize: [40, 40], maxSize: [120, 120] }); }); function showPreview(coords) { if (parseInt(coords.w) > 0) { var rx = 100 / coords.w; var ry = 100 / coords.h; var realHeight = $("#cropbox").attr("height"); jQuery('#preview').css({ width: Math.round(rx * 500) + 'px', height: Math.round(ry * realHeight) + 'px', marginLeft: '-' + Math.round(rx * coords.x) + 'px', marginTop: '-' + Math.round(ry * coords.y) + 'px' }); } } function initCut(){ //var api = $.Jcrop('#cropbox',{ //onChange: showPreview, //onSelect: showPreview, //init selection //setSelect: [ 0, 0, 120, 120 ], //Rate //aspectRatio: 1 //}); //api.setOptions( {minSize: [ 40, 40], maxSize: [ 120, 120]});alert("begin crop"); //api.setOptions({ allowResize: true }); } </script> </HEAD> <BODY> <input id="btnBegin" type="button" value="Begin Crop" onclick="initCut();"/> <div class="article" style="border:thin #FF0000 solid;"> <div style=" float:left; border:thin; background-color:#FF0000;"> <img id="cropbox" src="images/jane.jpg" style=" width:500px;" /> </div> <div style=
-
asp.net ajax cacheI using ms asp.net ajax. uploadImage method in js. this method Asynchronous upload image. function uploadImage(file){ Webservice.uploadImage(file, succeedCallback); anotherFunction();//this is don't definition, so report err } but I changed: function uploadImage(file){ Webservice.uploadImage(file, succeedCallback); //anotherFunction();//I comment it, but still report same err at this } How do I? Thanks.
-
How to write Linq for this T-SQLselect * from A where id in (1,2,3,4,5,6,7,10,15,18,20,25,30,40,45,50,) how to write Linq
-
How to add data into a table of relationalI have 3 tables : "user", "purview", "user_purview". "user" associated with "purview" through "user_purview". now, I will add purview (one or more) to user. I use LinqToSql. I find out user_purview mapping class has properties: User, Purview, UserId, PurviewId. Do I just need to set the value of userId and purviewid, then submitchanges is ok?
-
How to setting ConnectionString of LinqtoSql's dbmlI Drop Table from servermanagent to dbml file. Then I use linqDataSource bind GridView is OK. but I run in another computer, report exception: not find right SqlServer or SqlInstance. I found the .designer.cs file get ConnectionString from settings file, so I changed it ,get connectionstring from web.config, but the same exception also happen. How do I ? Thanks.
-
about LinqDatasourceI write a small demo: GridView bind LinqDataSource. I do it with "LinqDataSource with ASP.NET data controls" By abhigad (http://www.codeproject.com/KB/aspnet/LinqDataSourcebasics.aspx?msg=3392378#xx3392378xx) step by step. but report: System.MissingMethodException: There is no definition for the object constructor without parameters or System.Data.SqlClient.SqlException: "sa" login Failure. Another page, I added a new data to database with LinqToSql is Successful. Who can help me solve the LinqDataSource to bind?
-
this problem about VSS2005 but I dont find the board of VSSI use VSS 2005 And VS 2005 Team Sp1 After The Solution add to SourceSate , the member of team can not get the new file of the other member created from the parent folder's "Get..." Menu. But can get the new file from project's "Get..." menu. What's cause? if I Get New Version from project's "Get.." menu , it will spend a lot of time.
-
what mean this write<asp:LinkButton ID="lnkUpdate" runat="server" OnClientClick='<%#Eval("Sys_TV_Id","return update({0})") %>' OnClick="lnkUpdate_Click">修改</asp:LinkButton> this linkbutton in repeater. I do not konw " Eval("Sys_TV_Id","return update({0})") ". <script type="text/javascript"> function update(ID){ var data=new Array(); if(ID==null ||ID==""){ temps=eval('document.form1.id'); var j=0; for(var i=0;i<temps.length;i++) { if(temps[i].checked==true){ data[j]=temps[i].value; j++; } } } else{ data[0]=ID; } if(data==""){ alert('请选择操作对象!');return false; } else{ $("updateId").value=data;return true; } } </script>
-
Why I call flash or video always failed [modified]but I use swf replaced was failed too. still display a rectangle region. has need any config or setting? or only wrote "object" html tag?