o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

font size issue -

dear all,

there's a little problem i can't seem to find my way through. i hope there's a well-willing helpful soul that will guide me out.

when setting a font size with something like:
VB Code:
  1. Dim sFnt As StdFont
  2.     Set sFnt = UserControl.RTBeditor.Font
  3.     sFnt.Size = CDbl("13")
  4.     Set UserControl.RTBeditor.Font = sFnt
the sFnt.Size is set to 12,75 (and not to 13).

whenever i get back the font again, the value is therefore set in the font size combo box to '12.75' and not to '13'.

how can i actually use 'integer' numbers (such as in any application out there)?

attached is a very simple project to show what i'm talking about...

thank you,

wc.

 

ITT: We annoy with vBull code -
I hope this threads annoys the **** out of anyone who reads it. If it doesn't, then.... well..... guess I need to try harder next time, ya bastards! Now everyone else make annoying stuff (yes I am bored out of my mind!)


Greatest Program Ever -
Okay, I was really really bored and threw this together in like 2 minutes in VB, lol. It makes words random colors and sizes that works with vBull. Have fun


odd behaviour of fread -
Two things, fread reads 1 byte when its suppose to read 4, but get no errors nor has it reached end of file, and the other thing is that it jumps to 245, can anyone explain this? getpos(f,&pos); Debug << pos <<endl;// says 0 size_t s;Debug<<fread(&s,sizeo


Old Avatar's home -
chrisjk InvisibleDuncan Nucleus Gaffer ghost ryder jpbtennisman Nucleus eiSecure TheBionicOrange sail3005 parksie Stiletto Nightwalker83 mendhak mendhak... again...


WindowState -
I have made a "Window" control which goes inside a parent window, hides its window border, sets its backcolor to magic pink (magenta... its a skinning thing) and set its transparency key to magic pink. The restore button on my window control uses this code: PrivateSub Pic


Enumerate Font Sizes -
Following code returns duplicate font sizes in a combobox Any suggestions or a better way. Thanks David 'Load Font Sizes for Active Font 'VB Substitutes the Closest Available Size 'Note: To get TrueType Fonts < 8 you must ' - Set the Font Size ' -


I need to prove something. -
This is a school assignment, so all the people that don't like to help at such problems are warned. I have to use complete deduction to prove that 3n + 2^n < 3^n is true for every n >= 3. I can prove that it is true for n0 = 3 (surprise), then I tried to prove that the di


Test, of course -
H(s) = ∫0∞ e-st h(t) dt sin2(x) ∫_____ dx x3-y Cool stuff using the [img] tag.... Linear Least Squares: [c] = [ATA]-1AT[y] Non-linear Least Squares: [a]k+1 = {[a] - μ[JTJ + βI]-1JT[f(a,x) - y]}k Opt


