oh yah, and from m_points(x)=... and down
that isnt in general declaration any more, that is in your subroutine.
User Profile
Collapse
-
'in general declaration
Private Declare Function Polygon Lib "gdi32" (ByVal hdc As Long, lpPoint As PointLocation, ByVal nCount As Long) As Long
Public Type PointLocation
X As Long
Y As Long
End Type
Private m_Points(1 To 255) As PointLocation
m_Points(1).X = X1
m_Points(1).Y = Y1
m_Points(2).X = x2
m_Points(2).Y = y2
m_Points(3).X = X3
m_Points(3).Y...Leave a comment:
-
Much appreciated. I also found an article on that page for a faster pset substitute.Leave a comment:
-
Storing Settings
I am just wondering about how practical it is to use the registry to store settings.
I have several boolean values that are currently being stored in the regestry for my application and a seperate text file that stores up to 255 strings. i knew that big chunks of data (the strings) had no place in the registry but if i am going to be reading a text file at program load anyways, should i just throw my small settings into that file aswell?... -
1 and 2 were taken care of by hemant
3 is not clear what you are asking.
if you want to clear a screen that has an image on it then use "cls" on a line by itself.
if you want to empty the data in an object then use
object.text = ""
or
object.value = 0
depending on the kind of object you are working with.Leave a comment:
-
my input here probably wont be helpfull, but i did this the low-teck way. I gave my "server" box write rights on my "client" and just had the server write a file to a designated path on the client computer with instructions in the file. the client would capture the writing of that file and then "read"/process the instructions.
im all about the "wrong" way to do things.
this posed a major security...Leave a comment:
-
not exactly a text box, but there is a directory object.
The "Directory List Box" is a tool on the standard toolbox. 8th from the top, left side, with the image of a windows folder.
private sub form_load()
Dir1.Path = "C:\folder1 \"
end sub
if you need to have it in a list box, (be ware, there are better ways then what i have here), then you can try the following code:...Leave a comment:
-
I would love to take on the task.
Heres what I need from you:
An example of the output file (with no added comments in its original plain text form, just so i am cirtain exactly what i am working with)
An example of what you want the finished product to look like (use excel, just set up the columns the way you want them to look with the data from the text file, if you dont want this, ill make something intuitive looking)
...Leave a comment:
-
just poking my head in here... i think that is a registry issue with the default browser search.Leave a comment:
-
could you use vb to capture the location that the document was saved to and, when it is saved and closed improperly by the user, import the document from disk to database? and then delete the file created by the user saving it to disk?
that would make word's save/close the same as your application's save/close.
i know it isnt pretty.Leave a comment:
-
why dont you ask vb to close the document as soon as it is done saving it, and then say "no, i dont want to save!"Leave a comment:
-
Aw, this seems familiar. I do a lot of work with graphical representations of raw data. (as hobby, mostly). An application to do what you ask would be very small and easy to make. The vectors for G could be rendered into an intuitive visual graphic in 10 lines of code or less. You said you want to display it in graph form. Reading the data from file and loading it to memory is especially easy since you know EXACTLY what format it will be in. If you...Leave a comment:
-
this might not look like a visual basic issue... but it is going into my vb app, and if i post on a math forum, ill get a bunch of nothing. i appreciate your patients with my posts.Leave a comment:
-
colorfull geometry
see avatar for image.
ok, i have two circles (black) on a plain (white) of which i know their center points (blue) in x,y and their radii (green). i need to find the 4 points (yellow) at which two lines (red) would be tangent to both cirles.
...help -
first things first:
you have opened file as 1, you NEED TO CLOSE IT. bad form to leave it hanging.
second thing:
you have an if statment, you have no end if...?
third thing:
you have 2 do's, and only 1 loop...?
Private Sub Command1_Click( )
Dim Target As String
Dim Current As String
Dim Result As Long
'input target ("143483")
Open "E:\test1.t xt"...Leave a comment:
-
tidbit:
comboboxes (and other text based objects) dont have value properties (which usualy refur to numerals). the information is in "string" format (because it is text), see sahsi's post for retreiving it. if you want to take the string and make it into a value (if you know it is a number) then you can use the "val()" function.
Dim MyValue as Double
MyValue = Val(Trim(CboSta te.Text))Leave a comment:
-
what i actually ended up using was one line:
me.picture = me.image
what that did for me, was whatever temperary drawing i did after the screen had been "saved" could be errased with "cls" (clear screen) and leave the perminent background.
while trying to accomplish this, i came across savepicture and loadpicture.
it will save an image to disk and load the image from disk.
the file path is the...Leave a comment:
-
oh, and im not sure how new you are, so i should add that the
richtextbox1 = textbox1 & vbcrlf & textbox2
should appear within the "click event" of your command button:
private sub command1_click( )
richtextbox1 = textbox1 & vbcrlf & textbox2
end sub
and... there is a spider crawling on my screen, thats just dandy.Leave a comment:
-
havent worked with a richtextbox... but it if behaves anything like a regular text box then that means it has what is called the "text property". you can set it's text property like so:
richtextbox1.te xt = "hello world"
the text property also belongs to your regular text boxes. this property can either be set (like in the previous example) or it can be returned (you can ask what it is):
...Leave a comment:
-
BSOB replied to How can I intercept messages received in MSN messenger (7 or above) using visual basiin Visual Basicsince you say "any help", that includes my catagory of suggestion.
if efficiency is an issue, stop reading here.
i dont know msn specifically, but most IM applications have a history log. I would find that history log file and:
a) try to capture the write event to it
<or>
b) check it every few seconds to test for a change in file size
<or>
c) delete the file, and anytime that...Leave a comment:
No activity results to display
Show More
Leave a comment: