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 / May 2005

Tip: Looking for answers? Try searching our database.

Design time debugging, anyone ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick WAELTI - 06 May 2005 10:10 GMT
Hi,

My control is almost finished but its still doing weird things at design
time.

I've a designer on my control. My control contains a collection of
subcontrols. When I add a child to the collection of my control, I can
see it (as I invoke the paint method) but it is not selectable from the
designer. I need to close the form and reopen it.

I assumed that it came from the Initialize not being done a second time,
but I have no clues on how to relaunch it.

Therefore I would love to be able to debug my code at design time. Is
that at all possible ?

Thanks,
Nick
Maqsood Ahmed - 06 May 2005 10:54 GMT
Hello,
try using base.SetStyles(ControlStyles.Selectable,true) in the
constructor.
I hope it'll help.

Cheers

Maqsood Ahmed [MCP,C#]
Kolachi Advanced Technologies
http://www.kolachi.net
Nick WAELTI - 06 May 2005 12:20 GMT
That's already the case, any other items are selectable. Just if I
create new ones... I can't select them.

> Hello,
> try using base.SetStyles(ControlStyles.Selectable,true) in the
[quoted text clipped - 8 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
joeycalisay - 06 May 2005 11:07 GMT
> Therefore I would love to be able to debug my code at design time. Is
> that at all possible ?

yes, two instance of devenv.exe, the control project on the first attach it
to the other with the form using it.
i also have some tips on my blog, link below...

Signature

Joey Calisay
http://spaces.msn.com/members/joeycalisay/

Nick WAELTI - 06 May 2005 12:24 GMT
Great,

Thanks Joey :)

>>Therefore I would love to be able to debug my code at design time. Is
>>that at all possible ?
>
> yes, two instance of devenv.exe, the control project on the first attach it
> to the other with the form using it.
> i also have some tips on my blog, link below...

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.