I have various different web user controls through out my web application.
I would like to view the properties/fields for these user controls in the
designer property window ....
For instance:
public bool HasMenu {
get
{
return hasMenu;
}
set
{
hasMenu = value;
}
}
I would like there to me a "HasMenu" item in the property window of the
designer that has a drop down box with True/False for the options.
Please let me know if this is possible.
Thanks.
--
Jay Douglas
Fort Collins, CO 2 1283
For this kind of advanced functionality you might want to create a custom
control instead of a user control.
Here's more info: http://msdn.microsoft.com/library/de...ebControls.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
"Jay Douglas" <ja************ ******@squarei. com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. I have various different web user controls through out my web application. I would like to view the properties/fields for these user controls in the designer property window ....
For instance: public bool HasMenu { get { return hasMenu; } set { hasMenu = value; } }
I would like there to me a "HasMenu" item in the property window of the designer that has a drop down box with True/False for the options.
Please let me know if this is possible.
Thanks.
-- Jay Douglas Fort Collins, CO
Steve,
Thanks for the reply. I was hoping I could get around make a Web
Control Library but it looks like I may not.
Cheers!
--
Jay Douglas
Fort Collins, CO
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:OT******** ******@TK2MSFTN GP12.phx.gbl... For this kind of advanced functionality you might want to create a custom control instead of a user control. Here's more info: http://msdn.microsoft.com/library/de...ebControls.asp -- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net Hire top-notch developers at http://www.able-consulting.com "Jay Douglas" <ja************ ******@squarei. com> wrote in message news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. I have various different web user controls through out my web
application. I would like to view the properties/fields for these user controls in
the designer property window ....
For instance: public bool HasMenu { get { return hasMenu; } set { hasMenu = value; } }
I would like there to me a "HasMenu" item in the property window of the designer that has a drop down box with True/False for the options.
Please let me know if this is possible.
Thanks.
-- Jay Douglas Fort Collins, CO
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jim |
last post by:
I am having some trouble with user controls and would appreciate any input /
advice on where to go with this... :)
1. The first problem, and perhaps the root of the others, is that I have
several user controls that are inherited user controls, based on one class,
which is in turn based on System.Windows.Forms.UserControl. We'll call this
class "UserControlBase". My first problem is that UserControlBase implements
some public...
|
by: Jim |
last post by:
I am having some trouble with user controls and would appreciate any input /
advice on where to go with this... :)
1. The first problem, and perhaps the root of the others, is that I have
several user controls that are inherited user controls, based on one class,
which is in turn based on System.Windows.Forms.UserControl. We'll call this
class "UserControlBase". My first problem is that UserControlBase implements
some public...
|
by: Raj |
last post by:
Hi,
I have created a Windows 'user control' in C#.NET. This user control defines
several public 'properties' that the outer world can use to tweak the
behavior of the user control. However, whenver I drag the user control to a
Form, I noticed that the 'Windows Form Designer generated code' contains
several auto generated statments to initialize the 'properties' that are not
proper. This causes the Form designer to get corrupt and shows a...
|
by: Nathan Sokalski |
last post by:
I have a user control that contains three variables which are accessed through public properties. They are declared immediately below the "Web Form Designer Generated Code" section. Every time an event is fired by one of the controls contained in the User Control, these variable are reset. Here is my current code (I have a little more to add later, right now I am just concerned about the variables getting reset):
Public Class DatePicker2...
|
by: Michael |
last post by:
Dear all ..
If I want to use develop a user control and declare a public property which
the type is System.Windows.Forms.GridTableStylesCollection
For example :
Public Class LookAndView
Inherits System.Windows.Forms.UserControl
Private _Collection As GridTableStylesCollection
| |
by: mharness |
last post by:
Hello,
I've tried a number of examples showing how to read the properties of a user
control from an aspx file where the code is on the html view of the form but
I can't figure out how to read them from the aspx.vb. Can anyone tell me
how to declare the user control in the aspx.vb file so that I can read the
properties?
I did add "Protected WithEvents UC1 As System.Web.UI.UserControl" to the
component code behind form but that's the...
|
by: Lucien Dol |
last post by:
Hi all,
Can someone help me with this, please?
I've got a user control that (amongst other controls) contains a textbox.
The textbox has its Anchor property set to "Left, Top, Right", meaning that
it will stretch automatically when the control is resized on a form or other
user control. When in design mode I look at the control by itself (rather
than dropped on a form) the control has a certain size (let's call this
SizeA).
|
by: MattB |
last post by:
I have a asp.net 1.1/vb application that has a page with a bunch of
dynamically added User Controls.
When I add the controls, I set the UserControl.EnableViewState to true.
For all my controls with TextBoxes, I can get the value back out of the
controls just fine.
One of my User Controls has some DropDownLists as well as a TextBox.
I get a value from the TextBox on postback, but not the DropDownLists.
Even if I see a value selected when...
|
by: Mukesh |
last post by:
Hi all
I have to transfer a dataset and a string from a webform to a user
control on the page without using viewstate or session or cookies .
properties method is not working properly. if anybody thinks that is
fine so plz describe me and send me any article or example for that.
How can i do that
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |