473,387 Members | 1,455 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,387 software developers and data experts.

Set FillColor to ActiveCaption @ Run-Time

nev
251 100+
How do I do this programmatically?

Shape.FillColor = Color [ActiveCaption]

I can set it during design-time but I wanna set it during run-time. Please help.
Nov 5 '07 #1
6 1533
kenobewan
4,871 Expert 4TB
I'm glad you're not one of those idiots who want to set things during design time - that is so yesterday. All the really cool programmers, like yourself, get things happening at run time. I set everything up so it runs at run time, if there is a user event called I simply load another page so it can happen at run time. I use page load, classes and config files to engage my run time - how about you?
Nov 5 '07 #2
nev
251 100+
I'm glad you're not one of those idiots who want to set things during design time - that is so yesterday. All the really cool programmers, like yourself, get things happening at run time. I set everything up so it runs at run time, if there is a user event called I simply load another page so it can happen at run time. I use page load, classes and config files to engage my run time - how about you?
Then I guess I'm a moron because I do both :-)
Nov 5 '07 #3
kenobewan
4,871 Expert 4TB
So you are having trouble with active caption in page load? Isn't ActiveCaption used in ajax and relies user interaction? In which case my guess would be no as the user event comes after the page load.

Not having a go at you, but it seems strange that many posters want their code to work run time and they don't know what run time is. Its nothing magical all it is is where you insert your code and for developers run time is usually page load.
Nov 6 '07 #4
nev
251 100+
I did a workaround. Placed an invisible shape with the colors I need on the form and did...

shape.fillcolor = invisibleshape.fillcolor

It didn't even break me a sweat :-)
Nov 6 '07 #5
Plater
7,872 Expert 4TB
You can also do this:
Expand|Select|Wrap|Line Numbers
  1. Color.FromKnownColor(KnownColor.ActiveCaption);
  2.  
Nov 6 '07 #6
nev
251 100+
You can also do this:
Expand|Select|Wrap|Line Numbers
  1. Color.FromKnownColor(KnownColor.ActiveCaption);
  2.  
thanks for the input.
Jan 28 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: James | last post by:
Hi, I would like to run a custom script on a linux box via a button on a php page (php webpage hosted on the same linux box). Is this possible? If so , can you give me a pointer in the right...
3
by: leroybt.rm | last post by:
Can someone tell me how to run a script from a interactive shell I type the following: >>>python filename >>>python filename.py >>>run filename >>>run filename.py >>>/run filename >>>/run...
8
by: Jonathan Polley | last post by:
I have one account on a WindowsXP machine that refuses to run IDLE (or any other python script that uses Tk). Other people can login to that PC and IDLE runs just fine, so it is not an...
4
by: Ed | last post by:
Hello, I took a course in asp about 2 years ago and I was practicing with IIS 5.0. Then I put it down for a while. Now trying to get back to it. I can't run asp files from subdirectories of...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
13
by: Bob Day | last post by:
Using vs2003, vb.net I start a thread, giving it a name before start. Code snippet: 'give each thread a unique name (for later identification) Trunk_Thread.Name = "Trunk_0_Thread" ' allow...
3
by: Wouter van Teijlingen | last post by:
Dear readers, Recently i have discovered a old VB 6.0 program that's doing some traffic simulation. Although the upgrade wizard from VB .NET has done some great work, i still have a problem....
9
by: Brett Wesoloski | last post by:
I am new to VS2005. I changed my program.cs file to be a different form I am working on. But when I go to run the application it still brings up the form that was originally declared as new. ...
8
by: David Thielen | last post by:
Hi; In our setup program how do I determine if I need to run "aspnet_regiis –i" and if so, is there an API I can calll rather than finding that program on the user's disk and calling it? --...
3
by: traceable1 | last post by:
Is there a way I can set up a SQL script to run when the instance starts up? SQL Server 2005 SP2 thanks!
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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,...

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.