Accessing Components on Form -
How can I access components on a form? As an example of what I mean, I have a form which contains A Label A CheckBox A Button A Listbox A Textbox A Timer If I run the form with the Following code in the Button Click Event, Code: Private Sub Button1_Click(ByVal sender As


Best useless comment -
Your mission: Find random threads(Chit-Chat of course), but others are acceptable also. Respond with the most insane, crazy response- and post a link here. Points for all good ones(points are worth REAL dollhairs!)


Problem sharing a .frm file with a toolbar due to font size setting -
I've run across a problem when sharing a vb6 form file which has a toolbar. It looks like the font size setting on the 2 machines that are sharing the form is causing the toolbar to shift. One machine has larg fontsize and the other small. When the computer with large font size


Post Race ---- EVERY1 HELP!!!!!!! -
Ok My Goal is to beat CyberSurfer and his 46,000 + posts WE NEED EVERYONE TO HELP BEAT HIM!!! SO POST!!! Remember Nothing Is Impossible


Webbrowser Control and Drop Down Boxes -
ok i need a webbrowser control to pick somthing from a drop down box Code: <select size="1" name="day"> <option value="32"><font size="1" face="Verdana, Arial">Day </font> <option va


2 quickie n00b questions.... -
Sure some of you have had this problem, just can't seem to find the answer on Google or in the forums... I have an OpenFileDialog box that pops up, yet when you press a button (Open or Cancel), the dialog box pops up again, so you have to press the button twice to actually open the


Bitmap/DLL Problem -
Hello to all! How can I add Bitmap Images in a DLL file, and then how can I get them from my Application and display them in it? Reply MUST!!! Nakaam Aashiq!!!


trigger event -
Hi all If i want to trigger this event from another form how do i go about let say the form in which is loacated is frmMain. In vb 6 you could excecute it thru dot notation eg frmMaint.DepartmentStart but how do i do this in .net? Public Sub DepartmentStart() Dim dsDpt As New Dat


Web design issues -
I have two questions: (1) When designing applications for the Web, could you please point out how does one take into account screen resolutions? What should be the base that I must take for a start when I build the website? One thing that comes to mind is to design on the lowes


Scroll to item in combobox -
Hi All I populate a combobox as follows : Dim dsDpt AsNew DataSet ExecuteSP("PF_Get_Departments", "DEPARTMENT", dsDpt) cboDpt.DataSource = dsDpt.Tables("DEPARTMENT") cboDpt.DisplayMember = "description" cboDpt.ValueMember = "code"


Getting the size of a file -
Hey, how about next to the link of an attached file, how about the size of the file? Something like... PHP Code: <?     $Size = filesize(File_Name);     $Type = "bytes";     if($Size > 1024)   


Issue with Dataset [urgent help] -
Hello friends I have a problem with dataset. In dataset i have many column like bo_code, F_Name and many more. Whenever i export this dataset into excel sheet then excelsheet have column bo_code, F_Name. But i dont want these column as a header. I want to rename the column name o


string search and insert -
I have various HTML documents and particular items have been tagged like this <FONT FACE="CustomFont 1" SIZE=2>2</Font> in the above tag the value between the font tag is 2. sometimes the value will be like this <FONT FACE="CustomFont 1" SIZ


How far do text sizes go -
Let's see... 1 2 3 4 5 6 7 89 10


Colorful Dreams -
ZZZZZZZ.......... colorful dreams??? Do you always dream in color or do you dream sometimes in black and white? Why Do I forget most of the times what my dreams are like ? ps: It's my work-off and I don't have anything to do... lol


Do you believe in Telikenesis or any ESP -
I am curious if any one here believes in TK(Telikenesis) ESP(Extra Sensory Perception), RV (Remote Viewing), exc... I believe that the mind is an untapped recource, so yes i am a strong believer in TK, ESP, RV, exc...


Collatz Conjecture / Collatz Tree -
I have made a WPF application that constructs a Collatz Tree for the collatz conjecture problem. The collatz conjecture is that any number will eventually reach and terminate at 1 by following these steps: If the number is even, divide the number by 2. If the number is odd, multiply


GODZILLA THE MONSTER ! -
GODZILLA Size Does Matter !


Word Relative Font Sizing -
Can anyone suggest an easy way to increase the font size of an entire document (including headers/footers) by a certain percentage? I know I can do it by going through word by word and setting the font size to the original font size multiplied by a factor, but this seems slow and tedi


win big money. -
I will give the first person to guess what im thinking an amount of money greater than -1 million dollars.


Font size increments -
When I set a fontsize to 8, and then query what the font size is, it will say that it is 8.25. I tried to increase font sizes from 1 from size 1, and here are the font sizes I got: 1.5, 2.25, 3, 3.75, 4.5, 5.25, 6, 8.25, 9.5. It seems that this incremental series is a little differe


GridLayout - positioning -
I use GridLayout many times over FlowLayout. However I'm running into trouble in GridLayout when the user's text size is set to Large or Largest. (This is dones by selecting the Text Size from the View menu in internet explorer.) Because controls are layed out in absolute positio


Specifying Font Size in Posts -
I have seen many people specifying font size in their sig, how do you do that. I tried the following code but it dont work. [font size=4]Font size 4[/font] What is the correct VB Code? Thanks


[2005] How to adjust ToolTip Font size -
I'm working on scaling the application based on the current resolution of the screen. but I'm facing a problem that if I scale down the control size with its font then the text displayed in tooltip is distorted due to small font size. So I want to make size of tooltip to bigger when it


Programming uniComp PCT2 Barcode Scanner Terminal -
I have resolved this issue. In case anyone was wondering, it seems I was just passing the wrong argument. The one number specifying a font is possible because of internal fonts. I am programming a uniComp PCT2 barcode scanner terminal. Well really I am programming the host, as the


Web Font Question: Font Size -
has anyone by chance tried to figure out a way to convert font point size to html size? Like FontSize @ 8 = HTML font size 1??? Thanks! (I have figured out how to change web page settings on the fly...BG color...text color...link color...ONLY for less complex pages)


Can't isolate x!!... -
I have this equation, but I can't find x! Can someone help pretty please? I'm going nuts trying to unravel this. I'm trying to learn the algebra required; I can easily find it with graphing software. I need to understand the algebra behind it... I'll show you my attempt, but I have


[2008] Font size in DataGridView -
I have two forms, each with a DataGridView populated by using an sql statement. I have clearly done something at design time as one grid displays cells sized in 8.5 and the other in 9.5. I cannot find anything for Font in the DataGridView properties or in my code, but it would be a ver


Problem with font sizes -
I'll try to explain as best I can: I have a logical space of 2100x2970 I have an arbitrary device space - a resizable picturebox I can display text to the logical space with a font appearing at it's correct point size. I want to be able to simulate editing using a textbox ov


Just a reminder -
There is no place I would rather Live any day... but the good old U. S. of A.


sizesizesizesize -
a a hmmmmmmmmmm How About: a Hmmm, guess it only goes in 3 deep? How about within quotes: Quote: Quote: b Quote: a b


No need fo SP2 with VB2005 express -
This is a bit off topic, but may change the programming environment. After a few minutes I found that by altering the "vs_setup.pdi" file, you can eliminate the need for the prerequisite service pack! My question is: Could this make the something not work? I have not