473,323 Members | 1,560 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,323 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 1740
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.