Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Sat, 29 Sep 2007 10:51:45 +0800,    group: microsoft.public.dotnet.framework.windowsforms.designtime        back       


question about copy/paste/cut in designer   
hi:
  Now I have implemented the copy/paste/cut by calling the StandardCommands 
in the windows designer, I have some additional problem: when i copy some 
controls in the designer, then paste them and new Name would be made.
ex: I copy "textbox1" and "textbox2",and then paste them as "textbox3" and 
"textbox4", how can i know which controls i copied or cut from? or 
"textbox1" becomes "textbox3" or "textbox4"?
(because i have some special binding somethings which can be found by 
original control name)

 thanks a lot :-)


                                        Grace
date: Sat, 29 Sep 2007 10:51:45 +0800   author:   grace lee

Re: question about copy/paste/cut in designer   
AFAIK, there is no way to determine the original name of the pasted control.

--------- 
- G Himangi,   Sky Software       http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell 
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs 
rapidly in .Net
--------- 


"grace lee"  wrote in message 
news:eWDK6MkAIHA.3400@TK2MSFTNGP03.phx.gbl...
> hi:
>  Now I have implemented the copy/paste/cut by calling the StandardCommands 
> in the windows designer, I have some additional problem: when i copy some 
> controls in the designer, then paste them and new Name would be made.
> ex: I copy "textbox1" and "textbox2",and then paste them as "textbox3" and 
> "textbox4", how can i know which controls i copied or cut from? or 
> "textbox1" becomes "textbox3" or "textbox4"?
> (because i have some special binding somethings which can be found by 
> original control name)
>
> thanks a lot :-)
>
>
>                                        Grace
>
date: Mon, 1 Oct 2007 13:37:33 +0530   author:   G Himangi

Re: question about copy/paste/cut in designer   
Actually, you can do a property comparison. The copied control will have
all the same values as the original except name.

ex: 
create new button (name="Button1", Text="Button1)
create new button (name="Button2", Text="Button2)

select both, copy, paste
pasted button (name="Button3, Text="Button1")
pasted button (name="Button4, Text="Button2")

In this example you know that Button3 is a copy of Button1 because they
both have the same Text property. It is possible, obviously, for
multiple controls to have the same Text property values. You can
mitigate this risk by looking at more properties.



*** Sent via Developersdex http://www.developersdex.com ***
date: Mon, 08 Oct 2007 08:06:51 -0700   author:   Timker .

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us