|
I', developing mind mapping sofware and need for my user to be able to draw arrows. Using Vis basic.net v2002 - how the hell can i do this?, the help file code throws errors !!! hair is now being lost as deadlines loom !!!
|
|
|
|
|
with a more specific and precise question we may provide you a better answer.
Anyway the route to follow is the following:
1) Decide where do you want to draw
(i.e. a form called myForm)
2) Get the graphic enviroment
(with a myG=myForm.CreateGraphic)
3) Create and define a Pen with an arrow style:
(dim mp as new Pen(Black)
mp.endcap=ArrowAnchor)
4) Draw the line with the correct pen
(myG.DrawLine(mp,start,end))
where start and end are the coordinates.
Of course you need to provide the correct namespaces (i.e. for the ArrowAnchor) or simply import them in the beginning.
|
|
|
|
|
Thanks for your help there chap... I'd got to this route myself, now having a problem resizing said arrow heads, they seem to be connected to the width via ratio. is 'customendcaps' the way forwards ?
|
|
|
|
|
Well with the pre-format caps your stuck with them, and by changing the line width you affect the cap, an arrow in this case, as well.
Yes one good way would be to go with the "Custom" caps.
You create a CustomLineCap. This object has a BaseCap (set it to AnchorArrow) that can be a predefined LineCap. Then you can play with the WidthScale property that realates cap dimension with the pen dimension.
Have a couple of tries and see how it works.
|
|
|
|
|
GOT IT !!
Many thanks for your help, not a wasted day after all!!!
|
|
|
|
|
i want to save the font settings of the fontdialog into xml file , there is a problem to save info of fontstyle which are italics, bold, italics bold these properties! (caution: these values can be saved only as string or integer)
I am Entry level person
|
|
|
|
|
All,
I could use some feedback related to sending emails in .NET (vb).
The functionality must include the ability for the client (standalone pcs on various internet connections and ISPs) to send emails containing data from the application. There are many ways this can be done.
1. Launching outlook express and use the clients own smpt server.
2 Use the system.web.mail namespace (I have alread build a component for this) and send email through a dedicated smtp (or configurable to use clients own settings).
3. Build a Webservice that clients can use for sending emails...
If anyone has any experience from this kind of considerations it would be very interesting to take part of, or if anyone has used or seen a similar solution. Another consideration is the trouble it would cause if the too much work and config is left to the clients such as setting up their smtp server (bullet 2). Authorization on server is another consideration that applies for bullet 2 when using POP3 (smtp normaly does not req auth)... as you see I have many questions and angles on this
Any input is welcome! Thanks in advance! /A
|
|
|
|
|
I developed a program that sends emails directly to a smtp server. I do not rely on Outlook or any other client. I also avoided the webservices route. Read this article! http://www.faqs.org/rfcs/rfc821.html[^]
|
|
|
|
|
I have looked into it but can't really see how to get started. E.g does the program require any additional dlls? Is there samples somewhere?
thanks /A
|
|
|
|
|
Dear sirs
please help me how can i deplay an vb.net application with sql server database .i am new in sql server
hi,this is from D.paranthaman india
|
|
|
|
|
hi,
i am facing Problem to plot a graph in Vb.net.
The Data is comming from DB and i have show those data in line graph.
Plz help me what to do?
thanks
paritosh
mail: paritosh.mahapatra@tcs.com
Pariosh Mahapatra
|
|
|
|
|
i donot really know what you are going to do but check this out!
graphics.drawstring(data_string_from_database, font, brush,...)
I am Entry level person
|
|
|
|
|
hi,
Thanks for ur reply.
Actually I want to give the output in bar chart.(i.e X-Axis is data and Y Axis is Stock).
I was just trying to write ur code its not working..if possible send me some sample Examples in my mailid.
Thanks are regards
Paritosh Mahapatra
|
|
|
|
|
I am doing a software for door entry system, now i have a problem with one function which is when there is no one touch the program the screensaver will show up of course i can not set screensaver through Windows i have to set it in the programm, so how to do that??
I am Entry level person
-- modified at 3:56 Friday 7th October, 2005
|
|
|
|
|
There is a Win32 API function in C language which u can use to start and stop the screensaver programmatically. Use that function to stop the screensaver when your program starts and restore the screensaver before your program ends.
Just now I dont remember the name of the function. I'll have to look for it.
|
|
|
|
|
Actually i am using vb.net, do yo know what is the name of that win32 API function? Can you reply me asap please ! i will find by myself as well! Thank you very much!
I am Entry level person
|
|
|
|
|
Hi,
I have read your question. I have a question to you when is this door entry system, how this work,structure and how we control this kind of project in C#.Net
Please ..
|Muhamad Waqas Butt|
waqasb4all@yahoo.com
www.sktech.freewebspace.com
|
|
|
|
|
I am looking for a little help with a small file copy program that I wrote. Here is a sample of the code to reference.
File.Copy(sPath & "IV\ivparm.dat", sGPS & "IV\ivparm.dat", True)
pbFileCopy.PerformStep()
I am looking for a way to return the success/failure of the copy command to a dialog window or log window. There are multiple files, and I want to be able to scroll through and see that they all copied ok. TIA!!!!
|
|
|
|
|
Why not just copy them yourself with FileStream?
|
|
|
|
|
dim file as string
for each file in Directory.GetFiles("C:\")
dim FileCopied as boolean = false
try
File.Copy(file, newpath, true)
FileCopied = true
catch
Debug.WriteLine("Failed to copy")
textbox1.text += file & " failed to copy" & vbCrLf
end try
if FileCopied = true then texbox1.text += file & " was copied" & vbCrLf
next
|
|
|
|
|
Hi,
I am coding in VB.net in Visual Studio 2005, and am looking for a way to store a REG_BINARY value from the registry to a variable, which will then be compared to perhaps an array or hard-coded list of possible values to change a picture, with regards to the variables value.
Any help is appreciated.
Thanks, Andrew Robinson.
|
|
|
|
|
You're looking for the RegistryKey.GetValue Method[^]. It'll return a REG_BINARY value into an array of bytes.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Do you have an example code for return this value to an array list?
|
|
|
|
|
This returns to an array, not an ArrayList.
Dim regKey As RegistryKey = Registry.LocalMachine.OpenSubKey("SYSTEM\Setup", False)
Dim values As Byte() = regKey.GetValue("SystemPrefix")
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Does anybody know of a way to return just the file name (without the full path) using the OpenFileDialog?
Example:
OpenFileDialog.FileName returns ‘c:\dir1\textfile.txt’
But I want
OpenFIleDialog.?? To return ‘textfile.txt’
Thanks
Brad
|
|
|
|