Difference Between ScaleHeight And Height,difference Between CurrentX And CurX?
Hi Can any one explain me briefly about Difference between scaleHeight and Height,difference between CurrentX and CurX?
I am always confusing.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
ScaleHeight &Height! Why 60 Pixels Difference???
hello Ladies & Gentelmen,
there is a pictureBox in my project and some codes to the Form_Resize() event which include .Height, ScaleHeight, Width, Left etc. properties of thepicControl. Just can't understan the difference between an object's ScaleHeight and Height properties, and why it always 60 pixels?
What about ScaleTop and ScaleLeft "coordinates", why they are for? (not really interested for now .)
thanks in advance
Difference Printer Give Difference Display
I have problem here. If I use and set Microsoft Office document image writer as printer, it works find, The output and its position is acceptable. If I set the Canon as printer, The size of output result become larger. Why it would be like this?I use same code to print out the document. And I have only one print, but I can print out the paper using both printer type.
Form5.MapCompactMaps.OutputMap2 Printer.hDC, 300, 400, 5000, 5000
Height And ScaleHeight
I'm a lit bit lost here : i think that i don't know the difference between Height And ScaleHeight, Width and ScaleWidth :
I have my forms Width set to 12000 and Height set to 9000 and Window state set to maximized.
I'm building my forms on these parameters for resize events.
The problem is that sometimes the ScaleHeight and ScaleWidth properties change and i have automatically all my form upside down.
Any explanation or help please ?
Printer: Height Vs. ScaleHeight
I am a bit confused. On the printer i am working on now (Epson), it returns:
printer.ScaleHeight = 15876 (twips)
printer.Height = 16836 (twips)
29.69 is the size of the A4 page, as leat the way i measured it :-)
so why is ScaleHeight smaller than Height? Is the paper height, according to the printer, is 15876 or 16836???
GDI Image Height Vs PicBox ScaleHeight
I am attempting to load a tiff image into a picturebox using GDI+.... So far so good thanks to OnErr0r's examples!
My trouble comes with trying to manually create scroll bars. The ScaleHeight and ScaleWidth properties of the picturebox are different than the bitmaps Height and Width properites (yes I have the ScaleMode set to pixels). For instance, the bitmap image indicates that the height is 444 and the picturebox indicates the scaleheight is 413 so I display the veritical scrollbar. But the image isn't even close filling up the picturebox!
Once I bring in the image to the picture box, do I need adjust the bitmap image to fit the picturebox (or vice versa)? Here is a glimpse at some of the code :
I am loading the picture box like this :
' Create the new objects
Set mGDIP = New cGDIP
Set mbmpImage = New cBitmap
Set mgfxGraphic = New cGraphics
' Set image object
picImage.Picture = mbmpImage.Picture
' Set the graphic image
Then I check the height and width of the image to see if its greater than the scaleheight and scale width of the image... and if thats true, I enable the scrollbars :
' Get the new height/width by multiplying by the zoom factor
llImageWidth = mbmpImage.Width * mdZoomFactor
llImageHeight = mbmpImage.Height * mdZoomFactor
' Check to see if the image height is now greater than the picture box height
If llImageHeight > picImage.ScaleHeight Then
' Set the max of the vertical scroll bar to the difference between the image
' height and the picture box height
vscUpDown.Max = llImageHeight - picImage.ScaleHeight
' Enable and make the vertical scroll bars visible
vscUpDown.Enabled = True
vscUpDown.Visible = True
' Disable and make the vertical scrollbars invisible
vscUpDown.Enabled = False
vscUpDown.Visible = False
' Set the scrollbar value variable to 0 since its not being used
mlUpDown = 0
' Check to see if the image width is now greater than the picture box width
If llImageWidth > picImage.ScaleWidth Then
' Set the max of the horizontal scroll bar to the difference between the image
' width and the picture box width
hscLeftRight.Max = llImageWidth - picImage.ScaleWidth
' Enable and make the horizontal scroll bars visible
hscLeftRight.Enabled = True
hscLeftRight.Visible = True
' Disable and make the horizontal scrollbars invisible
hscLeftRight.Enabled = False
hscLeftRight.Visible = False
' Set the scrollbar value variable to 0 since its not being used
mlLeftRight = 0
Width/Height And ScaleWidth/ScaleHeight
Well, I've read about 2 pages of thread and I still don't understand the concept. Here's what I'm trying to do:
Create a form that is 1/2 the size of a standard piece of paper (4.25x5.5), but still print at 8.5x11.
Here's how I've got the form set up:
Width = 6120 (based on 1440 twips per inch [1440 x 4.25])
Height = 7920 (based on 1440 twips per inch [1440 x 5.5])
ScaleWidth = 8.5
ScaleHeight = 11
ScaleMode = 0 - User (I set it to 5 - Inch and it changes my scaleW and scaleH; so I change these back and it goes to User)
I'm on my laptop and don't have access to a printer to test this out, but am I doing anything wrong?
Difference Between Win Nt 4.0 And Win 2k
We have a program that access a sql 7 db under win nt 4.0. It stores files under a dir share for bulk inserts and works fine.
We have uploaded this to windows 2k and citrix, also running sql 7.0 but every time we run the prog it returns error 76 file not found. But the files are being correctly created in the network share.
Is there a difference in the way nt 4.0 and w2k handle their file accessing under vb?
I used Word to draw a flow chart. I had one drawing which has a draw box when I clicked any one object in this drawing. I copied one object in this drawing to other page and made another drawing. Then it has no drawing box. However, I need to enter "enter" key to move the text in the previous position. If I tried to select all of them, the drawing is black box and the other is one black horizonal line. I knew it should be very different. Would someone be kind to let me know what's the difference between two? Can I transfer the second one to the first drawing type?
Thank you very much!
What is the difference between Visual Basic for Apps. and Visual Basic 6?
Difference Between VBA,VB6, And VB.net
i guess i'm wandering for a couple of reasons. First of all, i'm useing vba and i'm afraid to post on the visual basic general forum because i'm afraid i'll eather say something that is only in vba or the'll give me some advice that doesn't apply for vba, i learned vb on vb6 and have played with vb.net and i really still dont understand all the differences? I also need to know how well code will transfer over if i decide to take my stuff off excel? please help.
what is the diffrence between VB 2005 express edition and VB 6?
and what is Vb.net?
How these three relate?
I want to know the difference between the following declarations:
Dim objObj as SomeObject
set objObj = New SomeObject
Dim objObj as New SomeObject
Which is the preferred / efficient way of declaring? Which type needs to be used in which case?
Difference Between VB And VBA?
Could you tell me what the difference is between VB 6 and VBA? I've noticed that they're referred to separately in job ads and so on. If I've been writing VB in Excel, does that make it VB for Applications?
VB6 VB.NET Difference
just want to know what is the difference between VB6 and VB.Net, any url or article regarding this will be of great help. and is it true that vb.net will only work for ntfs file system?
Whats the difference between regular VB and VB .NET
Whats the difference between Randomize and Randomize Timer?
Does randomize timer randomize the timer's interval?
THe Difference Between ...
Form load and Form Activate???
I know I have a bunch of questions, but thank you to all those who reply!
Difference Between COM And DOM
I want to ask about the Difference Between COM and DOM..
What kind of Progaming It includes. GIve any Exapmles of these Types.I'm totlay confused....
I think u are all have Understand what i'm saying....???
Thanks In Advance
I know this is stupid question but I need to know it anyway
what is the difference between single and double variable type?
when do you use double and when single?
please make the answer simple and with some example if you can.
thanks in advance!
CHR And CHR$ - Any Difference?
I notice that several of the basic functions have 2 forms, e.g., chr(34) and chr$(34), hex(10) and hex$(10).
What, if anything, does the extra $ do?
What is the difference between as MODULE and a CLASS MODULE?
What Is The Difference Between Vb6 And Vb.net?
I am slightly confused as to the differences, if any between vb 6 and vb.net.
Can someone enlighten me. The reason Im posting this, is because i generally use vb6, but now have a version of .net edition. Is the coding any different?
Pls Tell The Difference Between This Two
i m doing an application with ado database.....now to add new recordset in the database i found two ways as given below....so pls tell me is there any difference between this two...can i use any of these ways to add new recordset to the database..??
Set Text3.DataSource = adorecordset_recieve
Text3.DataField = "project"
Private Sub Command3_Click()
Private Sub Command3_Click()
adorecordset_receive.Fields("project") = Text5.Text
Difference Between Vb5 And VB6
Can someone tell me the difference between VB 5 and VB 6. I know this is a little behind times , but I need to know. Its urgent !!!
Difference Between Com And Com+
I want know the difference between the com and com+. Can any one help me on this matter. I have a little bit of knowledge about com. Even try to give me the website addresses where i can get the information regarding this topics.
Thanks in Advance.
using ADO I can use the following:
using a datcontrol on my application, I use the following:
What can I use for the question marks to get AdAffectAll to work.
Thanks in advance
What's The Difference?
Hi to all,
What is the difference between these two statements/declarations?
Dim rs as New Recordset
Dim cn as New Connection
'and this code
Dim rs as ADODB.Recordset
Dim cn as ADODB.Connection
I saw some sample that are explicitly declaring these kind of statements without the word 'ADODB'. Why is that? And I notice that when the programmers that declared these statements (the ones that don't have the ADODB word before the recordset and connection objects) were using the ODBC technology when communicating with their databases.
Thanks and god bless!
Difference Between *.wmf And *.emf
Here's the problem I have: I tried to output some text, lines and rectangles, etc... on a *.wmf. And then display it on screen and save the *.wmf for later uses. File size problem has forced me to use enhanced metafile(*.emf) instead of normal metafile(*.wmf). So I used CreateEnhMetaFile API to do it.
However, I found that the overlapped part of the graphics are erased. This means if a circle is drawn first, and a rectangle is drawn on the same area. the overlapped part is missing. And this did not happen if I use metafile(*.wmf).
Can anyone kindly tell me how to solve it?
what is the difference?
they are the same right?
Dim fso As FileSystemObject
Set fso = New FileSystemObject
B. Dim fso As New FileSystemObject
MRU With A Difference
I don't know if I am being a bit over ambitious here, but this is what I am after doing;
I have a certain number of nodes in a treeview (loaded from a database) This could change as the user can add a node at run-time if wanted.
What I would like to do is have a menu, much like a dynamic MRU list, that shows the Node names.
I could hard code it but as I said, the user may add a new node, and then, well .....
Any ideas how to do this?
What's The Difference Between....
Suppose I use a textbox to add items into a listbox, and in the code I have this:
If I use Write, the item in the listbox would show with quotation marks...for example, I added the word Apple in the listbox, it would appear like this: "Apple" ....I don't want the quotation marks.
If I use Print instead of Write, it doesn't have the quotation marks. Why is that? What's the difference between Write and Print? When should I use Write instead of Print and vice versa? Is it ok if I use Print on the example I've given? thanks a lot!!!
What's The Difference Between ??
Hello My Friends ;
What is the difference between the follwoing ?
Public Const - Public Type - Public Enum
public Sub - Public Function - Public Property
And What i mean if i said Sub and Functio without SUB ?
I need Good Explanation. And if there another type, i hope to be explained here...
What Is The Difference
1) what is the difference between MSflexgrid and Datagrid. which one is more flexible to handle data. suppose in a textbox i have to enter something and same thing i have to search and display from a table to the grid. then which grid i will prefer .
2) Is is possible to display from more than one table to a grid
any help can be appreciated
We are going to develop me COM+ components for a new system. Currently we have a single DCOM that handles all SQL commands from different systems (i.e. all SQLs will be executed by the same COM in MTS), and there are consistently have few hundreds of connection to this COM.
Assume hardware config is the same, if I redevelop the system so that each system have its own COM executing SQLs, will the performance be the same as the single-COM approach?
I am new to visual basic pls any one cal let me the difference between Ado,Rdo,Dao.
What are these ,wich one to use in which situation,which is better one.
What's The Difference
What's the difference in doing these.
Dim x as String 'or Private x as String
does it matter which syntax I use to declare private variables in forms and modules??