How to get random numbers random(0xff) ?
int RandomNumber = (rand() * 0xff) / RAND_MAX;
"]GHO[" <email@example.com> skrev i en meddelelse
> How to get random numbers random(0xff) ?
rnd() & 0xff;
On Tue, 11 Nov 2003 04:07:13 -0800, "]GHO[" <firstname.lastname@example.org> wrote:
>How to get random numbers random(0xff) ?
...color palette full message
How do I erase all the custom colors in the color palette?
I am trying to edit a legend key color in an Excel graph embedded into a
PowerPoint presentation. It won't let me change the color (Office
I've tried changing the color in both programs without a resulting change in
the graph legend color. Thanks.
In PowerPoint, fully select the Excel chart and the Excel toolbars should
appear replacing PowerPoint's.
Tools / Options / Color, select colour in the palette to be customized,
"Laurie" <Laurie@discussions.micro...Matching CTabCtrl Background Color on XP
I've added a CTabCtrl to my dialog box. The tab control displays the
contents of several dialog templates, depending on which tab is selected.
This is working pretty good now but the child dialogs' background color do
not match the background color of the tab control on themed XP. The child
dialogs' background colors are the old button face while the tab control's
background is almost white.
I've searched the Internet quite a bit. I've read I should trap WM_CTLCOLOR
HBRUSH CPanel::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
HBRUSH hbr = CDialog:...Random Numbers not Random
When I create random numbers for an application with the following code, they
do not appear to be truely random.
Me.RandomNumber = Int(9 * Rnd + 1) ' Random Number 1-9
If I have two users setting side by side, they frequently get the same
results when they start up
Am I missing somthing?
Any help would be appreciated
Have you tried a
statement just before the RND?
That should do it.
Microsoft Access MVP
"Find a job tha...How to get default windows color?
in a dialog I want to draw a rectangle filled with a gradient brush,
going from blue to white, using GDI+. This works fine:
Point( 0, 0),
Point( titleRect.Width(), titleRect.Height()),
Color( 58, 110, 165), // blue
Color( 255, 255, 255)); // white
g->FillRectangle( &lgBrush, 0., 0., (REAL)titleRect.Width(),
Now I would like to make the colour in the gradient the same as the
default Windows colour, say as the one which highlights items in
controls. I tried this
Poin...Changing Activity attributes
I have noticed that all the activity attributes are not editable(greyed out).
e.g. actualend, actualstart etc..
These attribuites are just showing dates at the moment, i need to change
these to 'date & time'.
how do i do this?
...Track change function
Word VBA function to output change indications?
I'm dumping text from a DOORS DXL script to a Word template and I want to show changes. Is there a Word VBA function that takes two input strings and outputs a string formatted as if track changes was turned on.
Input 1: The man enjoys ice cream.
Input 2: The man enjoys cake.
Output: The man enjoys <strikeout>ice cream</strikeout><u>cake</u>.
Submitted via EggHeadCafe - Software Developer Portal of Choice
..NET ListView Control Export To CSV File
http://www.eggheadcafe.com/tutorial...Exchange server randomly asking random users to Authenticate randomly...
Has anyone had a problem like this where a user is in their Exchange mailbox
using Outlook 2003 and the server prompts them for their credentials? If
they hit cancel and exit out of Outlook and run it again it lets them into
Pls make sure the outlook 2003 Client does not using Cache mode
If is ,pls clearn this option
"Benjamin Chan" <bchan[pleasenospam]@controlproductsinc.com> ���g��l��s�D
> Has anyone had a problem like this where a user is in their Exchange
> using Outlo...Rule Changes Received Date Using IMAP
I have Outlook 2003 running on XP with the latest updates and service
packs. In Outlook I have an Exchange account and an IMAP account.
Whenever I try to run any rule on the Inbox of my IMAP mail, it changes
the Received Date listing to the current date on about half of my
messages. When I open one of these incorrectly dated emails, the date
shown in the message is correct and the date changes to the proper date
in the listing of emails. Also, if I remove the IMAP account and then
re-add it, the Inbox messages once again have the correct date. I've
searched the web over and have found ...multiple colors on format of plot area
How can I change the format of the plot area to multiple colors.
for example I would like to have a Bar Chart with the background plot area
starting @ blue , then Green, then Red. Then have the temperature bars
plot over this area.
You can do so by bringing a stacked column chart into the mix.
Please see Jon's example below:
> How can I change the format of the plot area to multiple colors.
> for example I would like to have a ...How do I change my printing options
My document is printing tiled, and I just want it to print on 1 single page,
not 4 partial pages
If you are trying to print a file that is bigger than the paper in the
printer you will have to either, resize the Pub file or pint the file to a
PDF file that will scale it down.
Don - Publisher 2000�
"jbdnewbies" <email@example.com> wrote in message
> My document is printing tiled, and I just want it to print on 1 single
> not 4 partial pages
How large is...Font and Color in a field of a dialog
I have a field in a dislog, which I want to change both
the color of the font and the background.
How can I do it?
And the style of the font?
Checkout www.codeguru.com or www.codeproject.com . There are plenty of
Check Abdoul [VC++ MVP]
"Liat" <firstname.lastname@example.org> wrote in message
> I have a field in a dislog, which I want to change both
> the color of the font and the background.
> How can I do it?...Changing the RSS feeds font
Can I change the font that I view my RSS feeds in via the registry?
Nocturnal @ www.randomfix.com
That might depend on what tool you're using to read RSS feeds.=20
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
and Microsoft Outlook Programming - Jumpstart for=20
Administrators, Power Users, and Developers
"Nocturnal" <email@example.com> wrote in message =
> Can I cha...Generating Correlated Random Values in Excel
Thanks so much for your advice. I think that I have it figured out,
but can you confirm this for me? I can't afford to screw this up.
If mean(inflation) = .031
stdev(inflation) = .047
mean(stock return) = .106
stdev(stock return) = .204
A B C D
1 Z1 Z2 Inflation Stock Return
Data Generation Formulas
Are these formulas correct to generate the random data? Particularly
cell D2. Does this give me a complete value that t...counting cells with color
This is a multi-part message in MIME format.
I have a large spreadsheet of which many cells have been formatted with =
different colors. How do I create a formula to 'count' the red cells, =
or any color for that matter.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN&...How do I change the font in a dialog to be different from the dialog font?
I have a dialog that I use for a splash screen. I would like some of the
text to be smaller than the rest of the text in the dialog. How do I do
Automate your software builds with Visual Build Pro
"aualias" <firstname.lastname@example.org> wrote in message
I have developed pages that randomly define a set of normal lung
function data based on gender, age and height. I have applied formulas
to this data simulate 5 classic lung function abnormalities (normal,
restrictive, obstructive, mixed and early obstructive.) Currently
the sheets that define the abnormal are named by one of the above lung
abnormalities. I would like to present data from random pages in a
work book to students and rather than have the pages named by the
abnormality be named a simulated patient name.
Can I have the name of a sheet set to equal data from to ...Random Distribution
I need to randomly order numbers from a list or range of consecutive whole
numbers, such that each number is listed only once. Can this be done in
excel using functions, formulas or whatever? I want to incorporate it into
a spreadsheet with a macro to automatically generate the list and use it to
randomly designate selected entries.
"Rick via OfficeKB.com" wrote:
> I need to randomly order numbers from a list or range of consecutive whole
> numbers, such that each number is listed only once. Can this be done in
> excel using functions, formulas or whatever? I want to...Changing column widthd
How can you configure Excel to automatically expand column width when
I don't know if there is a setting for this (although you could always
highlight the column and click Format/Column/Autofit Selection or double
click the column header's right side column's gridline after making an
entry), but you can use this worksheet event macro to have the column width
automatically reset itself for the longest entry in column...
Private Sub Worksheet_Change(ByVal Target As Range)
R...How figure out color number(s) for particular color used in logo?
I know there's a way to figure out what color is used in a picture. It will
tell you the correct color numbers (RED/GREEN/BLUE) associated with the
How do I do it?
You need an image editor that has a color picker (often represented by an
eyedropper). It lets you click on the color and it will tell you what it is.
I think Paint.Net (free) has one, or Photoshop (not free).
please reply to the newsgroup so all may benefit.
"tjsmags" <email@example.com> wrote in message
news:63631...How to Retrieve Random Records through webservice method
I'm writing an application that retrieve records from CRM 3.0 automatically
using the web service. My question is, is there any way we can retrieve
records randomly by using any webservice method? Like we can use RAND() or
NEWID() to achieve this in SQL. Please help me if you have any idea about it.
My sample method code is given below:
CrmService service = new CrmService();
RetrieveMultipleRequest request2 = new RetrieveMultipleRequest();
// Create the ConditionExpression object.
ConditionExpression condition = new ConditionExpression...Changing category/dept names
I went into SQL and changed some existing category names and
consolidated them into a fewer names. Then when I look up the items that I
changed the cateogry of, I see the changes that were made. Reports
from the Manager also seem to recognize the changes. However, the
graph/reports (SHIFT-F5) from POS show a bunch of blank categories
for the items that were changed. Which SQL table does this
graph/reports get the data from for the category names?
...Color of the backgroud
I'm using Access XP and I notice that I have limited selection of
Is there a list of many code or box to pick any colour "light to
Can you help where I can get it the list of color?
Your help would be much appreciated.
Yes. The list of colors available from the menu is limited, but if you open
the property sheet after selecting the control or section, go to the
BackColor property and click in the property box. You will notice and
ellipses button (...) appears to the right. Click on it, use the Define
Custom Colors button and you will get what y...cant reset color map
I have several sheets that I am working on for someone else, but their color
map is screwed up so I cant set the colors I usually use. I know how to
reset the color map but for these sheets the following action:
Tools | Options | Color (tab) | Reset (button)
does not reset the map, and in fact doesnt seem to have any affect at all.
Please, does anybody have any suggestions on how to force a complete Reset
of the color map back to its default values?
With one of the bogus workbooks open.................
Open a workbook with a good color scheme from before all this took ...Change currency decimal places on items with open transactions
We've recently implemented POP in GP 8.0, and as a result, we need to
increase the number of decimal places for currency. I've managed to correct
the settings for everything except for the 1,000s of existing inventory items
When I try to run the change decimals utility, I get an error saying I can't
run the process during posting (nobody's posting, BTW). Knowledge Base notes
that you can't change the decimal places for items on open transactions. Has
anyone found a workaround for this?