|
does anyone know how to resize the graphics objects (rectangles, ellipses etc...) after the user creates them ? preferrably with a standard handle container....
|
|
|
|
|
codecreeper wrote:
preferrably with a standard handle container....
sorry, wat do u mean here?
u mean that u want to do something like a Paint program in which user can draw some objects (rec, ellipse,..) then he can resize these objs?
if so, the way to achieve this that u have to store these objs in an array. Then u hv to repaint these objs if user resize...
<< >>
|
|
|
|
|
Yes by creating the reize method.Contact me for further assistance
Hi i am sumod
|
|
|
|
|
Is anybody developing apps/components that are OPC compliance. I just wanted to know if OPC is still alive and it's used as standard for industrial client / server applications.
Marc Soleda.
P.d: I've asked the same question in the VC++ forum but as it can be applied in any development platform I decided to ask it here.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
I am very carefull about declaring variables. But in a project i get out of memory exception, generally after close a form i use GC.Collect.
In this project , I connect a Sql Server with a sqlConnection declared as public in a module. Because in every task, i use this connection object. Before task i open that, when i achive the task, i close the connection. can This be cause?
|
|
|
|
|
Greeky wrote:
Before task i open that, when i achive the task, i close the connection. can This be cause?
Nope, I think.
To easily figure out somthing. U might post ur snippet code that cause this problem. Or u might try to debug it.
<< >>
|
|
|
|
|
Are you showing forms using .ShowDialog() ? Are you calling .Dispose() on these forms? If not, your memory problems are coming from running the system handle pools into the ground. This also applies to Bitmaps, Pens, Graphics objects, ..., ...
Also, you should NOT be caling GC.Collect unless you have very specific reasons for doing so. The GC is self-tuning and calling it without knowing what the side effects are can also result in memory issues.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am being call by a C DLL which suppliies a pointer to a structure. I have defined the parameter as a Integer. I need to change some values in the supplied structure but cannot work out how to do this - any ideas?
|
|
|
|
|
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
|
|
|
|