I think you can add a property:ViewType(enum) for it. control1 and control2's visiblity can be based on the property,and you can also re-draw the width and border for it.
Bright Zhang
Posts
-
C# User Controls -
Good book referance on User Controls Designo,I'm looking for it also,if you find it,can you tell me also?much thanx
-
gettting table nameselect name from master..sysobjects where type = 'U'
-
the bug of datetimepicker control?adding some buttons can resove the problem,but it seems awkward and duplicate. thank you very much anyway.
-
the bug of datetimepicker control?Environment: vs2003.net winform,windows application Form1: components: - datetimePicker1 - button1 - toolbar1 - toolbarButton1 events: button1_onclick(object sender,EventAgs e) { MessageBox.Show(datetimePicker1.Value.ToString("yyyy-MM-dd")); } toolbar_onclick(...) { if(e.Button == toolbarButton1) MessageBox.Show(datetimePicker1.Value.ToString("yyyy-MM-dd")); } test: suppose the original value of the datetimepicker is:2006-10-12 and now enter a number 11 into the month-part of the datetimepicker,then click button1,a messagebox shows:2006-11-12,not 2006-10-12. and follow the step,enter another number:9 into the month-part of the datetimepicker,and click toolbarButton1,a messagebox shows a value also,however it's not 2006-09-12(normally it should be this),it's 2006-11-12. for this,I conclude that datetimepicker's value is not synchronous with the mannual input from keyboard,after it's not out of focus,then value will be updated.after input,for button1,when I click it,it will occur that datetimepicker will be out of focus,however toolbarbutton1 not.so this is the difference between button and toolbarbutton,and the difference leads to a wrong value when getting datetimepicker's value in both events. and who can tell me how to resove the problem? much thanx~
-
Problem about Transferring big file or string in WebServiceo,no reply:confused:
-
Problem about Transferring big file or string in WebService:confused:Recently I made a project,in the project I need to transfer a big string(about 80MB) in WebService,but it give an exception,the message in the application log is: "aspnet_wp.exe (PID: 3324) was recycled because memory consumption exceeded the 287 MB (60 percent of available RAM)." How to fix the problem? many thanx! Bright Zhang
-
How to loggin ASP.NET project in the ASP project?O,I'm sorry,nobody comes here. But I've resolved it by ViewState(__VIEWSTATE).
-
How to loggin ASP.NET project in the ASP project?:-O Boys and Girls,give me a hand. Thanks.
-
How to loggin ASP.NET project in the ASP project?:wtf: I have two project,one is ASP,and another is ASP.NET. And in the loggin page of ASP.NET project,username,password and valid code is necessary. Because I want to loggin ASP.NET project in the ASP project,Now I need add a loggin fuction in a page of ASP project(And ASP project doesn't need loggin). But I don't know how to do it,can you help me? Thanks a lot. Bright Zhang
-
A question about reporting service's multi-language.I want to make a report(reporting service),it's for multi-language,such as UK and NL etc. but format of decimal in different language maybe differrent,for example: one thousand in UK is 1,000.000,but in NL it's 1.000,000. So I need change the language of the report dynamically according to language field in the dataset? Certainly,I can make one template for each language,but I just want to make one for all languages. Is it doable or possible? if it is,and how can I do it?:doh:
-
a question about config file for windows service programo,thank you very much.
-
a question about config file for windows service programi have windows service program,and i want to make a config file for it. if the config file is placed in the directory:system32/,i can access it by System.Environment.SystemDirectory,but when placed in the windows service executable files' directory(bin\debug\),i don't know how to access it.