stdFont Object -
Has anybody had any fun with this object?
Some fonts it seems to reject (Defaulting to MS Sans Serif) when I attempt to assign it.
i.e.
stdFont.Font = "WingDings"
I know for a fact that it is on the system and I have spelt it correctly.
The problem is, occaisionally, it lets me assign it. But most of the time it doesn't.
stdFont Object -
Has anybody had any fun with this object?
Some fonts it seems to reject (Defaulting to MS Sans Serif) when I attempt to assign it.
i.e.
stdFont.Font = "WingDings"
I know for a fact that it is on the system and I have spelt it correctly.
The problem is, occaisio
Using StdFont Object with Property Bag -
I'm using VB6 and want my developers to be able to edit properties of a graphic element I made. I added a Input variable called ObjectFont and set the Font property to the new variable.
Now when they use the element it defaults to MS Sans Serif and can be set to another font after
Custom Control Font Property -
Can anyone tell me how to set the font property of a label control from a propertry on a usercontrol.
so that
public Property get Font() as stdFont
font = label1.font
end ptoperty
public property set Font(obj as stdFont)
label1.font = stdfont
end property
works
Assigning Object to value is not producing compiler error -
comiler is not throwing errorcase1)
=====================
private sub command1_click()
Dim x As new StdFont
x=2
end sub
Note :
====
In the above code i am creating an object for stdfont class & then i am assigning some value/string to that obj
Incorrect data stored by StdFont type variable -
Hi All,
In my project, I have declared a variable say X as New StdFont. I am using it to store font properties like size, name, charset, etc. However, when I assign an integer as its size, it stores it the value incorrectly. For example, if I assign 5 to X.FontSize, it stores as
UserControl don't save properties... URGENT! -
found this code somewhere on the web, and it works only in Design Mode. when you play it, the font property return to it's default value.
Code:
Dim WithEvents mFont As StdFont
Private Sub UserControl_Initialize()
Set mFont = New StdFont
Set UserControl.Font = mFont
StdFont -
isnt possible to store text to word.(i.e word="Hello").thanks
Code:
Dim word As New StdFont
Private Sub Command1_Click()
With word
.Bold = True
.Italic = True
.Size = 20
End With
Set Label1.Font = word
End Sub
Custom Functions... -
Hey all,
So, I've got this function that is supposed to just set pass a StdFont variable, after setting it's arguments from data in some arrays.
VB Code:
Private Function getGeneralFontData(intSectionIndex As Integer, intSizePosition As Integer) as StdFont Dim sFnt
Modules, FlexGrid, Wend and controlbox -
Ok, Here we go, Using "Si_the_geek's" FlexGrid_AutosizeColumns code I placed it into a module to use with all the flexgrids that will be in this program on the different forms, but I can't seem to get it to work. What am I forgeting to do to make this work? I'm putting the co
Charset ... PLEASE HELP -
Hi,
Does anybody know how I can sit a textbox or a richtextbox to accept different charset's for different languages. For instatance, it is always set to US-ASCII , what if I want to use the Japanese or other character sets?
I tried:
dim X as New StdFont
X.charset="US-AS
3d rotating (unresoleved) -
ok i have the following code its in a dirrete lauguage but its real clode to visual basic i cant seem to get the rotate to work good code you please held here is my code
set window -50,50,-50,50
dim object(10,3)
let lfocus = 1
let lines = 6
let object(1,1) = 1
let object(1,2)
Create Instance Object in Visual Basic 6.00 -
how do i copy an object that having the same value, properties from other object?
the object is come from the same class module.
the other copy of object is needed for manipulation without interference to original object.
thanks for all your info
Calling VB6 event from VB.Net -
Hello
I an trying to use a component that i built in VB6 within a vb.net environment.
the problem is that it is not rasing the events in the VB.net form.
these are parts that I am using
a. VB.net Form
b. DLL com object which acts as communicator
c. DLL com
Saving Object Data to File -
I need to save the state of an object so it can be reloaded next time the app runs. The object in question (Office Pivot Table) has too many intertwined properties to just loop through them so I want to save the entire object instance to file. How do I do this?
I've looked at writing
Reading data and grouping data (order not important) -
Hi,
I am trying to write a simple program that would read a textfile such as the following format:
----------------------------
Object A
Size of object
X, Y
Object D
Size of object
X, Y
Object B
Size of object
X, Y
X, Y
Object C
Size of object
X, Y
etc...
-------
object is not Nothing -
I know you can this statment to see if an object pointer is empty:
if <object> is nothing then ...
but what if I want to check if there is something in an object
I tryed : if <object> is not nothing then....
but it doesn't work, what do I do?
writing text with directx -
I am trying to draw text to a secondary surface used for blitting, using the surface.DrawText function. I have set up my font properly, that all works... However, regardless of what I set my x and y values to, the text gets drawn at 0,0.
Anyone know what's wrong?
Code:
Dim
Object Design query -
Hi,
I'm designing a system in ASP.Net using VB.Net.
I have an object called Uer which will house a user's email address and password. I want each user to have its own Address object also which holds name, address, country etc.
What i need to know is to I make one of the proper
IE Object -
Does anyone know how to set object to an already open IE window. If another program opens an IE window, I need to be able to set an object to that IE window through the IE object in order to control it. I already know how to get the hwnd off of the new window but I cannot figure out
Dictionary Object TypeName -
Hi,
I am passing a dictionary object to the Set function of a class. Before setting the private object to this external Dictionary object, I am first using an if statement to make sure it is really a Dictionary object.
Can some one please point out what TypeName should I use fo
Some Object Questions. -
When one object is set to another, is a new object created, or do they both now just point to the same object? If so, when one of these clone objects is destroyed, is the original object it was pointing to destroyed? Thanks.
Problems with the ListView control -
Hello. I have a problem with the ListView control. I'm in a For loop, and everytime i want to add an object, i have to use Set function to define it.
Example:
Dim object As ListItem
Dim i As Integer
For i = 1 To 1000
Set object = ListView1.ListItems
How about... -
This only works with some objects, but:
(for simplification, "object" is used in reference to the thing u want to test whether the mouse is over )
x1 = object.left
x2 = object.left + object.width
y1 = object.top
y2 = object.top + object.height
then you can put this
Adding a COM refrence and creating an object from it. -
I added a reference to the COM object 'Microsoft HTML Object Library'. Now, how do I make an object from it?
I am doing this in C#, but if you have a way in VB, let me know that too... Thanks.
new object thats a copy of old object [resolved] -
im trying to get an object from a collection and use it somewhere else
in the somewhere else that im useing it the object will be changed some. but i dont want it to change the object in the collection
it seems like i should just be able to say somehting like
dim obj as new o
NOW Function Question -
What is the double value returned by the NOW suppose to represent?
It looks as though the .00001 place is seconds. Is this true?
Example Output:
Object 1: 36804.4683217593
Object 2: 36804.4683333333
Object 3: 36804.4683449074
Object 4: 36804.4683564815
Object 5: 36804.46836
[2005] Listing the properties of an object Reflection -
I have an object that has various properties. I would like programatically create columns in a listview named after those properties. Rather than add the columns separately in the code I was wondering if there was a way of getting a list of all the property names of this object? I p
DCOM and MTS help needed -
Hi !,
I have created a DCOM object and have deployed it in MTS. I am using this object in my Project. When I packaged and distributed( remote sever files also included) , Instead of calling the object from the MTS (in MMC the object is not turning by itself when the project is runn
[2.0] slight confusion between "Object" vs "object" -
while typing using VS 2005, C#, intellisense shows "Object" and "object" .
what is the difference. The help shows both are Object class . then why Uppercase Object and lower case object is displayed by intellisense?
nath
Size of an object -
Guys, its 1:52 AM here in India and I am awake for the Nth night. Don't laugh at me if I sound silly.
How do I get the size of my object? Like you can always do a Len(TypeInstance) to get the length of a structure. Like sizeof(Object) tells a C++ proggy his object size. I want the s
Office Object -
I want to have office in my APP but know i want to insert the object.
When i inserted the object (using insertable object) in the form i can call the Object(Excel, Word,etc) by dblclick on the objetc. The problem is that i cannot print using this way. Is there anyway to print or o
Set object to Nothing from Constructor -
Is it possible to set the object being instanced to nothing from within the constructor.
For eaxmple, I have a situation where if invalid parameters are entered as part of the construction of my object
I appreciate that I could throw an exception at this point, and that when the
Class<> to Object -
Is there any way to get an Object from a Class<?>
public static Object getObject(Class<Object> type)
{
// returns a new Object of whatever i passed in the parrameter
}
Something like that
How to determine size of Object -
Hello people
I am attempting to use the COPYMEMORY API function with Objects, and it expects the size of the object I am copying as a parameter. I am not using a string, so LEN or LENB won't work here.
I've searched all over the net and in these archives here, but no answers y
What am I looking for Object or Control -
I have built an object/class for my application. It holds lots of specific kinds of data and collections of data.
There is no pictorial representation for my object. What am I looking for if I want to use the data in my object to create a picture and put it on my form or picture bo
Object Destruction -
I am developing an application like calculator. First I declared the array of object of a class. when the need arrize i reallocate to store more object. Now the situation is that I want to delete an object, so that the other objects automatically adjust itself accordingly. How I can de
Object Arrays -
In the old VB6 you used to be able to create an object, and make that object apart of an array. At run time you could then create more of that same object, but with different indexes (But still the same name).
So in the end you could end up with an array of tiles if you wanted, by tim
COM Objects within COM Objects -
OK...Here goes...
I have a series of COM objects that represent a data structure. I'll use a CAR object as an example...
The CAR object has references to numerous other objects...the ENGINE object, the TRANSMISSION object, etc...each containing the properties of that object. From
return types -
Object Object::Foo(); vs Object& Object:Foo()
What is the difference between returning and object and returning a reference to the object? If there is a difference, when would you use each case?
Array ByVal and not ByRef -
How to add an object to an array byval....
I'm adding the object with
set array(arraypos) = obj
But when I give my object another valu with another Set, I loose what's in the array....
I know that is because the array contain a reference to the object, but how can I add th