Can I change the order that controls are defined, or built, in the "Windows
Form Designer generated code" section?
I'm using VB.NET 2003. I have a custom control, that due to licensing
restrictions, it must be defined before another "container" control on my
form. I can manually move the code to where I need it, and successfully
build my project. But whenever I modify the form, VB rearranges the Windows
Form Designer code. I am growing weary of moving that particular block of
code each time I build my project.
Any ideas?
Mikey 2 1785
* "MadMikey" <ju**@mdrnetwor ks.com> scripsit: Can I change the order that controls are defined, or built, in the "Windows Form Designer generated code" section?
I'm using VB.NET 2003. I have a custom control, that due to licensing restrictions, it must be defined before another "container" control on my form. I can manually move the code to where I need it, and successfully build my project. But whenever I modify the form, VB rearranges the Windows Form Designer code. I am growing weary of moving that particular block of code each time I build my project.
You can add the control outside the designer generated code, for example
before the call to 'InitializeComp onent'. Notice that this will maybe
break full compatibility with the designer.
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Dont try to change the code in "Winform designer generated code" region.
1) Put your specific control loading code in the order you want it, in a new procedure
2) call that new proc from you InitializeCompo nent() OR call it before/after call to InitializeCompo nent()
HTH
Kalpesh This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Pavils Jurjans |
last post by:
Hello,
I have bumped upon this problem: I do some client-side form processing
with JavaScript, and for this I loop over all the forms in the
document. In order to identify them, I read their "name" property
(which sources from "name" HTML attribue). The problem is, that if the
form contains form control named "name", it overwrites the form...
|
by: John Hunter |
last post by:
I've recently had a nasty problem with the "Invalid reference to the
property Form" error in subforms - nasty because it doesn't seem to
consistently happen to all forms which contain the same structure and code.
Judging by the forums I've researched, it's not an uncommon error. I'm happy
to say I've found a simple solution.
OVERVIEW: I...
|
by: Dan |
last post by:
I am trying to use
Request.Form("__EVENTTARGET") to get the name of the control that caused a post back. It keeps returning "".
I am not really sure why, this happens for all of my controls that invoke are invoking a post back.
I've never used this type of method before, but I need to get the name of the control doing the postback in...
|
by: Robin Tucker |
last post by:
Hi,
I have a problem with my code (somewhere in the InitialiseComponent)
preventing any of my controls being visible in form design mode, although
everything is ok at runtime. No errors are produced when I view the form in
the designer; it just presents me with a blank form. Some of the controls
are listed in the properties list, others...
|
by: QLD_AU |
last post by:
I am having trouble when viewing the code behind a form, any events i do are
shown, however the
Windows Form Designer generated code Section is not shown,
Does anyone know how to turn this on and off.
| |
by: Richard Bysouth |
last post by:
Hi
When attempting to view inherited forms in design mode I have been getting
the message "The path is not of a legal form" and am unable to view the
designer.
I can't seem to find any further information on this error - does anyone
know what the problem and resolution might be?
thanks
|
by: abcd |
last post by:
I can get the value on the form at the server side by using
Request.form("max")
when max field is disabled I dont get value. For GUI and business logic
purpose I have disabled some fields with the values, but when I update
Request.form does not return me anything for disabled fields.
How to read disabled fields at the server side
|
by: Nathan Sokalski |
last post by:
I recently converted some ASP.NET 1.1 projects of mine, created with Visual
Studio .NET 2003, to Web Application Projects in Visual Studio .NET 2005 so
that I could use ASP.NET 2.0 (All my ASP.NET is done using VB.NET). After
converting, everything was fine, and worked and compiled correctly, but I
noticed one big difference between the VB.NET...
|
by: Kuldeep |
last post by:
Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0
Hi All,
I have an in-built tool to generate PDF Reports.
Once a PDF Report is generated, I have provided an option of "Viewing" the
PDF as well.
Now, once there is a large PDF being generated (say a PDF of 70 Pages or so)
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |