|
You want people to provide credentials in order to close your app ?
Yeah, handle the onclosing event and set the properties of the event args to cancel the close if you need to.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
This is a question actually: if you want to connect more clients to a server using .NET remote, and you want them to interchange message using the server, how would u do that?
i already know how to send messages to the server using remote objects, but i don't know in what way will the server know from which client(ip address) it got the message, and how to send the message to a specific client...
that's what i mean by inter-client communication.
|
|
|
|
|
Hi all.
I have a windows service that inserts some messages in a database. Now, I need an interface so a user can see the process.
My first option was adding an interface to the service. Is that possible? I've been reading about that and is not very usual.
If not, the option would be creating another application that communicates with the service and shows the messages. In that case, how can I do that? Should I use Remoting? I'm not sure about how to get the messages from the service. My service is just a loop that listens to a socket and inserts the received messages in a database. If the service can have an interface, it would be as easy as showing a message in a control after each message processed.
Any ideas please?
Regards,
Diego F.
|
|
|
|
|
I'm sorry if this sounds stupid, but cant we filter datasets in a very simple and effective way??
Thanks a bunch guys.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
by creating Dataview from dataset u can filter the data
rahul
|
|
|
|
|
You can use select method or you might want to look at dataview class
|
|
|
|
|
hi
we have developed windows application with lots of controls. we are facing the problem with exceeding GDI counts. we tried lot of solution from the net but still the problem exist.
kindly direct us to right path or suggest any solution
prabu
|
|
|
|
|
i think proper disposal of objects can help u out
rahul
|
|
|
|
|
What sort of controls ? Are they on lots of forms ? Do you do any custom painting ? Do you load bitmaps or images anywhere ?
Your GDI count is increasing because you load a resource and do not call Dispose on the object that holds it, so it is never released ( well, it will be eventually ).
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
we are using lots of usercontrols, and loading it dynamically!
though we dispose the usercontrols gdi count is not decrementing.
thanks for reply.
|
|
|
|
|
hi all,
i write this code to draw line by mouse and the drawline method is in the onPaint() method,this code is working properly but has two problems so is there any other idea to code it
private void mainScreen_MouseMove(object sender, MouseEventArgs e)<br />
{<br />
<br />
if (lineFlag == 1 && !(mLineBeginPnt.IsEmpty) && nextLineFlag == 1)<br />
{<br />
Graphics grfx = this.CreateGraphics();<br />
Pen pen = new Pen(mainScreen.DefaultBackColor, 2);<br />
userInterface.handleMouseMove(grfx, ref lastPntOfLine,<br />
ref lastPntCounter, pen, ref mLineEndPnt, mLineBeginPnt, e.Location);<br />
pen.Dispose();<br />
grfx.Dispose();<br />
Invalidate(drawingFrame);<br />
}<br />
<br />
}<br />
----------------------------------------<br />
public void handleMouseMove(Graphics grfx,ref Point lastPntOfLine,<br />
ref int lastPntCounter, Pen pen, ref Point mLineEndPnt, Point mLineBeginPnt,<br />
Point location)<br />
{<br />
if (lastPntCounter == 0)<br />
{<br />
lastPntOfLine = location;<br />
lastPntCounter++;<br />
}<br />
else<br />
grfx.DrawLine(pen, mLineBeginPnt, lastPntOfLine);<br />
mLineEndPnt = location;<br />
Pen p = new Pen(Color.Black, 2);<br />
grfx.DrawLine(p, mLineBeginPnt, mLineEndPnt);<br />
lastPntOfLine = location;<br />
grfx.Dispose();<br />
pen.Dispose();<br />
p.Dispose();<br />
<br />
}<br />
what i made in this code is that i determine the last line drawen by nouse by getting its begin and end points from line object that i have then draw this line by background color to hide it and draw new line with black color to seen by user
(this code is an alternative for using XOR mode, if any one know how to use it with drawing lines please tell me)
thanks
Generator
-- modified at 4:12 Tuesday 8th May, 2007
|
|
|
|
|
HexaDeveloper wrote: Graphics grfx = this.CreateGraphics();
You don't say what your problems are, but you should NEVER do this, unless you want to draw something that will immediately disappear. As soon as your window is obscured, your line will disappear, you should always draw your lines within the paint event of your form and call Invalidate() to force a paint event.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi ,
my problem is that i donot know how to use XOR mode in drawing line
Generator
|
|
|
|
|
hi 4 all
some problem occured when i try to connect existing file ( help file ) with my application
i hope any one to help me
** open help file from my application without open file dialog
thanxxxxxx
|
|
|
|
|
|
Do you have a help file and want to open it from your application using the appropriate program? If so use System.Diagnostics.Process.Start()
|
|
|
|
|
Dear All,
In vb.net we can give like this for getting illustrator application
appRef = CreateObject("Illustrator.Application")
in C#.net what we can give for getting illustrator application
Thanks in Advance
Dana
|
|
|
|
|
Sorry I cant read vb, it hurts my eyez ..
try
System.Diagnostics.Process.Start("SomeApplication.exe");
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
|
Dear All,
How can I check wheather an application is intalled or Not
|
|
|
|
|
danasegaranea wrote: Dear All,
you are replying me
danasegaranea wrote: How can I check wheather an application is intalled or Not
installed means ? in what manner ? talking about which application ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
I am trying to automate the illustrator.How can I do this (like MSWORD)
-- modified at 3:11 Tuesday 8th May, 2007
|
|
|
|
|
danasegaranea wrote: I am trying to automate the illustrator.How can I do this (like MSWORD)
Sorry dude not understand anything from it
What is illustrator ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Do you know Adobe photoshop.The Illustrator is the another release of Adobe.
No problem.Is there any method avl to autmate the Adobe Photoshop through C#
Thanks
Dana
|
|
|
|
|
danasegaranea wrote: appRef = CreateObject("Illustrator.Application")
This is VB for "create an instance of COM object Illustrator.Application". In order for this code to work you this COM object must be registered on the machine running the code.
You can achieve a similar thing in .NET using COM Interop (search google). If you are using Visual Studio it couldn't be simpler (as VS will generate a COM Interop assembly for you). Right click "references" in your project, goto add new reference. A dialog will popup which should have a "COM" tab. In this tab you should find an entry such as "Illustrator Application Object". Add this as a reference and your project should have access to a namespace like "Illusrator.ApplicationObject" which will have identical properties and methods used in your VB Application.
|
|
|
|