Jeroen,
From my knowledge there is no way to supress that message other than to
avoid the condition that causes it (close all designers before making a
change, immediately recompiling after maiking a change, etc.).
Thanks! Robert Gruen
Microsoft, VB.NET
This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
#From: "Jeroen" <jcfvhelvoort@prettel.nl>
#Subject: How to suppress message "you must rebuild your project..." in
task list?
#Date: Fri, 16 Apr 2004 14:31:19 +0200
#Lines: 16
#X-Priority: 3
#X-MSMail-Priority: Normal
#X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
#X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
#Message-ID: <#$$L266IEHA.2764@TK2MSFTNGP10.phx.gbl>
#Newsgroups: microsoft.public.dotnet.framework.windowsforms.designtime
#NNTP-Posting-Host: ip503cb020.speed.planet.nl 80.60.176.32
#Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
#Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.windowsforms.designtime:4522
#X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms.designtime
#
#Hi,
#
#I sometimes get the following task show up in the task list:
#"You must rebuild your project for the change to MyApplication.MyForm to
#show up in any open designers"
#
#It is irritating that the task list shows up with that message.
#Is there a way to suppress this task?
#
#Thanks in advance.
#
#Regards,
#
#Jeroen
#
#
#
Jeroen van Helvoort - 05 Jul 2004 13:54 GMT
Hi,
Thanks for your reply (sorry for the late response).
It took some time to figure it out and the priority was not high. But
the task pops up when I use the following line of code:
System.Type objectType = System.Type.GetType(CodeElement.FullName);
I used another approach which works better without the task item popping
up: if (CodeClass.get_IsDerivedFrom(Type.FullName))
But using this 2nd (better) solution, it does not work using VB (it is
ok for all other languages). The first approach works for every
language, but the task pops up then.
Any idea how to solve this?
(BTW The code is used for filling a listbox in a UITypeEditor.)
Thanks in advance,
Jeroen