Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / October 2007

Tip: Looking for answers? Try searching our database.

question about copy/paste/cut in designer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
grace lee - 29 Sep 2007 03:51 GMT
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
G Himangi - 01 Oct 2007 09:07 GMT
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
---------

> hi:
>  Now I have implemented the copy/paste/cut by calling the StandardCommands
[quoted text clipped - 9 lines]
>
>                                        Grace
Timker . - 08 Oct 2007 16:06 GMT
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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.