473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Determining 'mode' (i.e. run-time or design-time) of a UserControl

In VB, a UserControl could determine its run-time vs. design-time status by
evaluating the UserControl.Ambient.UserMode. For the life of me I can't
figure out how to do the same basic thing in VB.NET.

I have a UserControl in which I need to perform certain functions in the
Load event during run-time, but those same functions are not possible in
design time because other resources (i.e. database, registry, etc.) haven't
been initialized. I just want to skip that part if I'm in design-time. Am
I missing something obvious?

Thanks in advance,
Brett
Jul 21 '05 #1
1 1749
Brett,

Did you know that there is a newsgroup
microsoft.public.dotnet.languages.vb.upgrade

It is very inactive newsgroup, however Ken and Herfried are looking often
there if there are messages

I would in your case just crosspost this question too (sent one message to
both newsgroups)
microsoft.public.dotnet.languages.vb
as well.

I hope this helps

Cor
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rahail | last post by:
Hello, I have a question, can someone help me please? What are the differences between a runtime and a designtime component? Is runtime component only good for running with the .exe and not...
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
1
by: Brett | last post by:
In VB, a UserControl could determine its run-time vs. design-time status by evaluating the UserControl.Ambient.UserMode. For the life of me I can't figure out how to do the same basic thing in...
0
by: bill | last post by:
The design time Connection string for my table adapters don't change/can't be set during run time. I have a business layer class project and added a typed dataset. In VS2005 the Table adapter...
7
by: Varangian | last post by:
Hello is creating controls at runtime the same as designtime ? will a page be faster if controls are created at designtime rather than at runtime ? If so why ? thanks :)
2
by: Steve | last post by:
This is a weird one. I have a series of "SmartParts" which are CAB (Composite Application Block) Views which are finally just UserControls (99% of the time) Anyway, I layout my UserControl in...
0
by: Dst | last post by:
How can i resize my usercontrol in design mode ? Seems like when the usercontrol is added to a page the size is fixed. It does not have any resize grips. I added a width / height property and...
2
by: Martin Arvidsson | last post by:
Hi! I have developed a component that creates a lookup for selecting values. At designtime i want to display the windows as well but with certain criterias. is there a property or something to...
0
by: Steve | last post by:
I'm struggling to get proper runtime and designtime dpi values. In the forms .designer.vb I've added the following code after InitializeComponent() Me.AutoScaleDimensions = New...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
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,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.